-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
76 lines (72 loc) · 2.86 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<link rel="stylesheet" href="src/style.css" />
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Frontend Mentor | IP Address Tracker</title>
</head>
<body class="grid h-dvh grid-rows-[auto_1fr] text-gray-800">
<header
class="bg-[url('/pattern-bg-mobile.png')] bg-cover bg-no-repeat px-4 py-8 sm:bg-[url('/pattern-bg-desktop.png')]"
>
<h1 class="text-center text-2xl font-bold text-white">
IP Address Tracker
</h1>
<div class="relative mb-36 grid sm:mb-12">
<form id="js-search">
<div
class="relative mx-auto mt-4 max-w-[50ch] overflow-hidden rounded-xl text-lg"
>
<input
class="w-full p-4"
type="text"
name="search"
id="search"
placeholder="Search for any IP address or domain"
/>
<button
class="absolute right-0 top-0 h-full bg-gray-800 p-4 hover:opacity-90"
type="submit"
>
<span class="sr-only">Search</span>
<img src="/icon-arrow.svg" alt="" />
</button>
</div>
</form>
<ul
class="absolute top-[calc(100%+1rem)] z-[1000] mx-auto mt-4 grid w-full gap-4 rounded-xl bg-white p-6 text-center font-bold sm:grid-flow-col sm:text-left"
>
<li>
<p class="text-xs uppercase text-gray-400">IP address</p>
<p id="js-ip" class="mt-1 text-lg">--</p>
</li>
<li
class="relative before:left-0 before:top-1/2 before:h-5/6 before:w-[1px] before:-translate-y-1/2 before:bg-gray-400/50 sm:pl-6 sm:before:absolute"
>
<p class="text-xs uppercase text-gray-400">Location</p>
<p id="js-location" class="mt-1 text-lg">--</p>
</li>
<li
class="relative before:left-0 before:top-1/2 before:h-5/6 before:w-[1px] before:-translate-y-1/2 before:bg-gray-400/50 sm:pl-6 sm:before:absolute"
>
<p class="text-xs uppercase text-gray-400">Timezone</p>
<p id="js-timezone" class="mt-1 text-lg">--</p>
</li>
<li
class="relative before:left-0 before:top-1/2 before:h-5/6 before:w-[1px] before:-translate-y-1/2 before:bg-gray-400/50 sm:pl-6 sm:before:absolute"
>
<p class="text-xs uppercase text-gray-400">ISP</p>
<p id="js-isp" class="mt-1 text-lg">--</p>
</li>
</ul>
</div>
</header>
<main>
<div id="map" class="h-full w-full"></div>
</main>
<script type="module" src="/src/main.ts"></script>
</body>
</html>