-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
319 lines (290 loc) · 21.2 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="author" content="Gideon Addo" />
<meta name="keywords" content="HTML CSS JavaScript Tailwindcss" />
<meta name="description"
content="This is a solution to the Easybank landing page challenge on Frontend Mentor. Frontend Mentor challenges help you improve your coding skills by building realistic projects." />
<link rel="icon" type="image/png" sizes="32x32" href="./src/images/favicon-32x32.png">
<link rel="stylesheet" href="./css/main.css">
<title>Frontend Mentor | Easybank landing page</title>
<style>
@import url(https://fonts.googleapis.com/css?family=Public+Sans:100,200,300,regular,500,600,700,800,900,100italic,200italic,300italic,italic,500italic,600italic,700italic,800italic,900italic);
.attribution {
font-size: 11px;
text-align: center;
}
.attribution a {
color: hsl(228, 45%, 44%);
}
</style>
</head>
<body class="font-publicSans bg-white overflow-x-hidden">
<header class="relative bg-white w-full px-7 py-4 z-10">
<div class="flex w-full items-center justify-between max-w-6xl mx-auto">
<a href="#" aria-label="Navigate to homepage">
<img src="./src/images/logo.svg" width="139" height="20" alt="Easybank logo" />
</a>
<nav
class="nav bg-gradient-to-b from-black/50 to-white/10 p-6 absolute top-full left-0 w-full h-[calc(100vh-60px)] overflow-hidden md:overflow-visible md:h-max md:w-max md:bg-none md:relative md:top-0 motion-safe:transition motion-reduce:transition-none md:p-0 opacity-0 md:opacity-100 md:z-0 -z-20">
<ul
class="flex items-center gap-6 bg-white flex-col py-7 rounded-md md:py-0 md:flex-row md:bg-transparent scale-90 motion-safe:transition-transform motion-reduce:transition-none md:scale-100 duration-200">
<li class="group h-auto"><a href="#"
class="text-darkBlue h-auto md:text-grayishBlue relative text-base md:hover:text-darkBlue motion-safe:transition-colors motion-reduce:transition-none md:after:absolute after:w-full after:h-[0.2rem] after:bg-gradient-to-r after:from-limeGreen after:to-brightCyan after:inset-x-0 after:-bottom-[150%] after:scale-x-0 group-hover:after:scale-x-100 after:motion-safe:transition-transform after:motion-reduce:transition-none">Home</a>
</li>
<li class="group"><a href="#about"
class="text-darkBlue md:text-grayishBlue relative text-base md:hover:text-darkBlue motion-safe:transition-colors motion-reduce:transition-none md:after:absolute after:w-full after:h-[0.2rem] after:bg-gradient-to-r after:from-limeGreen after:to-brightCyan after:inset-x-0 after:-bottom-[150%] after:scale-x-0 group-hover:after:scale-x-100 after:motion-safe:transition-transform after:motion-reduce:transition-none">About</a>
</li>
<li class="group"><a href="#contact"
class="text-darkBlue md:text-grayishBlue relative text-base md:hover:text-darkBlue motion-safe:transition-colors motion-reduce:transition-none md:after:absolute after:w-full after:h-[0.2rem] after:bg-gradient-to-r after:from-limeGreen after:to-brightCyan after:inset-x-0 after:-bottom-[150%] after:scale-x-0 group-hover:after:scale-x-100 after:motion-safe:transition-transform after:motion-reduce:transition-none">Contact</a>
</li>
<li class="group"><a href="#blog"
class="text-darkBlue md:text-grayishBlue relative text-base md:hover:text-darkBlue motion-safe:transition-colors motion-reduce:transition-none md:after:absolute after:w-full after:h-[0.2rem] after:bg-gradient-to-r after:from-limeGreen after:to-brightCyan after:inset-x-0 after:-bottom-[150%] after:scale-x-0 group-hover:after:scale-x-100 after:motion-safe:transition-transform after:motion-reduce:transition-none">Blog</a>
</li>
<li class="group"><a href="#careers"
class="text-darkBlue md:text-grayishBlue relative text-base md:hover:text-darkBlue motion-safe:transition-colors motion-reduce:transition-none md:after:absolute after:w-full after:h-[0.2rem] after:bg-gradient-to-r after:from-limeGreen after:to-brightCyan after:inset-x-0 after:-bottom-[150%] after:scale-x-0 group-hover:after:scale-x-100 after:motion-safe:transition-transform after:motion-reduce:transition-none">Careers</a>
</li>
</ul>
</nav>
<button type="button"
class="py-3 px-7 text-white rounded-full hidden text-sm md:block bg-gradient-to-r from-limeGreen to-brightCyan brightness-100 hover:brightness-110 motion-safe:transition motion-reduce:transition-none">Request
Invite</button>
<button id="menu_button" type="button" aria-label="toggle menu"
class="w-5 h-4 flex flex-col justify-between md:hidden">
<span id="top"
class="bg-darkBlue w-full h-[0.1rem] motion-safe:transition motion-reduce:transition-none ease-in-out"></span>
<span id="middle"
class="bg-darkBlue w-full h-[0.1rem] motion-safe:transition motion-reduce:transition-none ease-in-out"></span>
<span id="bottom"
class="bg-darkBlue w-full h-[0.1rem] motion-safe:transition motion-reduce:transition-none ease-in-out"></span>
</button>
</div>
</header>
<section
class="relative px-6 py-16 sm:py-10 lg:pb-0 bg-veryLightGray bg-introMobile bg-no-repeat [background-size:100%_52%] sm:[background-size:100%_68%] md:[background-size:85%_125%] lg:[background-size:85%_154%] xl:[background-size:80%_154%] [background-position:right_top] md:bg-introDesktop md:[background-position:right_-160%_top_60%] lg:[background-position:right_-136%_top_72%] xl:[background-position:right_-125%_top_72%] 2xl:[background-position:right_-118%_top_72%]">
<div class="flex flex-col items-center gap-6 max-w-6xl mx-auto md:flex-row-reverse md:justify-between">
<div class="w-full md:max-w-[65%] relative min-h-[10rem] sm:min-h-[24rem] lg:min-h-[38rem]">
<div
class="w-full max-w-lg md:max-w-6xl mx-auto md:mx-0 md:absolute md:-right-[23.5%] lg:-right-[21.5%] xl:-right-[36%] 2xl:-right-[38%]">
<img src="./src/images/image-mockups.png" alt="Image of our banking app on mobile devices" width="767"
height="939" loading="lazy" class="-mt-[56%] sm:-mt-[43.4%] md:-mt-[25%] xl:-mt-[21%]" />
</div>
</div>
<div
class="flex flex-col gap-6 text-center items-center md:max-w-[50%] md:min-h-[23rem] lg:min-h-[38rem] lg:my-auto justify-center md:text-left md:items-start">
<h1 class="text-4xl text-darkBlue lg:text-5xl max-w-xs md:max-w-sm">Next generation digital
banking</h1>
<p class="text-grayishBlue text-sm max-w-xs md:max-w-[25rem] lg:text-base">Take your financial life online.
Your
Easybank account
will be a
one-stop-shop
for spending, saving, budgeting, investing, and much more.</p>
<button type="button"
class="py-2 px-7 text-white rounded-full text-base bg-gradient-to-r from-limeGreen to-brightCyan brightness-100 hover:brightness-110 motion-safe:transition motion-reduce:transition-none">Request
Invite</button>
</div>
</div>
</section>
<section class="bg-lightGrayishBlue px-6 py-14 lg:py-24">
<div
class="w-full max-w-6xl mx-auto flex flex-col items-center text-center justify-center gap-12 bg-lightGrayishBlue md:items-start">
<div class="space-y-5 text-center flex flex-col items-center md:text-left md:items-start">
<h2 class="text-3xl text-darkBlue max-w-xs md:max-w-none">Why choose Easybank?</h2>
<h2 class="sr-only">Why choose Easybank?</h2>
<p class="text-grayishBlue text-sm max-w-xs md:max-w-lg">We leverage Open Banking to turn your bank account
into your
financial hub.
Control
your finances like never before.</p>
</div>
<div
class="grid w-full place-items-center [grid-template-columns:_repeat(auto-fit,_minmax(15rem,_1fr))] gap-6 text-center md:text-left">
<div class="max-w-[15rem] w-full flex flex-col items-center justify-center gap-5 md:items-start">
<img src="./src/images/icon-online.svg" alt="Icon of a hand withcredit cards" width="72" height="72"
loading="lazy">
<h3 class="text-2xl text-darkBlue font-light">Online Banking</h3>
<h3 class="sr-only">Online Banking</h3>
<p class="text-grayishBlue text-sm max-w-xs">Our modern web and mobile applications allow you to keep track of
your finances wherever you are in the world.</p>
</div>
<div class="max-w-[15rem] w-full flex flex-col items-center justify-center gap-5 md:items-start">
<img src="./src/images/icon-budgeting.svg" alt="Icon of a cellphone" width="72" height="72" loading="lazy">
<h3 class="text-2xl text-darkBlue font-light">Simple Budgeting</h3>
<h3 class="sr-only">Simple Budgeting</h3>
<p class="text-grayishBlue text-sm max-w-xs">See exactly where your money goes each month. Receive
notifications
when you’re
close to hitting your limits.</p>
</div>
<div class="max-w-[15rem] w-full flex flex-col items-center justify-center gap-5 md:items-start">
<img src="./src/images/icon-onboarding.svg" alt="Icon of a people" width="72" height="72" loading="lazy">
<h3 class="text-2xl text-darkBlue font-light">Fast Onboarding</h3>
<h3 class="sr-only">Fast Onboarding</h3>
<p class="text-grayishBlue text-sm max-w-xs">We don’t do branches. Open your account in minutes online and
start
taking control
of your finances right away.</p>
</div>
<div class="max-w-[15rem] w-full flex flex-col items-center justify-center gap-5 md:items-start">
<img src="./src/images/icon-api.svg" alt="Icon of a computer processor" width="72" height="72" loading="lazy">
<h3 class="text-2xl text-darkBlue font-light">Open API</h3>
<h3 class="sr-only">Open API</h3>
<p class="text-grayishBlue text-sm max-w-xs">Manage your savings, investments, pension, and much more from one
account. Tracking
your money has never been easier.</p>
</div>
</div>
</div>
</section>
<section class="py-20 px-6 bg-veryLightGray">
<div class="w-full max-w-6xl mx-auto flex flex-col gap-5 text-center md:text-left">
<h2 class="text-3xl text-darkBlue font-light">Latest Articles</h2>
<h2 class="sr-only">Latest Articles</h2>
<div
class="w-full grid place-items-center [grid-auto-columns:15rem] [grid-template-columns:repeat(auto-fit,minmax(18.75rem,1fr))] xl:[grid-template-columns:repeat(auto-fit,minmax(250px,1fr))] gap-6">
<div class="w-full max-w-[22rem] h-[24rem] lg:h-[26rem] bg-white shadow-md rounded-md overflow-hidden">
<div class="w-full h-44">
<img src="./src/images/image-currency.jpg" alt="Image of a currency" loading="lazy" width="533" height="400"
class="w-full h-full">
</div>
<div class="text-left space-y-2 p-6 pb-10">
<p class="text-xs text-grayishBlue">By Claire Robinson</p>
<h4
class="text-darkBlue text-base font-light cursor-pointer hover:text-limeGreen motion-safe:transition-colors motion-reduce:transition-none">
Receive money in any currency with no fees</h4>
<p class="text-grayishBlue text-sm">The world is getting smaller and we’re becoming more mobile. So why
should
you be forced to only receive money in a single …</p>
</div>
</div>
<div class="w-full max-w-[22rem] h-[24rem] lg:h-[26rem] bg-white shadow-md rounded-md overflow-hidden">
<div class="w-full h-44">
<img src="./src/images/image-restaurant.jpg" alt="Image of a restaurant" loading="lazy" width="600"
height="400" class="w-full h-full">
</div>
<div class="text-left space-y-2 p-6 pb-10">
<p class="text-xs text-grayishBlue">By Wilson Hutton</p>
<h4
class="text-darkBlue text-base font-light cursor-pointer hover:text-limeGreen motion-safe:transition-colors motion-reduce:transition-none">
Treat yourself without worrying about money</h4>
<p class="text-grayishBlue text-sm">Our simple budgeting feature allows you to separate out your spending
and
set realistic limits each month. That means you …</p>
</div>
</div>
<div class="w-full max-w-[22rem] h-[24rem] lg:h-[26rem] bg-white shadow-md rounded-md overflow-hidden">
<div class="w-full h-44">
<img src="./src/images/image-plane.jpg" alt="Image of a plane" loading="lazy" width="602" height="400"
class="w-full h-full">
</div>
<div class="text-left space-y-2 p-6 pb-10">
<p class="text-xs text-grayishBlue">By Wilson Hutton</p>
<h4
class="text-darkBlue text-base font-light cursor-pointer hover:text-limeGreen motion-safe:transition-colors motion-reduce:transition-none">
Take your Easybank card wherever you go</h4>
<p class="text-grayishBlue text-sm">We want you to enjoy your travels. This is why we don’t charge any fees
on
purchases while you’re abroad. We’ll even show you …</p>
</div>
</div>
<div class="w-full max-w-[22rem] h-[24rem] lg:h-[26rem] bg-white shadow-md rounded-md overflow-hidden">
<div class="w-full h-44">
<img src="./src/images/image-confetti.jpg" alt="Image of a confetti" loading="lazy" width="600" height="400"
class="w-full h-full">
</div>
<div class="text-left space-y-2 p-6 pb-10">
<p class="text-xs text-grayishBlue">By Claire Robinson</p>
<h4
class="text-darkBlue text-base font-light cursor-pointer hover:text-limeGreen motion-safe:transition-colors motion-reduce:transition-none">
Our invite-only Beta accounts are now live!</h4>
<p class="text-grayishBlue text-sm">After a lot of hard work by the whole team, we’re excited to launch our
closed beta. It’s easy to request an invite through the site ...</p>
</div>
</div>
</div>
</div>
</section>
<footer class="bg-darkBlue w-full px-6">
<div class="w-full max-w-6xl mx-auto flex flex-col md:flex-row md:justify-between gap-8 py-10 items-center h-full">
<div class="flex flex-col gap-5 md:max-w-md lg:max-w-2xl w-full md:justify-between md:flex-row">
<div class="flex flex-col gap-5 items-center h-full md:gap-12 md:justify-between">
<a href="#" aria-label="Navigate to homepage">
<img src="./src/images/logo-light.svg" width="139" height="20" alt="Easybank logo" />
</a>
<ul class="flex items-center gap-4">
<li><a href="#facebook">
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" class="group">
<path class="group-hover:fill-limeGreen motion-safe:transition-colors motion-reduce:transition-none"
fill="#FFF"
d="M18.896 0H1.104C.494 0 0 .494 0 1.104v17.793C0 19.506.494 20 1.104 20h9.58v-7.745H8.076V9.237h2.606V7.01c0-2.583 1.578-3.99 3.883-3.99 1.104 0 2.052.082 2.329.119v2.7h-1.598c-1.254 0-1.496.597-1.496 1.47v1.928h2.989l-.39 3.018h-2.6V20h5.098c.608 0 1.102-.494 1.102-1.104V1.104C20 .494 19.506 0 18.896 0z" />
</svg></a>
</li>
<li><a href="#youtube"><svg xmlns="http://www.w3.org/2000/svg" width="21" height="20" class="group">
<path class="group-hover:fill-limeGreen motion-safe:transition-colors motion-reduce:transition-none"
fill="#FFF"
d="M10.333 0c-5.522 0-10 4.478-10 10 0 5.523 4.478 10 10 10 5.523 0 10-4.477 10-10 0-5.522-4.477-10-10-10zm3.701 14.077c-1.752.12-5.653.12-7.402 0C4.735 13.947 4.514 13.018 4.5 10c.014-3.024.237-3.947 2.132-4.077 1.749-.12 5.651-.12 7.402 0 1.898.13 2.118 1.059 2.133 4.077-.015 3.024-.238 3.947-2.133 4.077zM8.667 8.048l4.097 1.949-4.097 1.955V8.048z" />
</svg></a>
</li>
<li><a href="#twitter"><svg xmlns="http://www.w3.org/2000/svg" width="21" height="18" class="group">
<path class="group-hover:fill-limeGreen motion-safe:transition-colors motion-reduce:transition-none"
fill="#FFF"
d="M20.667 2.797a8.192 8.192 0 01-2.357.646 4.11 4.11 0 001.804-2.27 8.22 8.22 0 01-2.606.996A4.096 4.096 0 0014.513.873c-2.649 0-4.595 2.472-3.997 5.038a11.648 11.648 0 01-8.457-4.287 4.109 4.109 0 001.27 5.478A4.086 4.086 0 011.47 6.59c-.045 1.901 1.317 3.68 3.29 4.075a4.113 4.113 0 01-1.853.07 4.106 4.106 0 003.834 2.85 8.25 8.25 0 01-6.075 1.7 11.616 11.616 0 006.29 1.843c7.618 0 11.922-6.434 11.662-12.205a8.354 8.354 0 002.048-2.124z" />
</svg></a>
</li>
<li><a href="#pinterest"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" class="group">
<path class="group-hover:fill-limeGreen motion-safe:transition-colors motion-reduce:transition-none"
fill="#FFF"
d="M10 0C4.478 0 0 4.477 0 10c0 4.237 2.636 7.855 6.356 9.312-.088-.791-.167-2.005.035-2.868.182-.78 1.172-4.97 1.172-4.97s-.299-.6-.299-1.486c0-1.39.806-2.428 1.81-2.428.852 0 1.264.64 1.264 1.408 0 .858-.545 2.14-.828 3.33-.236.995.5 1.807 1.48 1.807 1.778 0 3.144-1.874 3.144-4.58 0-2.393-1.72-4.068-4.177-4.068-2.845 0-4.515 2.135-4.515 4.34 0 .859.331 1.781.745 2.281a.3.3 0 01.069.288l-.278 1.133c-.044.183-.145.223-.335.134-1.249-.581-2.03-2.407-2.03-3.874 0-3.154 2.292-6.052 6.608-6.052 3.469 0 6.165 2.473 6.165 5.776 0 3.447-2.173 6.22-5.19 6.22-1.013 0-1.965-.525-2.291-1.148l-.623 2.378c-.226.869-.835 1.958-1.244 2.621.937.29 1.931.446 2.962.446 5.522 0 10-4.477 10-10S15.522 0 10 0z" />
</svg></a>
</li>
<li><a href="#instagram"><svg xmlns="http://www.w3.org/2000/svg" width="21" height="20" class="group">
<path class="group-hover:fill-limeGreen motion-safe:transition-colors motion-reduce:transition-none"
fill="#FFF"
d="M10.333 1.802c2.67 0 2.987.01 4.042.059 2.71.123 3.976 1.409 4.1 4.099.048 1.054.057 1.37.057 4.04 0 2.672-.01 2.988-.058 4.042-.124 2.687-1.386 3.975-4.099 4.099-1.055.048-1.37.058-4.042.058-2.67 0-2.986-.01-4.04-.058-2.717-.124-3.976-1.416-4.1-4.1-.048-1.054-.058-1.37-.058-4.041 0-2.67.01-2.986.058-4.04.124-2.69 1.387-3.977 4.1-4.1 1.054-.048 1.37-.058 4.04-.058zm0-1.802C7.618 0 7.278.012 6.211.06 2.579.227.56 2.242.394 5.877.345 6.944.334 7.284.334 10s.011 3.057.06 4.123c.166 3.632 2.181 5.65 5.816 5.817 1.068.048 1.408.06 4.123.06 2.716 0 3.057-.012 4.124-.06 3.628-.167 5.651-2.182 5.816-5.817.049-1.066.06-1.407.06-4.123s-.011-3.056-.06-4.122C20.11 2.249 18.093.228 14.458.06 13.39.01 13.049 0 10.333 0zm0 4.865a5.135 5.135 0 100 10.27 5.135 5.135 0 000-10.27zm0 8.468a3.333 3.333 0 110-6.666 3.333 3.333 0 010 6.666zm5.339-9.87a1.2 1.2 0 10-.001 2.4 1.2 1.2 0 000-2.4z" />
</svg></a>
</li>
</ul>
</div>
<ul
class="flex flex-col md:max-w-[15rem] lg:max-w-xs w-full md:justify-between md:flex-row items-center text-center gap-2">
<div class="flex items-center md:items-start flex-col gap-2">
<li><a href="#about_us"
class="text-white hover:text-limeGreen motion-safe:transition-colors motion-reduce:transition-none capitalize">about
us</a></li>
<li><a href="#contact"
class="text-white hover:text-limeGreen motion-safe:transition-colors motion-reduce:transition-none capitalize">contact</a>
</li>
<li><a href="#blog"
class="text-white hover:text-limeGreen motion-safe:transition-colors motion-reduce:transition-none capitalize">blog</a>
</li>
</div>
<div class="flex items-center md:items-start flex-col gap-2">
<li><a href="#careers"
class="text-white hover:text-limeGreen motion-safe:transition-colors motion-reduce:transition-none capitalize">careers</a>
</li>
<li><a href="#support"
class="text-white hover:text-limeGreen motion-safe:transition-colors motion-reduce:transition-none capitalize">support</a>
</li>
<li>
<a href="#privacy_policy"
class="text-white hover:text-limeGreen motion-safe:transition-colors motion-reduce:transition-none capitalize">privacy
policy</a>
</li>
</div>
</ul>
</div>
<div class="flex items-center md:items-end gap-5 flex-col">
<button type="button"
class="py-2 px-7 text-white rounded-full text-base bg-gradient-to-r from-limeGreen to-brightCyan brightness-100 hover:brightness-110 motion-safe:transition motion-reduce:transition-none">Request
Invite</button>
<p class="text-grayishBlue">© Easybank. All Rights Reserved</p>
</div>
</div>
</div>
</footer>
<script src="./src/index.js" defer></script>
</body>
</html>