Skip to content

Commit f258cd3

Browse files
committed
Working on mobile design.
1 parent 5f9cb41 commit f258cd3

File tree

3 files changed

+55
-7
lines changed

3 files changed

+55
-7
lines changed

Readme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ This contains the designs and layouts examples that I created for learning or pe
44

55
# Frontend mentor solutions
66

7-
1. [QR Code component](/fe-mentor/qr-code-component)
8-
2. [Easy Bank landing page](/fe-mentor/easybank-landing-page)
7+
1. [QR Code component](/fe-mentor/qr-code-component) - [Solution](https://sharique.github.io/designs-layouts/fe-mentor/qr-code-component/)
8+
2. [Easy Bank landing page](/fe-mentor/easybank-landing-page) - [Solution](https://sharique.github.io/designs-layouts/fe-mentor/easybank-landing-page/ )

fe-mentor/easybank-landing-page/index.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ <h2>Why choose Easybank?</h2>
9595
/>
9696
</div>
9797
<div class="card-body">
98-
<h2>Online Banking</h2>
98+
<h3>Online Banking</h3>
9999
<p>
100100
Our modern web and mobile applications allow
101101
you to keep track of your finances wherever
@@ -109,7 +109,7 @@ <h2>Online Banking</h2>
109109
alt="Simple Budgeting"
110110
/>
111111
<div class="card-body">
112-
<h2>Simple Budgeting</h2>
112+
<h3>Simple Budgeting</h3>
113113
<p>
114114
See exactly where your money goes each
115115
month. Receive
@@ -122,7 +122,7 @@ <h2>Simple Budgeting</h2>
122122
alt="Fast Onboarding"
123123
/>
124124
<div class="card-body">
125-
<h2>Fast Onboarding</h2>
125+
<h3>Fast Onboarding</h3>
126126
<p>
127127
We don't do branches. Open your account in
128128
minutes online and start taking control of
@@ -133,7 +133,7 @@ <h2>Fast Onboarding</h2>
133133
<div class="feature card">
134134
<img src="images/icon-api.svg" alt="Open API" />
135135
<div class="card-body">
136-
<h2>Open API</h2>
136+
<h3>Open API</h3>
137137
<p>
138138
Manage your finances like never before.
139139
Online Banking Our modern web and mobile

fe-mentor/easybank-landing-page/style.css

Lines changed: 49 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ h2 {
6060
}
6161
/* Header */
6262
header {
63-
padding-top: 1em;
63+
padding-block: 1em;
6464
}
6565
.menu ul {
6666
display: flex;
@@ -140,6 +140,9 @@ footer {
140140
flex: 0 1 100%;
141141
padding: 1rem 0;
142142
}
143+
.features {
144+
gap: 2rem;
145+
}
143146

144147
/* Articles styling */
145148
.card {
@@ -174,6 +177,9 @@ footer {
174177
.card-body {
175178
padding: 1rem;
176179
}
180+
h3:hover {
181+
color: var(--lime-green);
182+
}
177183
}
178184

179185
.why {
@@ -186,3 +192,45 @@ footer {
186192
padding: 2rem 0;
187193
flex-direction: column;
188194
}
195+
196+
/* Mobile styling */
197+
@media only screen and (max-width: 768px) {
198+
.hero {
199+
flex-direction: column-reverse;
200+
.hero-right {
201+
flex: 1 1 100%;
202+
padding: 1rem;
203+
}
204+
.hero-left {
205+
flex: 1 1 100%;
206+
padding: 1rem;
207+
}
208+
}
209+
210+
.feature {
211+
flex: 1 1 100%;
212+
}
213+
214+
.card {
215+
flex: 1 1 100%;
216+
img {
217+
display: inline-block;
218+
}
219+
}
220+
221+
.why {
222+
flex-direction: column;
223+
text-align: center;
224+
}
225+
.wrapper {
226+
padding-inline: 10px;
227+
flex-direction: column;
228+
text-align: center;
229+
}
230+
.last-section {
231+
padding: 0;
232+
}
233+
.footer-menu {
234+
column-count: 1;
235+
}
236+
}

0 commit comments

Comments
 (0)