-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
445 lines (445 loc) · 15.3 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta
http-equiv="X-UA-Compatible"
content="IE=edge"
/>
<meta
name="viewport"
content="width=device-width, initial-scale=1.0"
/>
<link
rel="shortcut icon"
type="image/png"
href="images/favicon-32x32.png"
/>
<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@400;500;700&display=swap"
rel="stylesheet"
/>
<link
rel="stylesheet"
href="css/style.css"
/>
<script
src="js/script.js"
defer
></script>
<title>Shortly</title>
</head>
<body>
<section>
<!-- nav container -->
<nav class="container relative p-6 mx-auto">
<!-- flex container -->
<div class="flex items-center justify-between">
<!-- flex container for logo/menu -->
<div class="flex items-center space-x-20">
<!-- logo -->
<img
src="images/logo.svg"
alt="logo"
/>
<!-- left menu -->
<div class="hidden space-x-8 font-bold lg:flex">
<a
href="#"
class="text-grayishViolet hover:text-veryDarkViolet"
>Features</a
>
<a
href="#"
class="text-grayishViolet hover:text-veryDarkViolet"
>Pricing</a
>
<a
href="#"
class="text-grayishViolet hover:text-veryDarkViolet"
>Resources</a
>
</div>
</div>
<!-- right buttons menu -->
<div class="items-center hidden space-x-6 font-bold text-grayishViolet lg:flex">
<div class="hover:text-veryDarkViolet">Login</div>
<a
href="#"
class="px-8 py-3 font-bold text-white rounded-full bg-cyan hover:opacity-70"
>Sign Up</a
>
</div>
<!-- hamburger button -->
<button
id="menu-btn"
class="block hamburger lg:hidden focus:outline-none"
type="button"
>
<span class="hamburger-top"></span>
<span class="hamburger-middle"></span>
<span class="hamburger-bottom"></span>
</button>
</div>
<!-- TODO mobile menu -->
<div id="menu" class="absolute hidden p-6 rounded-lg bg-darkViolet left-6 right-6 top-20 z-100">
<div class="flex flex-col items-center justify-center w-full space-y-6 font-bold text-white rounded-sm">
<a href="#" class="w-full text-center">Features</a>
<a href="#" class="w-full text-center">Pricing</a>
<a href="#" class="w-full text-center">Resources</a>
<a href="#" class="w-full pt-6 text-center border-t border-gray-400">Login</a>
<a href="#" class="w-full py-3 text-center rounded-full bg-cyan">Sign Up</a>
</div>
</div>
</nav>
<!-- hero section -->
<section id="hero">
<!-- hero container -->
<div class="container flex flex-col-reverse p-6 mx-auto lg:flex-row">
<!-- content container -->
<div class="flex flex-col space-y-10 mb-44 lg:mt-16 lg:w-1/2 xl:mb-52">
<h1 class="text-5xl font-bold text-center lg:text-6xl lg:max-w-md lg:text-left">
More than just shorter links
</h1>
<p class="text-2xl text-center text-gray-400 lg:max-w-md lg:text-left">
Build your brand's recognition and get detailed insights on how your links are
performing.
</p>
<div class="mx-auto lg:mx-0">
<a
href=""
class="px-10 py-5 text-2xl font-bold text-white rounded-full bg-cyan lg:py-4 hover:opacity-70"
>Get Started</a
>
</div>
</div>
<!-- image -->
<div class="mx-auto mb-24 md:w-180 lg:mb-0 lg:w-1/2">
<img
src="images/illustration-working.svg"
alt="working"
/>
</div>
</div>
</section>
<!-- shorten section -->
<section
id="shorten"
class="relative bg-gray-100"
></section>
<!-- shorten container -->
<div class="max-w-4xl p-6 mx-auto space-y-6">
<!-- form -->
<form
id="link-form"
class="relative flex flex-col w-full p-10 -mt-20 space-y-4 rounded-lg bg-darkViolet md:flex-row md:space-y-0 md:space-x-3"
>
<input
type="url"
class="flex-1 p-3 placeholder-yellow-500 border-2 rounded-lg focus:outline-none"
placeholder="Shorten a link here"
id="link-input"
/>
<button
class="px-10 py-3 text-white rounded-lg bg-cyan hover:bg-cyanLight focus:outline-none md:py-2"
>
Shorten It!
</button>
<!-- error message -->
<div
id="err-msg"
class="absolute text-sm italic left-7 bottom-3 text-red"
></div>
</form>
<!-- link 1 -->
<div
class="flex flex-col items-center justify-between w-full p-6 bg-white rounded-lg md:flex-row"
>
<p class="font-bold text-center text-veryDarkViolet md:text-left">
https://frontendmentor.io
</p>
<div
class="flex flex-col items-center justify-end flex-1 space-x-4 space-y-2 md:flex-row md:space-y-0"
>
<div class="font-bold text-cyan">https://rel.ink/k4IKyk</div>
<button
class="p-2 px-8 text-white rounded-lg bg-cyan hover:opacity-70 focus:outline-none"
>
Copy
</button>
</div>
</div>
<!-- link 2 -->
<div
class="flex flex-col items-center justify-between w-full p-6 bg-white rounded-lg md:flex-row"
>
<p class="font-bold text-center text-veryDarkViolet md:text-left">
https://twitter.com/frontendmentor
</p>
<div
class="flex flex-col items-center justify-end flex-1 space-x-4 space-y-2 md:flex-row md:space-y-0"
>
<div class="font-bold text-cyan">https://rel.ink/gxOXp9</div>
<button
class="p-2 px-8 text-white rounded-lg bg-darkViolet hover:opacity-70 focus:outline-none"
>
Copy
</button>
</div>
</div>
<!-- link 3 -->
<div
class="flex flex-col items-center justify-between w-full p-6 bg-white rounded-lg md:flex-row"
>
<p class="font-bold text-center text-veryDarkViolet md:text-left">
https://linkedin.com/frontend-mentor
</p>
<div
class="flex flex-col items-center justify-end flex-1 space-x-4 space-y-2 md:flex-row md:space-y-0"
>
<div class="font-bold text-cyan">https://rel.ink/gob3X9</div>
<button
class="p-2 px-8 text-white rounded-lg bg-cyan hover:opacity-70 focus:outline-none"
>
Copy
</button>
</div>
</div>
</div>
</section>
<!-- stats section -->
<section
id="stats"
class="py-24 bg-gray-100"
>
<div class="container px-3 mx-auto">
<h2 class="mb-6 text-4xl font-bold text-center">Advanced Statistics</h2>
<p class="max-w-xs mx-auto text-center text-gray-400 md:max-w-md">
Track how your links are performing across the web with our advanced statistics dashboard.
</p>
</div>
</section>
<!-- feature box section -->
<section
id="features"
class="pb-32 bg-gray-100"
>
<div
class="container relative flex flex-col items-start px-6 mx-auto md:flex-row md:space-x-7"
>
<!-- horizontal line -->
<div class="absolute hidden w-10/12 h-3 top-24 left-16 bg-cyan md:block"></div>
<!-- vertical line -->
<div class="absolute w-2 h-full -ml-1 left-1/2 bg-cyan md:hidden"></div>
<!-- box 1 -->
<div class="relative flex flex-col p-6 space-y-6 bg-white rounded lg md:w-1/3">
<!-- image positioning -->
<div class="absolute -ml-10 left-1/2 -top-10 md:left-16">
<!-- image container for background & center -->
<div
class="flex items-center justify-center w-20 h-20 p-4 rounded-full bg-veryDarkViolet"
>
<img
src="images/icon-brand-recognition.svg"
alt="icon brand recognition"
/>
</div>
</div>
<h5 class="pt-6 text-xl font-bold text-center capitalize md:text-left">
Brand Recognition
</h5>
<p class="text-center text-gray-400 md:text-left">
Boost your brand recognition with each click. Generic links dont't mean a thing. Branded
links help instill confidence in your content.
</p>
</div>
<!-- box 2 -->
<div
class="relative flex flex-col p-6 mt-24 space-y-6 bg-white rounded-lg md:mt-8 md:w-1/3"
>
<!-- image positioning -->
<div class="absolute -ml-10 left-1/2 -top-10 md:left-16">
<!-- image container for background & center -->
<div
class="flex items-center justify-center w-20 h-20 p-4 rounded-full bg-veryDarkViolet"
>
<img
src="images/icon-detailed-records.svg"
alt="icon detailed records"
/>
</div>
</div>
<h5 class="pt-6 text-xl font-bold text-center capitalize md:text-left">
Detailed Records
</h5>
<p class="text-center text-gray-400 md:text-left">
Gain insights into who is clicking your links. Knowing when and where people engage with
your content helps inform better decisions.
</p>
</div>
<!-- box 3 -->
<div
class="relative flex flex-col p-6 mt-24 space-y-6 bg-white rounded-lg md:mt-16 md:w-1/3"
>
<!-- image positioning -->
<div class="absolute -ml-10 left-1/2 -top-10 md:left-16">
<!-- image container for background & center -->
<div
class="flex items-center justify-center w-20 h-20 p-4 rounded-full bg-veryDarkViolet"
>
<img
src="images/icon-fully-customizable.svg"
alt="icon fully customizable"
/>
</div>
</div>
<h5 class="pt-6 text-xl font-bold text-center capitalize md:text-left">
Fully Customizable
</h5>
<p class="text-center text-gray-400 md:text-left">
Improve brand awareness and content discoverability through customizable links,
supercharging audience engagement.
</p>
</div>
</div>
</section>
<!-- cta section -->
<section
id="cta"
class="py-24 bg-darkViolet"
>
<div class="flex flex-col p-2 space-y-6">
<h5 class="mx-auto space-y-10 text-4xl font-bold text-center text-white">
Boost your links today
</h5>
<button
class="px-10 py-5 mx-auto text-2xl font-bold text-white rounded-full bg-cyan hover:bg-cyanLight md:text-base md:py-3 focus:outline-none"
>
Get Started
</button>
</div>
</section>
<footer class="py-16 bg-veryDarkViolet">
<div
class="container flex flex-col items-center justify-between px-6 mx-auto space-y -16 md:px-0 md:flex-row md:space-y-0 md:items-start"
>
<!-- logo -->
<img
src="images/logo.svg"
alt="logo"
/>
<!-- menus container -->
<div class="flex flex-col space-y-16 md:space-x-20 md:flex-row md:space-y-0">
<!-- menu 1 -->
<div class="flex flex-col items-center w-full md:items-start">
<div class="mb-5 font-bold text-white capitalize">Features</div>
<div class="flex flex-col items-center space-y-3 md:items-start">
<a
href="#"
class="capitalize text-grayishViolet hover:text-cyan"
>Link shortening</a
>
<a
href="#"
class="capitalize text-grayishViolet hover:text-cyan"
>Branded links</a
>
<a
href="#"
class="capitalize text-grayishViolet hover:text-cyan"
>Analytics</a
>
</div>
</div>
<!-- menu 2 -->
<div class="flex flex-col items-center w-full md:items-start">
<div class="mb-5 font-bold text-white capitalize">Resources</div>
<div class="flex flex-col items-center space-y-3 md:items-start">
<a
href="#"
class="capitalize text-grayishViolet hover:text-cyan"
>Blog</a
>
<a
href="#"
class="capitalize text-grayishViolet hover:text-cyan"
>Developers</a
>
<a
href="#"
class="capitalize text-grayishViolet hover:text-cyan"
>Support</a
>
</div>
</div>
<!-- menu 3 -->
<div class="flex flex-col items-center w-full md:items-start">
<div class="mb-5 font-bold text-white capitalize">Company</div>
<div class="flex flex-col items-center space-y-3 md:items-start">
<a
href="#"
class="capitalize text-grayishViolet hover:text-cyan"
>About</a
>
<a
href="#"
class="capitalize text-grayishViolet hover:text-cyan"
>Our Team</a
>
<a
href="#"
class="capitalize text-grayishViolet hover:text-cyan"
>Careers</a
>
<a
href="#"
class="capitalize text-grayishViolet hover:text-cyan"
>Contact</a
>
</div>
</div>
</div>
<!-- social container -->
<div class="flex space-x-6">
<a href="#">
<img
src="images/icon-facebook.svg"
alt="facebook"
class="ficon"
/>
</a>
<a href="#">
<img
src="images/icon-twitter.svg"
alt="twitter"
class="ficon"
/>
</a>
<a href="#">
<img
src="images/icon-pinterest.svg"
alt="pinterest"
class="ficon"
/>
</a>
<a href="#">
<img
src="images/icon-instagram.svg"
alt="instagram"
class="ficon"
/>
</a>
</div>
</div>
</footer>
</body>
</html>