Skip to content

Commit 4596c28

Browse files
committed
Finished website
1 parent 9ccc9e6 commit 4596c28

File tree

3 files changed

+117
-2
lines changed

3 files changed

+117
-2
lines changed

starter/07-Omnifood-Desktop/css/general.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,9 @@ body {
108108
grid-template-columns: repeat(4, 1fr);
109109
}
110110

111-
.grid--5-cols {
111+
/* .grid--5-cols {
112112
grid-template-columns: repeat(5, 1fr);
113-
}
113+
} */
114114

115115
.grid--center-v {
116116
align-items: center;

starter/07-Omnifood-Desktop/css/queries.css

Lines changed: 114 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ wtf is em? em is the root font size and rem is the current font size
1212
@media (max-width: 84em) {
1313
.hero {
1414
max-width: 120rem;
15+
text-align: center;
1516
}
1617

1718
.heading-primary {
@@ -185,6 +186,119 @@ wtf is em? em is the root font size and rem is the current font size
185186
}
186187
}
187188

189+
/**************************/
190+
/* BELOW 704px (smaller tablets) */
191+
/**************************/
192+
193+
@media (max-width: 44em) {
194+
.grid--3-cols,
195+
.grid--4-cols {
196+
grid-template-columns: repeat(2, 1fr);
197+
}
198+
199+
.diets {
200+
grid-column: 1 / -1;
201+
justify-self: center;
202+
}
203+
204+
.heading-secondary {
205+
margin-bottom: 4.8rem;
206+
}
207+
208+
.pricing-plan {
209+
width: 100%;
210+
}
211+
212+
.grid-footer {
213+
grid-template-columns: repeat(6, 1fr);
214+
}
215+
216+
.logo-col,
217+
.address-col {
218+
grid-column: span 3;
219+
}
220+
221+
.nav-col {
222+
grid-row: 1;
223+
grid-column: span 2;
224+
margin-bottom: 3.2rem;
225+
}
226+
}
227+
228+
/**************************/
229+
/* BELOW 544px (phones) */
230+
/**************************/
231+
232+
@media (max-width: 34em) {
233+
.grid {
234+
row-gap: 4.8rem;
235+
}
236+
237+
.grid--2-cols,
238+
.grid--3-cols,
239+
.grid--4-cols {
240+
grid-template-columns: 1fr;
241+
}
242+
243+
.btn,
244+
.btn:link,
245+
.btn:visited {
246+
padding: 2.4rem 1.6rem;
247+
}
248+
249+
.section-hero {
250+
padding: 2.4rem 0 6.4rem 0;
251+
}
252+
253+
.hero {
254+
padding: 0 3.2rem;
255+
}
256+
257+
.hero-img {
258+
width: 80%;
259+
}
260+
261+
.logos img {
262+
height: 1.2rem;
263+
}
264+
265+
/* Confusing but that's just how CSS */
266+
.step-img-box:nth-child(2) {
267+
grid-row: 1;
268+
}
269+
270+
.step-img-box:nth-child(6) {
271+
grid-row: 5;
272+
}
273+
274+
.step-img-box {
275+
transform: translateY(2.4rem);
276+
}
277+
278+
.testimonials {
279+
grid-template-columns: 1fr;
280+
}
281+
282+
.gallery {
283+
grid-template-columns: repeat(4, 1fr);
284+
gap: 1.2rem;
285+
}
286+
287+
.cta {
288+
grid-template-columns: 1fr;
289+
}
290+
291+
.cta-img-box {
292+
height: 32rem;
293+
grid-row: 1;
294+
}
295+
296+
/* Course rule but I like the current spacing */
297+
/* .cta-text-box {
298+
padding: 3.2rem;
299+
} */
300+
}
301+
188302
/*
189303
190304
- FONT SIZES (px)

starter/07-Omnifood-Desktop/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ <h3 class="heading-tertiary">
121121
matter what diet you follow!
122122
</p>
123123
</div>
124+
124125
<div class="step-img-box">
125126
<img
126127
src="img/app/app-screen-1.png"

0 commit comments

Comments
 (0)