-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
210 lines (210 loc) · 7.69 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>Pokedex WWC</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="icon" type="image/x-icon" href="./assets/images/pokeball.ico">
<meta name="description" content="Explore the Pokédex and discover information about all known Pokémon! Find data, types, abilities, and more.">
<meta name="keywords" content="Pokédex, Pokémon, encyclopedia, Pokémon types, abilities, statistics, creatures">
<meta name="author" content="Dylas">
<meta name="robots" content="index, follow">
<meta name="language" content="en">
<meta charset="UTF-8">
<meta name="theme-color" content="#fff">
<meta property="og:image" content="./assets/images/pokedex.png">
<meta property="og:image:type" content="image/png">
<meta property="og:image:width" content="250">
<meta property="og:image:height" content="250">
<link rel="stylesheet" href="./assets/css/darkmode.css" />
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://unpkg.com/pokeapi-js-wrapper/dist/index.js"></script>
<style>
@import url('https://fonts.cdnfonts.com/css/poppins');
html {
font-family: 'poppins' !important;
}
</style>
<script>
tailwind.config = {
darkMode: 'class',
};
</script>
</head>
<body class="bg-white transition-colors duration-1000 dark:bg-zinc-800 p-10">
<main class="md:w-1/2 md:m-auto">
<button
class="theme-toggle absolute right-10"
id="theme-toggle"
title="Toggles light & dark"
aria-label="auto"
aria-live="polite"
>
<svg
class="sun-and-moon"
aria-hidden="true"
width="24"
height="24"
viewBox="0 0 24 24"
>
<mask class="moon" id="moon-mask">
<rect x="0" y="0" width="100%" height="100%" fill="white" />
<circle cx="24" cy="10" r="6" fill="black" />
</mask>
<circle
class="sun"
cx="12"
cy="12"
r="6"
mask="url(#moon-mask)"
fill="currentColor"
/>
<g class="sun-beams" stroke="currentColor">
<line x1="12" y1="1" x2="12" y2="3" />
<line x1="12" y1="21" x2="12" y2="23" />
<line x1="4.22" y1="4.22" x2="5.64" y2="5.64" />
<line x1="18.36" y1="18.36" x2="19.78" y2="19.78" />
<line x1="1" y1="12" x2="3" y2="12" />
<line x1="21" y1="12" x2="23" y2="12" />
<line x1="4.22" y1="19.78" x2="5.64" y2="18.36" />
<line x1="18.36" y1="5.64" x2="19.78" y2="4.22" />
</g>
</svg>
</button>
<section class="pt-20">
<header>
<div class="title text-zinc-800 dark:text-white text-3xl font-bold">
<h2>What are</h2>
<h2>you looking for?</h2>
</div>
</header>
<div class="search-bar mt-4 relative">
<img
src="./assets/images/search.svg"
class="absolute top-1 right-2 color-white"
width="30"
height="30"
alt="search-icon"
/>
<input
type="text"
id="search-input"
class="bg-white text-gray-800 dark:bg-zinc-800 border border-gray-300 dark:border-zinc-500 dark:text-white text-sm rounded-2xl focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5"
placeholder="Search pokemon"
required
/>
</div>
</section>
<section class="mt-4 mb-4">
<div class="flex flex-row">
<button
class="main-button grow text-left h-28 bg-red-500 rounded-lg relative"
onclick="redirect('/pokemon.html')"
>
<img
src="./assets/images/pokeball.svg"
class="absolute -top-1 -right-2 color-white grayscale opacity-10 rotate-12"
width="120"
height="120"
alt="search-icon"
/>
<div class="w-full h-full">
<h2 class="text-white text-2xl font-bold pl-4 absolute bottom-1">
Pokemon
</h2>
</div>
</button>
</div>
<div class="secondary flex h-12 mt-3 gap-3 h-24">
<button
class="main-button grow text-left bg-yellow-500 rounded-lg relative"
onclick="alert('WIP')"
>
<img
src="./assets/images/pokeball.svg"
class="absolute top-10 -right-1 color-white grayscale opacity-10 rotate-12 pointer-events-none"
width="60"
height="60"
alt="search-icon"
/>
<div class="w-full h-full">
<h2 class="text-white text-2xl font-bold pl-4 absolute bottom-1">
Types
</h2>
</div>
</button>
<button
class="main-button grow text-left bg-green-500 rounded-lg relative"
onclick="alert('WIP')"
>
<img
src="./assets/images/pokeball.svg"
class="absolute top-10 -right-1 color-white grayscale opacity-10 rotate-12 pointer-events-none"
width="60"
height="60"
alt="search-icon"
/>
<div class="w-full h-full">
<h2 class="text-white text-2xl font-bold pl-4 absolute bottom-1">
Favs
</h2>
</div>
</button>
</div>
</section>
<div
id="toast-warning"
class="flex items-center w-4/6 max-w-xs p-4 text-gray-500 bg-white rounded-lg shadow dark:text-gray-400 dark:bg-zinc-800 hidden fixed bottom-1 left-1"
role="alert"
>
<div
class="inline-flex items-center justify-center flex-shrink-0 w-8 h-8 text-yellow-400 bg-yellow-100 rounded-lg dark:bg-yellow-600 dark:text-yellow-200"
>
<svg
class="w-5 h-5"
aria-hidden="true"
xmlns="http://www.w3.org/2000/svg"
fill="currentColor"
viewBox="0 0 20 20"
>
<path
d="M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5ZM10 15a1 1 0 1 1 0-2 1 1 0 0 1 0 2Zm1-4a1 1 0 0 1-2 0V6a1 1 0 0 1 2 0v5Z"
/>
</svg>
<span class="sr-only">Warning icon</span>
</div>
<div class="ml-3 text-sm font-normal">Not found.</div>
<button
type="button"
class="ml-auto -mx-1.5 -my-1.5 bg-white text-gray-400 hover:text-gray-900 rounded-lg focus:ring-2 focus:ring-gray-300 p-1.5 hover:bg-gray-100 inline-flex items-center justify-center h-8 w-8 dark:text-gray-500 dark:hover:text-white dark:bg-zinc-800 dark:hover:bg-zinc-700"
data-dismiss-target="#toast-warning"
aria-label="Close"
onclick="document.querySelector('#toast-warning').classList.toggle('hidden')"
>
<span class="sr-only">Close</span>
<svg
class="w-3 h-3"
aria-hidden="true"
xmlns="http://www.w3.org/2000/svg"
fill="none"
viewBox="0 0 14 14"
>
<path
stroke="currentColor"
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
d="m1 1 6 6m0 0 6 6M7 7l6-6M7 7l-6 6"
/>
</svg>
</button>
</div>
</main>
<footer class="bottom-2 mb-2 m-auto w-3/4 mt-28 w-100">
<h2 class="text-zinc-800 dark:text-gray-300 text-center">Made with ❤️ Dylas</h2>
</footer>
<script src="./assets/js/darkmode.js"></script>
<script src="./assets/js/index.js"></script>
</body>
</html>