diff --git a/main.go b/main.go index 393c7f1..e4a776c 100644 --- a/main.go +++ b/main.go @@ -117,6 +117,9 @@ func callApi(ip string) ipResponse { err = json.Unmarshal(body, &values) + slog.Debug("Api1 res:", "ip", values.IP, "country", values.Country, "continent:", values.ContinentCode, + "ISP", values.AsName) + return values } diff --git a/static/styles.css b/static/styles.css index 20dad70..efbb625 100644 --- a/static/styles.css +++ b/static/styles.css @@ -15,9 +15,11 @@ h1 { .layout { display: flex; - gap: 40px; align-items: flex-start; padding: 0 40px; + gap: 40px; + width: 100%; + box-sizing: border-box; } .container { @@ -28,6 +30,7 @@ h1 { width: 400px; height: 400px; flex-shrink: 0; + margin: 0 auto; } .info { diff --git a/templates/home.html b/templates/home.html index 7c32de5..d1932fa 100644 --- a/templates/home.html +++ b/templates/home.html @@ -45,8 +45,8 @@
- +