-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
286 lines (252 loc) · 10.8 KB
/
Copy pathindex.html
File metadata and controls
286 lines (252 loc) · 10.8 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1.0, maximum-scale=5.0, minimal-ui" />
<link rel="icon" type="image/png" sizes="32x32" 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@500;700&display=swap" rel="stylesheet" />
<title>Shortly — More than just shorter links | Brittney Galloway | Frontend Mentor</title>
<link rel="stylesheet" href="./stlye.css" />
</head>
<body>
<!-- ===================== HEADER / NAV ===================== -->
<header class="site-header">
<div class="container site-header__inner">
<a href="/" class="site-header__logo" aria-label="Shortly — home">
Shortly
</a>
<!-- Hamburger toggle (mobile only) -->
<button
class="nav-toggle"
aria-controls="primary-nav"
aria-expanded="false"
aria-label="Open navigation menu"
>
<span class="nav-toggle__bar" aria-hidden="true"></span>
<span class="nav-toggle__bar" aria-hidden="true"></span>
<span class="nav-toggle__bar" aria-hidden="true"></span>
</button>
<nav id="primary-nav" class="primary-nav" aria-label="Primary">
<ul class="primary-nav__links" role="list">
<li><a href="#features">Features</a></li>
<li><a href="#pricing">Pricing</a></li>
<li><a href="#resources">Resources</a></li>
</ul>
<div class="primary-nav__auth">
<a href="#login" class="btn btn--ghost">Login</a>
<a href="#signup" class="btn btn--primary btn--pill">Sign Up</a>
</div>
</nav>
</div>
</header>
<main id="main-content">
<!-- ===================== HERO ===================== -->
<section class="hero" aria-labelledby="hero-heading">
<div class="container hero__inner">
<div class="hero__content">
<h1 id="hero-heading" class="hero__heading">
More than just shorter links
</h1>
<p class="hero__body">
Build your brand's recognition and get detailed insights
on how your links are performing.
</p>
<a href="#shorten" class="btn btn--primary btn--pill">Get Started</a>
</div>
<div class="hero__illustration" aria-hidden="true">
<img
src="./images/illustration-working.svg"
alt=""
width="733"
height="482"
/>
</div>
</div>
</section>
<!-- ===================== URL SHORTENER ===================== -->
<section class="shortener-section" aria-labelledby="shorten-heading">
<div class="container">
<!-- Visually hidden heading keeps section labelled for screen readers -->
<h2 id="shorten-heading" class="sr-only">Shorten a link</h2>
<div class="shortener">
<form
class="shortener__form"
action="#"
method="post"
aria-label="URL shortener"
novalidate
>
<div class="shortener__field-wrapper">
<label for="url-input" class="sr-only">Enter a link to shorten</label>
<input
id="url-input"
class="shortener__input"
type="url"
name="url"
placeholder="Shorten a link here..."
autocomplete="url"
aria-describedby="url-error"
aria-required="true"
/>
<!-- Error message – hidden by default, shown via JS when invalid -->
<p id="url-error" class="shortener__error" role="alert" aria-live="polite" hidden>
Please add a link
</p>
</div>
<button type="submit" class="btn btn--primary shortener__btn">
Shorten It!
</button>
</form>
</div>
<!-- ── Results list – populated by JS ── -->
<ul class="results-list" aria-label="Shortened links" aria-live="polite" role="list">
<!--
Each result item is injected by index.js
li.results-list__item
-->
</ul>
</div>
</section>
<!-- ===================== STATISTICS ===================== -->
<section class="stats-section" id="features" aria-labelledby="stats-heading">
<div class="container">
<div class="stats-section__intro">
<h2 id="stats-heading" class="stats-section__heading">Advanced Statistics</h2>
<p class="stats-section__body">
Track how your links are performing across the web with our
advanced statistics dashboard.
</p>
</div>
<!-- Feature cards -->
<ul class="features-list" role="list">
<li class="feature-card">
<div class="feature-card__icon-wrapper" aria-hidden="true">
<img
src="./images/icon-brand-recognition.svg"
alt=""
class="feature-card__icon"
width="40"
height="40"
/>
</div>
<div class="feature-card__content">
<h3 class="feature-card__heading">Brand Recognition</h3>
<p class="feature-card__body">
Boost your brand recognition with each click. Generic links don't
mean a thing. Branded links help instil confidence in your content.
</p>
</div>
</li>
<li class="feature-card">
<div class="feature-card__icon-wrapper" aria-hidden="true">
<img
src="./images/icon-detailed-records.svg"
alt=""
class="feature-card__icon"
width="40"
height="40"
/>
</div>
<div class="feature-card__content">
<h3 class="feature-card__heading">Detailed Records</h3>
<p class="feature-card__body">
Gain insights into who is clicking your links. Knowing when and where
people engage with your content helps inform better decisions.
</p>
</div>
</li>
<li class="feature-card">
<div class="feature-card__icon-wrapper" aria-hidden="true">
<img
src="./images/icon-fully-customizable.svg"
alt=""
class="feature-card__icon"
width="40"
height="40"
/>
</div>
<div class="feature-card__content">
<h3 class="feature-card__heading">Fully Customizable</h3>
<p class="feature-card__body">
Improve brand awareness and content discoverability through customizable
links, supercharging audience engagement.
</p>
</div>
</li>
</ul>
</div>
</section>
<!-- ===================== CTA BAND ===================== -->
<section class="cta-band" aria-labelledby="cta-heading">
<div class="container cta-band__inner">
<h2 id="cta-heading" class="cta-band__heading">Boost your links today</h2>
<a href="#signup" class="btn btn--primary btn--pill">Get Started</a>
</div>
</section>
</main>
<!-- ===================== FOOTER ===================== -->
<footer class="site-footer" aria-label="Site footer">
<div class="container site-footer__inner">
<a href="/" class="site-footer__logo" aria-label="Shortly — home">
Shortly
</a>
<nav class="footer-nav" aria-label="Footer">
<div class="footer-nav__group">
<h3 class="footer-nav__heading">Features</h3>
<ul role="list">
<li><a href="#link-shortening">Link Shortening</a></li>
<li><a href="#branded-links">Branded Links</a></li>
<li><a href="#analytics">Analytics</a></li>
</ul>
</div>
<div class="footer-nav__group">
<h3 class="footer-nav__heading">Resources</h3>
<ul role="list">
<li><a href="#blog">Blog</a></li>
<li><a href="#developers">Developers</a></li>
<li><a href="#support">Support</a></li>
</ul>
</div>
<div class="footer-nav__group">
<h3 class="footer-nav__heading">Company</h3>
<ul role="list">
<li><a href="#about">About</a></li>
<li><a href="#our-team">Our Team</a></li>
<li><a href="#careers">Careers</a></li>
<li><a href="#contact">Contact</a></li>
</ul>
</div>
</nav>
<ul class="social-links" role="list" aria-label="Social media links">
<li>
<a href="https://facebook.com" class="social-links__link" aria-label="Shortly on Facebook" rel="noopener noreferrer" target="_blank">
<img src="./images/icon-facebook.svg" alt="" aria-hidden="true" width="20" height="20" />
</a>
</li>
<li>
<a href="https://twitter.com" class="social-links__link" aria-label="Shortly on Twitter" rel="noopener noreferrer" target="_blank">
<img src="./images/icon-twitter.svg" alt="" aria-hidden="true" width="20" height="20" />
</a>
</li>
<li>
<a href="https://pinterest.com" class="social-links__link" aria-label="Shortly on Pinterest" rel="noopener noreferrer" target="_blank">
<img src="./images/icon-pinterest.svg" alt="" aria-hidden="true" width="20" height="20" />
</a>
</li>
<li>
<a href="https://instagram.com" class="social-links__link" aria-label="Shortly on Instagram" rel="noopener noreferrer" target="_blank">
<img src="./images/icon-instagram.svg" alt="" aria-hidden="true" width="20" height="20" />
</a>
</li>
</ul>
</div>
<div class="attribution">
Challenge by <a href="https://www.frontendmentor.io?ref=challenge" target="_blank">Frontend Mentor</a>.
Coded by <a href="https://github.com/brittgalloway">Brittney Galloway</a>.
</div>
</footer>
<script src="index.js"></script>
</body>
</html>