diff options
author | Stas Medvedev <medvedevsa97@gmail.com> | 2024-06-12 16:05:12 +0300 |
---|---|---|
committer | Stas Medvedev <medvedevsa97@gmail.com> | 2024-06-12 16:05:12 +0300 |
commit | ed49bb17b9e93a1406ab51f7dca5906661863627 (patch) | |
tree | fd5dfa78e46c9b29dcd1fdaf3897fbd117cf7c2b /templates/partials/client_geo.html | |
parent | 3805407b0868aeccf7462a68c1d86540764bc02f (diff) |
refactore utils
refactore html about, client_geo
Diffstat (limited to 'templates/partials/client_geo.html')
-rw-r--r-- | templates/partials/client_geo.html | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/templates/partials/client_geo.html b/templates/partials/client_geo.html new file mode 100644 index 0000000..fac4371 --- /dev/null +++ b/templates/partials/client_geo.html @@ -0,0 +1,18 @@ +<div class="w-full flex flex-col text-2xl"> + <p>Уже вычислил тебя по ip:</p> + <div class="flex w-full justify-around"> + <span>😎</span> + <a + class="block text-center underline decoration-primary-300" + href="https://ip-api.com" + > + {{client_geo['query']}} + </a> + <span>😎</span> + </div> + + {% if 'city' in client_geo %} + <p>{{client_geo['country']}}</p> + <p>{{client_geo['city']}}</p> + {% endif %} +</div> |