-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
410 lines (383 loc) · 14.7 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
<!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>
<!-- Nav Container -->
<nav class="relative container mx-auto p-6">
<!-- Flex Container for all items -->
<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="" />
<!-- 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="hidden items-center 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 bg-cyan rounded-full hover:opacity-70"
>Sign Up</a
>
</div>
<!-- Hamburger Menu -->
<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>
<!-- 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 border-t border-gray-400 text-center"
>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 mx-auto p-6 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="py-5 px-10 text-2xl font-bold text-white bg-cyan rounded-full lg:py-4 hover:opacity-70"
>Get Started
</a>
</div>
</div>
<!-- Image -->
<div class="mb-24 mx-auto md:w-180 lg:mb-0 lg:w-1/2">
<img src="images/illustration-working.svg" alt="" />
</div>
</div>
</section>
<!-- Shorten Section -->
<section id="shorten" class="relative bg-grey 100">
<!-- Shorten Container -->
<div class="max-w-4xl mx-auto p-6 space-y-6">
<!-- Form -->
<form
id="link-form"
class="relative flex flex-col w-full p-10 -mt-20 space-y-4 bg-darkViolet rounded-lg md:flex-row md:space-y-0 md:space-x-3"
>
<input
type="text"
class="flex-1 p-3 border-2 rounded-lg placeholder-yellow-500 focus:outline-none"
placeholder="Shorten a link here"
id="link-input"
/>
<button
class="px-10 py-3 text-white bg-cyan rounded-lg hover:bg-cyanLight focus:outline-none md:py-2"
>
Shorten It!
</button>
<!-- Error Message -->
<div
id="err-msg"
class="absolute left-7 bottom-3 text-red text-sm italic"
></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 bg-cyan rounded-lg 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/xghsdgfdhyk</div>
<button
class="p-2 px-8 text-white bg-darkViolet rounded-lg 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/ffgghjj</div>
<button
class="p-2 px-8 text-white bg-cyan rounded-lg 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 mx-auto px-3">
<h2 class="text-4xl mb-6 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="relative container flex flex-col items-start px-6 mx-auto md:flex-row md:space-x-7"
>
<!-- Horizontal Line -->
<div
class="hidden absolute top-24 w-10/12 left-16 h-3 bg-cyan md:block"
></div>
<!-- Vertical Line -->
<div class="absolute w-2 left-1/2 h-full -ml-1 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="" />
</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 don't
mean a thing. Branded links help instil confidence in your content.
</p>
</div>
<!-- Box 2 -->
<div
class="relative flex flex-col mt-24 p-6 space-y-6 bg-white rounded-lg md:w-1/3 md:mt-8"
>
<!-- 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="" />
</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 mt-24 p-6 space-y-6 bg-white rounded-lg md:w-1/3 md:mt-16"
>
<!-- 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="" />
</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 mx-auto space-y-16 md:flex-row md:space-y-0 md:items-start"
>
<!-- Logo -->
<img src="images/logo.svg" alt="" />
<!-- 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="" class="ficon" />
</a>
<a href="#">
<img src="images/icon-twitter.svg" alt="" class="ficon" />
</a>
<a href="#">
<img src="images/icon-pinterest.svg" alt="" class="ficon" />
</a>
<a href="#">
<img src="images/icon-instagram.svg" alt="" class="ficon" />
</a>
</div>
</div>
</footer>
</body>
</html>