-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
522 lines (491 loc) · 19.9 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
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
<!doctype html>
<html lang="en" dir="auto">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Poppins:wght@500;700&display=swap"
rel="stylesheet"
/>
<title>Shortly | Shorter URLs</title>
<script
defer
src="https://kit.fontawesome.com/bfdd3a54d7.js"
crossorigin="anonymous"
></script>
<script type="module" src="/src/main.ts"></script>
</head>
<body class="relative font-sans antialiased">
<a
href="#main-content"
class="sr-only transition-transform duration-150 focus:not-sr-only"
>Skip To Content</a
>
<header class="">
<nav aria-label="Primary Navigation" class="relative tw-content-grid">
<div
class="flex items-center justify-between gap-10 py-8 md:justify-stretch"
>
<a href="/" class="inline-flex">
<img src="/logo.svg" alt="shortly logo" class="" />
</a>
<button
type="button"
aria-controls="primary-navigation-mobile"
aria-expanded="false"
data-id="mobile-toggle"
class="inline-grid h-6 w-6 place-content-center transition-colors md:hidden"
>
<i class="fas fa-xl fa-bars"></i>
<span class="sr-only">Show Menu</span>
</button>
<ul
id="primary-navigation"
data-id="primary-navigation"
class="hidden w-full items-center gap-8 md:flex"
>
<li>
<a
href="#"
class="inline-flex text-sm font-bold text-brand-200 hover:text-brand-400 focus:text-brand-400"
>Features</a
>
</li>
<li>
<a
href="#"
class="inline-flex text-sm font-bold text-brand-200 hover:text-brand-400 focus:text-brand-400"
>Pricing</a
>
</li>
<li>
<a
href="#"
class="inline-flex text-sm font-bold text-brand-200 hover:text-brand-400 focus:text-brand-400"
>Resources</a
>
</li>
<li class="ml-auto">
<a
href="#"
class="inline-flex text-sm font-bold text-brand-200 hover:text-brand-400 focus:text-brand-400"
>Login</a
>
</li>
<li>
<a
class="inline-flex h-10 items-center justify-center rounded-pill bg-accent-400 px-6 text-sm font-bold text-white transition-colors"
href="#"
>Sign Up</a
>
</li>
</ul>
</div>
<div
data-visible="false"
id="primary-navigation-mobile"
data-id="primary-navigation-mobile"
class="absolute top-full flex w-full flex-col gap-7 rounded-lg bg-brand-300 px-6 py-10 text-center transition-transform data-[visible='false']:scale-0 data-[visible='true']:scale-100 md:hidden"
>
<a href="#" class="text-lg font-bold text-white">Features</a>
<a href="#" class="text-lg font-bold text-white">Pricing</a>
<a href="#" class="text-lg font-bold text-white">Resources</a>
<hr class="border-brand-200/25" />
<a href="#" class="text-lg font-bold text-white">Login</a>
<a
href="#"
class="inline-flex h-12 items-center justify-center rounded-pill bg-accent-400 px-8 text-lg font-bold text-white transition-colors"
>Sign Up</a
>
</div>
</nav>
</header>
<section id="home" class="tw-content-grid">
<div class="flex flex-col-reverse gap-8 tw-full-width md:flex-row">
<div
class="mx-auto flex max-w-[52ch] flex-col items-center gap-8 overflow-visible px-4 text-center lg:mx-0 lg:my-auto lg:items-start lg:px-0 lg:text-left"
>
<h1
class="text-4xl font-bold -tracking-[1px] text-brand-400 lg:text-7xl lg:-tracking-[2px]"
>
More than just <em class="">shorter links</em>
</h1>
<p class="text-lg font-medium tracking-[0.1px] text-brand-200">
Build your brand's recognition and get detailed insights on how
your links are performing.
</p>
<a
href="#"
class="inline-flex h-14 items-center justify-center rounded-pill bg-accent-400 px-8 text-lg font-bold text-white transition-colors md:text-xl"
>Get Started</a
>
</div>
<!-- <div
class="ml-4 bg-[url(/illustration-working.svg)] bg-cover bg-no-repeat lg:flex-1"
></div> -->
<div
class="ml-4 bg-[url(/illustration-working.svg)] bg-cover bg-no-repeat py-44 xs:py-52 sm:py-60 md:py-72 lg:flex-1"
></div>
</div>
</section>
<main id="main-content">
<!-------------------- FORM START --------------------->
<section class="tw-content-grid">
<form
data-id="form"
class="relative top-1/2 rounded-lg bg-brand-300 bg-[url(/bg-boost-mobile.svg)] bg-cover bg-no-repeat md:bg-[url(/bg-boost-desktop.svg)]"
>
<div
class="flex flex-col content-center gap-4 p-6 md:flex-row md:p-12"
>
<label class="relative block w-full md:flex-1">
<input
type="url"
name="original_url"
id="original_url"
data-id="original_url"
pattern="https://*.*"
title="RegexPattern"
placeholder="Shorten a link here..."
class="peer w-full rounded-md px-5 py-3 text-base font-medium tracking-[0.1px] outline-none placeholder:text-brand-400/50 invalid:border-2 invalid:border-accent-100 invalid:text-accent-100 invalid:placeholder:text-accent-100/50"
size="54"
aria-errormessage="input-error"
/>
<span
id="input-error"
data-id="input-error"
role="status"
aria-live="polite"
class="absolute left-0 top-full mt-1 hidden text-sm italic peer-invalid:inline peer-invalid:text-accent-100"
></span>
</label>
<button
type="submit"
data-id="submitter"
class="inline-flex h-12 items-center justify-center rounded-md bg-accent-400 px-8 text-base font-bold text-white transition-colors"
>
Shorten It!
</button>
</div>
</form>
</section>
<!-------------------- FORM END --------------------->
<!------------- SHORTENED LINKS LIST ---------------->
<section class="mt-6 bg-[#EFF1F7] tw-content-grid">
<ul data-id="link-list" class="flex flex-col gap-4 py-20">
<!-- SHORTENED LINKS -->
<li
data-id="skeleton-loader"
data-visible="false"
class="flex-col rounded-md bg-white aria-hidden:hidden data-[visible=true]:flex data-[visible=false]:hidden md:flex-row md:items-center md:px-8 md:py-5"
>
<p
class="animate-pulse truncate border-b border-brand-200/25 p-3 text-base font-medium tracking-[0.1px] text-brand-400 md:border-none md:p-0 md:text-xl"
>
Loading...
</p>
<div
class="flex flex-col gap-4 p-3 md:ml-auto md:flex-row md:items-center md:p-0"
>
<button
type="button"
class="inline-flex h-10 animate-pulse items-center justify-center rounded-md bg-accent-400 px-8 text-base font-bold text-white transition-colors"
aria-selected="false"
disabled
>
Loading...
</button>
</div>
</li>
</ul>
</section>
<!------------- SHORTENED LINKS LIST ---------------->
<!---------------- STATISTICS ----------------------->
<section class="bg-[#EFF1F7] tw-content-grid">
<div class="flex flex-col gap-28 py-20">
<header
class="mx-auto flex max-w-[52ch] flex-col items-center gap-5 text-center"
>
<h2
class="text-3xl font-bold -tracking-[1px] text-brand-400 md:text-4xl"
>
Advanced Statistics
</h2>
<p
class="text-base font-medium tracking-[0.1px] text-brand-200 md:text-lg"
>
Track how your links are performing across the web with our
advanced statistics dashboard.
</p>
</header>
<div class="flex flex-col gap-24 lg:flex-row">
<article class="grid gap-4 rounded-md bg-white px-8 pb-8">
<div
class="grid h-20 w-20 -translate-y-1/2 place-content-center rounded-pill bg-brand-300"
>
<img
src="/icon-brand-recognition.svg"
class=""
alt="brand-recognition"
/>
</div>
<h3 class="text-xl font-bold text-brand-300">
Brand Recognition
</h3>
<p class="text-sm font-medium text-brand-200">
Boost your brand recognition with each click. Generic links
don't mean a thing. Branded links help instil confidence in
your content.
</p>
</article>
<article class="grid gap-4 rounded-md bg-white px-8 pb-8">
<div
class="grid h-20 w-20 -translate-y-1/2 place-content-center rounded-pill bg-brand-300"
>
<img
src="/icon-detailed-records.svg"
class=""
alt="detailed-records"
/>
</div>
<h3 class="text-xl font-bold text-brand-300">Detailed Records</h3>
<p class="text-sm font-medium text-brand-200">
Gain insights into who is clicking your links. Knowing when and
where people engage with your content helps inform better
decisions.
</p>
</article>
<article class="grid gap-4 rounded-md bg-white px-8 pb-8">
<div
class="grid h-20 w-20 -translate-y-1/2 place-content-center rounded-pill bg-brand-300"
>
<img
src="/icon-fully-customizable.svg"
class=""
alt="Fully Customizable"
/>
</div>
<h3 class="text-xl font-bold text-brand-300">
Fully Customizable
</h3>
<p class="text-sm font-medium text-brand-200">
Improve brand awareness and content discoverability through
customizable links, supercharging audience engagement.
</p>
</article>
</div>
</div>
</section>
<!---------------- STATISTICS ----------------------->
<!---------------- CALL TO ACTION ------------------->
<section
class="bg-brand-300 bg-[url(/bg-boost-mobile.svg)] bg-cover bg-no-repeat tw-content-grid md:bg-[url(/bg-boost-desktop.svg)]"
>
<div class="flex flex-col items-center gap-8 py-20 text-center">
<h2 class="text-3xl font-bold -tracking-[1px] text-white md:text-4xl">
Boost your links today
</h2>
<a
href="#"
class="inline-flex h-14 items-center justify-center rounded-pill bg-accent-400 px-8 text-lg font-bold text-white transition-colors md:text-xl"
>Get Started</a
>
</div>
</section>
<!---------------- CALL TO ACTION ------------------->
<!------------------- FOOTER ------------------------>
<footer class="bg-brand-500 tw-content-grid">
<section class="flex flex-col gap-20 pt-16">
<div
class="flex flex-col items-center justify-between gap-10 md:flex-row md:items-start"
>
<a class="">
<img src="/logo.svg" alt="shortly" class="brightness-0 invert" />
<span class="sr-only">Go to Home</span>
</a>
<nav class="flex flex-col gap-10 md:flex-row md:gap-20">
<ul class="flex flex-col items-center gap-4 md:items-start">
<li
class="mb-2 text-base font-bold -tracking-[0.25px] text-white"
>
Features
</li>
<li
class="text-sm font-medium -tracking-[0.234px] text-brand-100 transition-colors hover:text-accent-400 focus:text-accent-400"
>
<a href="#">Link Shortening</a>
</li>
<li
class="text-sm font-medium -tracking-[0.234px] text-brand-100 transition-colors hover:text-accent-400 focus:text-accent-400"
>
<a href="#">Branded Links</a>
</li>
<li
class="text-sm font-medium -tracking-[0.234px] text-brand-100 transition-colors hover:text-accent-400 focus:text-accent-400"
>
<a href="#">Analytics</a>
</li>
</ul>
<ul class="flex flex-col items-center gap-4 md:items-start">
<li
class="mb-2 text-base font-bold -tracking-[0.25px] text-white"
>
Resources
</li>
<li
class="text-sm font-medium -tracking-[0.234px] text-brand-100 transition-colors hover:text-accent-400 focus:text-accent-400"
>
<a href="#">Blog</a>
</li>
<li
class="text-sm font-medium -tracking-[0.234px] text-brand-100 transition-colors hover:text-accent-400 focus:text-accent-400"
>
<a href="#">Developers</a>
</li>
<li
class="text-sm font-medium -tracking-[0.234px] text-brand-100 transition-colors hover:text-accent-400 focus:text-accent-400"
>
<a href="#">Support</a>
</li>
</ul>
<ul class="flex flex-col items-center gap-4 md:items-start">
<li
class="mb-2 text-base font-bold -tracking-[0.25px] text-white"
>
Company
</li>
<li
class="text-sm font-medium -tracking-[0.234px] text-brand-100 transition-colors hover:text-accent-400 focus:text-accent-400"
>
<a href="#">About</a>
</li>
<li
class="text-sm font-medium -tracking-[0.234px] text-brand-100 transition-colors hover:text-accent-400 focus:text-accent-400"
>
<a href="#">Our Team</a>
</li>
<li
class="text-sm font-medium -tracking-[0.234px] text-brand-100 transition-colors hover:text-accent-400 focus:text-accent-400"
>
<a href="#">Careers</a>
</li>
<li
class="text-sm font-medium -tracking-[0.234px] text-brand-100 transition-colors hover:text-accent-400 focus:text-accent-400"
>
<a href="#">Contact</a>
</li>
</ul>
</nav>
<div class="flex items-center gap-6 sm:gap-4 lg:gap-8">
<a href="#" class="inline-flex items-center"
><i
class="fab fa-xl fa-facebook-square text-white transition-colors hover:text-accent-400 focus:text-accent-400"
></i
></a>
<a href="#" class="inline-flex items-center"
><i
class="fab fa-xl fa-twitter text-white transition-colors hover:text-accent-400 focus:text-accent-400"
></i
></a>
<a href="#" class="inline-flex items-center"
><i
class="fab fa-xl fa-pinterest text-white transition-colors hover:text-accent-400 focus:text-accent-400"
></i
></a>
<a href="#" class="inline-flex items-center"
><i
class="fab fa-xl fa-instagram text-white transition-colors hover:text-accent-400 focus:text-accent-400"
></i
></a>
</div>
</div>
<div
class="flex items-center justify-center text-[10px] font-medium leading-snug text-white"
>
<div class="flex flex-col items-center md:flex-row">
<p>
Design and Challenge by
<a
href="https://www.frontendmentor.io?ref=challenge"
target="_blank"
class="text-accent-400"
>Frontend Mentor|</a
>
</p>
<p>
Developed with
<span class="text-red-500">♥</span> by
<a
href="https://github.com/Melissacinta"
target="_blank"
class="text-accent-400"
>Melissacinta</a
>
and
<a
href="https://github.com/princemuel"
target="_blank"
class="text-accent-400"
>Prince Muel </a
>
</p>
<p>
©<time
datetime="2021-10-29T23:00:00.000Z"
data-id="initial-year"
>2021</time
>
-
<time datetime="" data-id="current-year"></time>
</p>
</div>
</div>
</section>
</footer>
<!------------------- FOOTER ------------------------>
</main>
<a
data-id="scroll-to-top"
data-visible="false"
class="invisible fixed bottom-7 right-7 -z-20 grid h-10 w-10 animate-bounce place-items-center rounded-md bg-accent-400 text-xl text-white duration-300 ease-in-out data-[visible=true]:visible data-[visible=true]:z-20"
href="#home"
>
<i class="fas fa-arrow-up"></i>
</a>
<template data-id="link-template">
<li
data-id="link-{{ hash }}"
class="flex flex-col rounded-md bg-white md:flex-row md:items-center md:px-8 md:py-5"
>
<p
data-id="link-original-{{ hash }}"
class="truncate border-b border-brand-200/25 p-3 text-base font-medium tracking-[0.1px] text-brand-400 md:border-none md:p-0 md:text-xl"
>
https://www.frontendmentor.io
</p>
<div
class="flex flex-col gap-4 p-3 md:ml-auto md:flex-row md:items-center md:p-0"
>
<p
data-id="link-shortened-{{ hash }}"
class="truncate text-base font-medium tracking-[0.1px] text-accent-400"
>
https://rel.ink/k4lKyk
</p>
<button
type="button"
data-id="copy-to-clipboard-{{ hash }}"
aria-selected="false"
class="inline-flex h-10 w-24 items-center justify-center rounded-md bg-accent-400 text-base font-bold text-white transition-colors aria-selected:bg-brand-300"
>
Copy
</button>
</div>
</li>
</template>
</body>
</html>