-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
382 lines (376 loc) · 16 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
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="favicon.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>HomeSmart</title>
<script src="src/darkmode.js"></script>
</head>
<body
class="max-w-[2000px] mx-auto text-neutral-900 dark:text-neutral-200 bg-white dark:bg-neutral-800"
>
<nav class="mx-auto p-4 bg-amber-400">
<div class="container mx-auto flex items-center justify-between">
<button
href="/"
id="theme-toggle"
class="focus:outline-none focus-visible:ring-4 ring-neutral-900 ring-offset-4 rounded-sm ring-offset-amber-400 lg:absolute lg:left-1/2 lg:-translate-x-1/2 lg:top-9 lg:ring-offset-white z-50 hover:opacity-60 transition-opacity"
aria-label="Go To Homepage"
>
<img
src="./assets/logo.svg"
width="200"
class="w-48 md:w-64 lg:w-72"
alt="Home Smart Logo"
/>
</button>
<button
id="menu"
class="lg:hidden focus:outline-none focus-visible:ring-4 ring-neutral-900 ring-offset-4 rounded-sm ring-offset-amber-400 text-neutral-900 hover:text-neutral-500 transition-colors"
aria-expanded="false"
aria-label="Open Menu"
>
<svg
xmlns="http://www.w3.org/2000/svg"
class="h-8 w-8"
fill="none"
viewBox="0 0 24 24"
stroke="currentColor"
stroke-width="2"
>
<path
stroke-linecap="round"
stroke-linejoin="round"
d="M4 6h16M4 12h16M4 18h16"
/>
</svg>
</button>
<div
role="menubar"
class="hidden flex-col gap-4 absolute left-0 right-0 top-16 bg-amber-400 shadow-xl text-center text-lg p-6 items-center lg:flex lg:flex-row lg:top-0 lg:static lg:shadow-none lg:justify-between lg:w-full z-40"
>
<a
class="py-1 px-6 dark:text-neutral-800 focus:outline-none focus-visible:ring-4 ring-neutral-900 ring-offset-4 rounded-sm ring-offset-amber-400 hover:text-neutral-500 transition-colors"
role="menuitem"
href="/"
>Home</a
>
<a
class="py-1 px-6 dark:text-neutral-800 focus:outline-none focus-visible:ring-4 ring-neutral-900 ring-offset-4 rounded-sm ring-offset-amber-400 hover:text-neutral-500 transition-colors lg:mr-auto"
role="menuitem"
href="/"
>Contact</a
>
<a
class="py-1 px-6 dark:text-neutral-800 focus:outline-none focus-visible:ring-4 ring-neutral-900 ring-offset-4 rounded-sm ring-offset-amber-400 hover:text-neutral-500 transition-colors"
role="menuitem"
href="/"
>Login</a
>
<a
class="py-2 px-6 bg-teal-800 text-white rounded-md shadow-xl focus-visible:ring-4 ring-neutral-900 ring-offset-4 ring-offset-amber-400 hover:shadow-none focus:outline-none"
role="menuitem"
href="/"
>Sign Up</a
>
</div>
</div>
</nav>
<header class="relative pt-16 md:pt-24 lg:pt-48">
<div
class="absolute inset-0 bottom-8 md:bottom-24 xl:bottom-32 bg-gradient-to-b from-amber-400 to-amber-600 -z-10"
aria-label="background color"
></div>
<div class="container mx-auto grid grid-rows-1 place-items-end px-2">
<img
class="row-start-1 row-end-2 col-start-1 col-end-2 mx-auto"
src="./assets/couch.png"
alt="Couch"
/>
<img
class="row-start-1 row-end-2 col-start-1 col-end-2 mx-auto w-40 sm:w-52 md:w-64 lg:w-72"
src="./assets/app.svg"
alt="app"
/>
</div>
</header>
<main class="grid gap-12 sm:gap-16 md:gap-24 lg:gap-32 overflow-hidden">
<a
href="#"
class="py-2 px-6 bg-amber-400 dark:text-neutral-900 mx-auto my-12 flex gap-2 rounded-md shadow-xl focus-visible:ring-4 ring-neutral-900 ring-offset-4 ring-offset-white dark:ring-amber-400"
>
<svg
xmlns="http://www.w3.org/2000/svg"
class="h-6 w-6"
fill="none"
viewBox="0 0 24 24"
stroke="currentColor"
stroke-width="2"
>
<path
stroke-linecap="round"
stroke-linejoin="round"
d="M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"
/>
</svg>
<span>Download the App</span>
</a>
<section aria-labelledby="qualities" class="relative">
<img
class="hidden lg:block absolute top-1/2 -translate-y-1/2 -right-20 xl:-right-7"
src="assets/dots.svg"
alt="some dot for decoration"
aria-hidden="true"
/>
<img
class="hidden lg:block absolute top-1/2 -translate-y-1/2 -left-20 xl:-left-7"
src="assets/dots.svg"
alt="some dot for decoration"
aria-hidden="true"
/>
<h2 id="qualities" class="sr-only">Our Qualitites</h2>
<div
class="container mx-auto max-w-5xl flex flex-col md:flex-row gap-12 flex-wrap items-center justify-center md:justify-between text-center"
>
<div class="grid gap-4 justify-items-center text-center md:flex-1">
<div class="rounded-full border-8 border-amber-400 p-4">
<svg
xmlns="http://www.w3.org/2000/svg"
class="h-14 w-14"
fill="none"
viewBox="0 0 24 24"
stroke="currentColor"
stroke-width="2"
>
<path
stroke-linecap="round"
stroke-linejoin="round"
d="M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z"
/>
</svg>
</div>
<h3 class="text-3xl">Safe</h3>
<p>Our products are secure and private out-of-the-box</p>
</div>
<div class="grid gap-4 justify-items-center text-center md:flex-1">
<div class="rounded-full border-8 border-amber-400 p-4">
<svg
xmlns="http://www.w3.org/2000/svg"
class="h-14 w-14"
fill="none"
viewBox="0 0 24 24"
stroke="currentColor"
stroke-width="2"
>
<path
stroke-linecap="round"
stroke-linejoin="round"
d="M13 10V3L4 14h7v7l9-11h-7z"
/>
</svg>
</div>
<h3 class="text-3xl font-bold">Efficient</h3>
<p>Feel good about your wallet and the environment</p>
</div>
<div class="grid gap-4 justify-items-center text-center md:flex-1">
<div class="rounded-full border-8 border-amber-400 p-4">
<svg
xmlns="http://www.w3.org/2000/svg"
class="h-14 w-14"
fill="none"
viewBox="0 0 24 24"
stroke="currentColor"
stroke-width="2"
>
<path
stroke-linecap="round"
stroke-linejoin="round"
d="M9 12l2 2 4-4M7.835 4.697a3.42 3.42 0 001.946-.806 3.42 3.42 0 014.438 0 3.42 3.42 0 001.946.806 3.42 3.42 0 013.138 3.138 3.42 3.42 0 00.806 1.946 3.42 3.42 0 010 4.438 3.42 3.42 0 00-.806 1.946 3.42 3.42 0 01-3.138 3.138 3.42 3.42 0 00-1.946.806 3.42 3.42 0 01-4.438 0 3.42 3.42 0 00-1.946-.806 3.42 3.42 0 01-3.138-3.138 3.42 3.42 0 00-.806-1.946 3.42 3.42 0 010-4.438 3.42 3.42 0 00.806-1.946 3.42 3.42 0 013.138-3.138z"
/>
</svg>
</div>
<h3 class="text-3xl font-bold">Proven</h3>
<p>Leading the Smart Home world for 10 years</p>
</div>
</div>
</section>
<section
aria-labelledby="partners"
class="text-center grid gap-8 place-items-center"
>
<div class="grid gap-4">
<h2 id="partners" class="text-4xl font-bold text-amber-400">
Our Partners
</h2>
<p class="w-full max-w-lg">
We’ve partnered with hundreds of smart home brands to help you
create a smart home that fits your needs and doesn’t lock you in.
</p>
</div>
<div
class="flex flex-wrap justify-center gap-8 md:gap-x-16 max-w-2xl mx-auto"
>
<div
class="p-4 bg-white dark:bg-neutral-600 shadow-md dark:shadow-xl rounded-md"
>
<img src="assets/partner1.svg" alt="Partner" class="h-16 w-16" />
</div>
<div
class="p-4 bg-white dark:bg-neutral-600 shadow-md dark:shadow-xl rounded-md"
>
<img src="assets/partner2.svg" alt="Partner" class="h-16 w-16" />
</div>
<div
class="p-4 bg-white dark:bg-neutral-600 shadow-md dark:shadow-xl rounded-md"
>
<img src="assets/partner3.svg" alt="Partner" class="h-16 w-16" />
</div>
<div
class="p-4 bg-white dark:bg-neutral-600 shadow-md dark:shadow-xl rounded-md"
>
<img src="assets/partner4.svg" alt="Partner" class="h-16 w-16" />
</div>
<div
class="p-4 bg-white dark:bg-neutral-600 shadow-md dark:shadow-xl rounded-md"
>
<img src="assets/partner5.svg" alt="Partner" class="h-16 w-16" />
</div>
<div
class="p-4 bg-white dark:bg-neutral-600 shadow-md dark:shadow-xl rounded-md"
>
<img src="assets/partner6.svg" alt="Partner" class="h-16 w-16" />
</div>
<div
class="p-4 bg-white dark:bg-neutral-600 shadow-md dark:shadow-xl rounded-md"
>
<img src="assets/partner7.svg" alt="Partner" class="h-16 w-16" />
</div>
</div>
</section>
<section aria-labelledby="home" class="relative">
<div class="flex flex-wrap-reverse gap-8 justify-center">
<div
class="flex flex-col flex-wrap gap-6 items-start lg:justify-center"
>
<div class="flex flex-wrap flex-col items-start gap-2">
<h2 class="text-4xl font-bold">Relax, you're home!</h2>
<p class="max-w-md">
All our supported hardware includes traditional inputs so you
can integrate our products into your house in a way that’s best
for everyone.
</p>
</div>
<a
href="#"
class="py-2 px-6 bg-amber-400 dark:text-neutral-900 mx-auto my-12 flex gap-2 rounded-md shadow-xl focus-visible:ring-4 ring-neutral-900 ring-offset-4 ring-offset-white dark:ring-amber-400"
>Sign Up</a
>
</div>
<img src="assets/table.png" alt="Table" />
</div>
<div
class="absolute -bottom-6 -right-32 aspect-square md:border-8 border-amber-400 rounded-full md:w-64 lg:w-96 xl:max-w-lg -z-10"
aria-label="circle"
></div>
<div
class="bg-teal-800 h-24 lg:h-48 mt-12 lg:absolute w-screen lg:-bottom-8 -z-10"
aria-label="add padding in large screen"
></div>
</section>
</main>
<section
class="container mx-auto px-8 overflow-hidden"
aria-labelledby="contact"
>
<div class="flex flex-wrap justify-center gap-12 md:gap-6 lg:gap-20">
<div class="md:flex-1 md:max-w-sm relative">
<img src="assets/lamp.png" alt="lamp" class="mx-auto" />
<a
href="#"
class="py-2 px-6 bg-amber-400 dark:text-neutral-900 w-max mx-auto mt-12 md:mb-12 flex gap-2 rounded-md shadow-xl focus-visible:ring-4 ring-neutral-900 ring-offset-4 ring-offset-white dark:ring-amber-400"
>
<svg
xmlns="http://www.w3.org/2000/svg"
class="h-6 w-6"
fill="none"
viewBox="0 0 24 24"
stroke="currentColor"
stroke-width="2"
>
<path
stroke-linecap="round"
stroke-linejoin="round"
d="M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"
/>
</svg>
<span>Download the App</span>
</a>
<img
src="assets/app.svg"
alt="app"
width="240"
class="hidden md:block drop-shadow-xl absolute left-1/2 -translate-x-1/2 max-w-16 xl:max-w-xs"
/>
<div
class="absolute -bottom-18 -left-1/2 -translate-x-1/2 aspect-square md:border-8 border-amber-400 rounded-full md:w-72 lg:w-96 -z-10"
aria-label="circle"
></div>
</div>
<form
class="relative border-8 border-neutral-900 p-6 rounded-lg grid gap-8 md:flex-1 md:max-w-lg my-4 md:my-12 lg:my-16 bg-white dark:bg-neutral-800 w-full"
>
<h3 id="contact" class="text-3xl font-bold">Let's Connect!</h3>
<div class="relative">
<input
type="text"
id="name"
class="peer form-input w-full border-4 border-amber-400 rounded-md focus:ring-2 focus:ring-offset-2 dark:focus:ring-amber-400 focus:outline-none dark:bg-amber-400 dark:text-neutral-900 placeholder-transparent"
placeholder="Your Name"
/>
<label
for="name"
class="text-neutral-500 text-sm font-bold uppercase absolute -top-4 left-2 -translate-y-1/2 transition-all peer-placeholder-shown:left-4 peer-placeholder-shown:top-1/2 peer-placeholder-shown:text-neutral-900 peerfocu peer-focus:-top-4 peer-focus:left-2 peer-focus:text-neutral-600 dark:peer-focus:text-neutral-300"
>Your Name</label
>
</div>
<div class="relative">
<input
type="text"
id="email"
class="peer form-input w-full border-4 border-amber-400 rounded-md focus:ring-2 focus:ring-offset-2 dark:focus:ring-amber-400 focus:outline-none dark:bg-amber-400 dark:text-neutral-900 placeholder-transparent"
placeholder="Your Email"
/>
<label
for="email"
class="text-neutral-500 text-sm font-bold uppercase absolute -top-4 left-2 -translate-y-1/2 transition-all peer-placeholder-shown:left-4 peer-placeholder-shown:top-1/2 peer-placeholder-shown:text-neutral-900 peerfocu peer-focus:-top-4 peer-focus:left-2 peer-focus:text-neutral-600 dark:peer-focus:text-neutral-300"
>Your Email</label
>
</div>
<div class="relative">
<textarea
class="peer form-textarea resize-none w-full border-4 border-amber-400 rounded-md focus:ring-2 focus:ring-offset-2 dark:focus:ring-amber-400 focus:outline-none dark:bg-amber-400 dark:text-neutral-900 placeholder-transparent"
rows="5"
cols="20"
name="content"
id="content"
placeholder="How can we help?"
></textarea>
<label
class="text-neutral-500 text-sm font-bold uppercase absolute -top-4 left-2 -translate-y-1/2 transition-all peer-placeholder-shown:left-4 peer-placeholder-shown:top-1/4 peer-placeholder-shown:text-neutral-900 peerfocu peer-focus:-top-4 peer-focus:left-2 peer-focus:text-neutral-600 dark:peer-focus:text-neutral-300"
for="content"
>How can we help?</label
>
</div>
<a
class="py-2 px-6 bg-neutral-900 text-white w-max rounded-md shadow-xl focus-visible:ring-4 ring-neutral-900 ring-offset-4 ring-offset-white-400 hover:shadow-none focus:outline-none"
role="menuitem"
href="/"
>Sign Up</a
>
</form>
</div>
</section>
<script type="module" src="/src/main.js"></script>
</body>
</html>