ip-checker/ui/index.html

121 lines
4.3 KiB
HTML
Raw Permalink Normal View History

2024-08-26 22:01:24 +00:00
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="description" content="Ny4 IP Checker" />
<title>What is my IP?</title>
2024-10-26 07:27:02 +00:00
<link rel="icon" href="favicon.svg" />
<link rel="stylesheet" href="/src/style.css" />
<link
rel="stylesheet"
href="https://fonts.googleapis.com/css2?family=Fira+Code:wght@500&display=swap"
/>
<script type="module" src="/src/main.ts"></script>
<link rel="dns-prefetch" href="https://fonts.googleapis.com/" />
<link rel="dns-prefetch" href="https://fonts.gstatic.com/" />
<link rel="dns-prefetch" href="https://api.ip.sb/" />
<link rel="dns-prefetch" href="https://api-v3.speedtest.cn/" />
<link rel="dns-prefetch" href="https://api.ipapi.is/" />
<link rel="preconnect" href="https://fonts.googleapis.com/" />
<link rel="preconnect" href="https://fonts.gstatic.com/" />
<link rel="preconnect" href="https://api.ip.sb/" />
<link rel="preconnect" href="https://api-v3.speedtest.cn/" />
<link rel="preconnect" href="https://api.ipapi.is/" />
2024-08-26 22:01:24 +00:00
</head>
2024-10-19 04:08:17 +00:00
<body
class="text-violet-950 bg-violet-100 dark:text-slate-100 dark:bg-slate-900 font-mono font-medium text-sm md:text-base"
>
2024-10-26 12:54:50 +00:00
<div
class="flex flex-col min-h-screen justify-center items-center md:mw-4/3"
>
2024-10-19 04:08:17 +00:00
<p class="py-2">Ny4 IP checker!</p>
2024-10-26 12:54:50 +00:00
<div
class="divide-y divide-violet-300 dark:divide-slate-700 w-full md:w-3/4"
>
<div class="hidden md:grid grid-cols-4 gap-2 p-2">
<div class="table-caption">Source</div>
<div class="table-caption">IP</div>
<div class="table-caption col-span-2">Location</div>
</div>
<div class="grid grid-cols-2 md:grid-cols-4 gap-2 p-2">
2024-10-26 12:54:50 +00:00
<div>
<h5 class="table-caption md:hidden">Source</h5>
<p>ip.ny4.dev</p>
</div>
<div>
<h5 class="table-caption md:hidden">IP</h5>
2024-10-26 13:08:37 +00:00
<p class="break-words" id="check-ny4-ip">Loading...</p>
2024-10-26 12:54:50 +00:00
</div>
<div class="col-span-2">
<h5 class="table-caption md:hidden">Location</h5>
<p id="check-ny4-location">Loading...</p>
</div>
</div>
2024-10-26 12:54:50 +00:00
<div class="grid grid-cols-2 md:grid-cols-4 gap-2 p-2">
2024-10-26 12:54:50 +00:00
<div>
<h5 class="table-caption md:hidden">Source</h5>
<p>ip.sb</p>
</div>
<div>
<h5 class="table-caption md:hidden">IP</h5>
2024-10-26 13:08:37 +00:00
<p class="break-words" id="check-ipsb-ip">Loading...</p>
2024-10-26 12:54:50 +00:00
</div>
<div class="col-span-2">
<h5 class="table-caption md:hidden">Location</h5>
<p id="check-ipsb-location">Loading...</p>
</div>
</div>
2024-10-26 12:54:50 +00:00
<div class="grid grid-cols-2 md:grid-cols-4 gap-2 p-2">
2024-10-26 12:54:50 +00:00
<div>
<h5 class="table-caption md:hidden">Source</h5>
<p>ipapi.is</p>
</div>
<div>
<h5 class="table-caption md:hidden">IP</h5>
2024-10-26 13:08:37 +00:00
<p class="break-words" id="check-ipapiis-ip">Loading...</p>
2024-10-26 12:54:50 +00:00
</div>
<div class="col-span-2">
<h5 class="table-caption md:hidden">Location</h5>
<p id="check-ipapiis-location">Loading...</p>
</div>
</div>
2024-10-26 12:54:50 +00:00
<div class="grid grid-cols-2 md:grid-cols-4 gap-2 p-2">
2024-10-26 12:54:50 +00:00
<div>
<h5 class="table-caption md:hidden">Source</h5>
<p>ip-api.com</p>
</div>
<div>
<h5 class="table-caption md:hidden">IP</h5>
2024-10-26 13:08:37 +00:00
<p class="break-words" id="check-speedtestcn-ip">Loading...</p>
2024-10-26 12:54:50 +00:00
</div>
<div class="col-span-2">
<h5 class="table-caption md:hidden">Location</h5>
<p id="check-speedtestcn-location">Loading...</p>
</div>
</div>
</div>
2024-08-26 22:01:24 +00:00
</div>
2024-10-19 04:08:17 +00:00
<footer
2024-10-26 12:01:25 +00:00
class="fixed inset-x-0 bottom-0 p-2 text-center text-slate-600 dark:text-slate-400 text-xs md:text-sm bg-violet-200 dark:bg-slate-950 border-t border-violet-300 dark:border-slate-700"
2024-10-19 04:08:17 +00:00
>
2024-10-26 12:01:25 +00:00
<p>
(c) 2024 Guanran Wang, source code licenced under MIT.
2024-08-26 22:01:24 +00:00
2024-10-26 12:01:25 +00:00
<a
class="text-blue-400 hover:text-blue-600 visited:text-violet-500"
href="https://git.ny4.dev/nyancat/ip-checker"
>Git Repo</a
>
</p>
2024-08-26 22:01:24 +00:00
</footer>
</body>
</html>