summaryrefslogtreecommitdiff
path: root/templates/partials/client_geo.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/partials/client_geo.html')
-rw-r--r--templates/partials/client_geo.html18
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>