-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
324 lines (306 loc) · 11.5 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
<!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=Alata&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>
<header id="header">
<!-- navbar: start -->
<nav class="container relative p-6 mx-auto">
<div class="flex items-center justify-between">
<!-- logo & menu container: start -->
<div class="flex items-center space-x-20">
<img src="images/logo.svg" alt="logo" />
<div class="hidden space-x-6 font-bold lg:flex">
<a href="#" class="link">Features</a>
<a href="#" class="link">Pricing</a>
<a href="#" class="link">Resources</a>
</div>
</div>
<!-- logo & menu container: end -->
<!-- right buttons menu: start -->
<div class="items-center hidden space-x-6 font-bold lg:flex">
<div class="login">Login</div>
<a href="#" class="sign-up">Sign Up</a>
</div>
<!-- right buttons menu: start -->
<!-- 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>
<!-- mobile menu: start -->
<div
id="mobile-menu"
class="absolute z-50 hidden p-6 rounded-lg bg-darkViolet left-6 right-6 top-20"
>
<div
class="items-center justify-center w-full space-y-6 font-bold text-white rounded-sm flex-column"
>
<a href="#" class="w-full text-center hover:text-grayishViolet"
>Features</a
>
<a href="#" class="w-full text-center hover:text-grayishViolet"
>Pricing</a
>
<a href="#" class="w-full text-center hover:text-grayishViolet"
>Resources</a
>
<a
href="#"
class="w-full pt-6 text-center border-t border-grayishViolet hover:text-grayishViolet"
>Login</a
>
<a
href="#"
class="w-full py-3 text-center rounded-full bg-cyan hover:opacity-90"
>Sign Up</a
>
</div>
</div>
<!-- mobile menu: end -->
</div>
</nav>
<!-- navbar: end -->
</header>
<!-- hero section: start -->
<section id="hero">
<div class="container flex flex-col-reverse p-6 mx-auto lg:flex-row">
<div class="space-y-12 flex-column 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 lg:max-w-md lg:text-left text-darkViolet"
>
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="#shorten" class="btn btn-start">Get Started</a>
</div>
</div>
<div class="mx-auto mb-24 md:w-180 lg:mb-0 lg:w-1/2">
<img src="images/illustration-working.svg" alt="img" />
</div>
</div>
</section>
<!-- hero section: end -->
<!-- shorten section: start -->
<section id="shorten" class="relative bg-gray-100">
<div class="max-w-4xl p-6 mx-auto space-y-6">
<form
id="shorten-form"
class="relative w-full p-12 -mt-20 space-y-4 rounded-lg flex-column bg-darkViolet md:flex-row md:space-y-0 md:space-x-3"
>
<input
type="text"
placeholder="Your URL Here ..."
id="shorten-input"
class="flex-1 p-3 border-2 rounded-lg placeholder-darkViolet focus:outline-none"
/><button class="btn btn-shorten">Shorten It</button>
<div
id="shorten-error"
class="absolute text-sm italic left-7 bottom-3 text-red"
></div>
</form>
<ul class="space-y-6">
<!-- link item -->
<li id="parent">
<div class="shorted-item">
<p class="url-link">https://frontendmentor.io</p>
<div class="shortened-link-container">
<div class="font-bold text-cyan">https://rel.ink/k4IKyk</div>
<button class="btn btn-copy">Copy</button>
</div>
</div>
</li>
<!-- link item -->
<li
class="flex flex-col items-center justify-between w-full p-6 bg-white rounded-lg md:flex-row"
>
<p class="url-link">https://frontendmentor.io</p>
<div class="shortened-link-container">
<div class="font-bold text-cyan">https://rel.ink/k4IKyk</div>
<button class="btn btn-copy">Copy</button>
</div>
</li>
<!-- link item -->
<li
class="items-center justify-between w-full p-6 bg-white rounded-lg flex-column md:flex-row"
>
<p class="url-link">https://frontendmentor.io</p>
<div class="shortened-link-container">
<div class="font-bold text-cyan">https://rel.ink/k4IKyk</div>
<button class="btn btn-copy">Copy</button>
</div>
</li>
</ul>
</div>
</section>
<!-- shorten section: end -->
<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-veryDarkBlue md:max-w-md">
Track how your links are performing across the web with our advanced
statistics dashboard.
</p>
</div>
</section>
<!-- feature section: start -->
<section id="features" class="pb-32 bg-gray-100">
<div
class="container relative items-start px-6 mx-auto flex-column md:flex-row md:space-x-8"
>
<!-- 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 item 1-->
<div class="box-item-container">
<div class="absolute -ml-10 left-1/2 -top-10 md:left-16">
<div class="box-image-container">
<img
src="images/icon-brand-recognition.svg"
alt="brand recognition"
/>
</div>
</div>
<h5 class="box-header">Brand Recognition</h5>
<p class="box-paragraph">
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 item 2-->
<div class="mt-24 md:mt-8 box-item-container">
<div class="absolute -ml-10 left-1/2 -top-10 md:left-16">
<div class="box-image-container">
<img
src="images/icon-detailed-records.svg"
alt="detailed records"
/>
</div>
</div>
<h5 class="box-header">Brand Recognition</h5>
<p class="box-paragraph">
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 item 3-->
<div class="mt-24 md:mt-16 box-item-container">
<div class="absolute -ml-10 left-1/2 -top-10 md:left-16">
<div class="box-image-container">
<img
src="images/icon-fully-customizable.svg"
alt="fully customizable"
/>
</div>
</div>
<h5 class="box-header">Brand Recognition</h5>
<p class="box-paragraph">
Boost your brand recognition with each click. Generic links don't
mean a thing. Branded links help instil confidence in your content.
</p>
</div>
</div>
</section>
<!-- feature section: end -->
<!-- CTA section -->
<section id="cta" class="py-24 bg-darkViolet">
<div class="p-2 space-y-6 flex-column">
<h5
class="mx-auto space-y-10 text-4xl font-bold text-center text-white"
>
Boost your links today
</h5>
<a
href="#shorten"
class="mx-auto text-2xl rounded-full hover:bg-cyanLight md:text-base md:py-3 btn"
>
Get Started
</a>
</div>
</section>
<footer class="py-16 bg-veryDarkBlue">
<div
class="container items-center justify-around mx-auto space-y-16 flex-column md:flex-row md:space-y-0 md:items-start"
>
<img src="images/logo-footer.svg" alt="logo" />
<!-- menu container: start -->
<div
class="space-y-16 flex-column md:space-x-20 md:flex-row md:space-y-0"
>
<!-- menu 1 -->
<div class="footer-menu">
<div class="footer-title">Features</div>
<div class="footer-link-container">
<a href="#" class="footer-link">Link shortening</a
><a href="#" class="footer-link">Branded links</a
><a href="#" class="footer-link">Analytics</a>
</div>
</div>
<!-- menu 2 -->
<div class="footer-menu">
<div class="footer-title">Resources</div>
<div class="footer-link-container">
<a href="#" class="footer-link">Blog</a
><a href="#" class="footer-link">Developers</a
><a href="#" class="footer-link">Support</a>
</div>
</div>
<!-- menu 3 -->
<div class="footer-menu">
<div class="footer-title">Company</div>
<div class="footer-link-container">
<a href="#" class="footer-link">About</a>
<a href="#" class="footer-link">Our Team</a
><a href="#" class="footer-link">Careers</a
><a href="#" class="footer-link">Contact</a>
</div>
</div>
</div>
<!-- menu container: end -->
<!-- social media -->
<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>