Skip to content

Commit adee504

Browse files
committed
omnifood starter
1 parent 04bd11d commit adee504

40 files changed

+514
-8
lines changed

starter/07-Omnifood-Desktop/content/content.md renamed to starter/07-Omnifood-Desktop/content.md

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -131,15 +131,12 @@ Privacy & terms
131131

132132
## Sections
133133

134-
- Navigation
134+
- Logo + Navigation
135135
- Hero
136-
- Features
136+
- Featured in
137137
- How it works
138-
- Diets
139-
- Meals
138+
- Meals + Diets
139+
- Testimonials + Gallery
140+
- Pricing + Features
140141
- CTA
141-
- Pricing
142-
- Gallery
143-
- Testimonials
144-
- Featured in
145142
- Footer
Lines changed: 176 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,176 @@
1+
/*
2+
--- 01 TYPOGRAPHY SYSTEM
3+
4+
- Font sizes (px)
5+
10 / 12 / 14 / 16 / 18 / 20 / 24 / 30 / 36 / 44 / 52 / 62 / 74 / 86 / 98
6+
7+
- Font weights
8+
Default: 400
9+
Medium: 500
10+
Semi-bold: 600
11+
Bold: 700
12+
13+
- Line heights
14+
Default: 1
15+
Small: 1.05
16+
Medium: 1.2
17+
Paragraph default: 1.6
18+
19+
- Letter spacing
20+
-0.5px
21+
0.75px
22+
23+
--- 02 COLORS
24+
25+
- Primary: #e67e22
26+
- Tints:
27+
#fdf2e9
28+
#fae5d3
29+
#eb984e
30+
31+
- Shades:
32+
#cf711f
33+
#45260a
34+
35+
- Accents:
36+
- Greys
37+
38+
#888
39+
#767676 (lightest grey allowed on #fff)
40+
#6f6f6f (lightest grey allowed on #fdf2e9)
41+
#555
42+
#333
43+
44+
--- 05 SHADOWS
45+
46+
0 2.4rem 4.8rem rgba(0, 0, 0, 0.075);
47+
48+
--- 06 BORDER-RADIUS
49+
50+
Default: 9px
51+
Medium: 11px
52+
53+
--- 07 WHITESPACE
54+
55+
- Spacing system (px)
56+
2 / 4 / 8 / 12 / 16 / 24 / 32 / 48 / 64 / 80 / 96 / 128
57+
*/
58+
59+
html {
60+
font-size: 62.5%;
61+
}
62+
63+
* {
64+
padding: 0;
65+
margin: 0;
66+
box-sizing: border-box;
67+
}
68+
69+
body {
70+
font-family: "Rubik", sans-serif;
71+
line-height: 1;
72+
font-weight: 400;
73+
color: #555;
74+
}
75+
/*************************************/
76+
/* GENERAL COMPONENTS */
77+
/*************************************/
78+
.heading-primary,
79+
.heading-secondary {
80+
font-weight: 700;
81+
color: #333;
82+
letter-spacing: -0.8px;
83+
}
84+
85+
.heading-primary {
86+
font-size: 5.2rem;
87+
line-height: 1.05;
88+
margin-bottom: 3.2rem;
89+
}
90+
91+
.heading-secondary {
92+
font-size: 4.4rem;
93+
line-height: 1.2;
94+
margin-bottom: 9.6rem;
95+
}
96+
97+
.heading-tertiary {
98+
font-size: 3.0rem;
99+
line-height: 1.2;
100+
margin-bottom: 3.2rem;
101+
}
102+
103+
.subheading {
104+
display: block;
105+
font-size: 1.6rem;
106+
font-weight: 500;
107+
color: #cf711f;
108+
text-transform: uppercase;
109+
margin-bottom: 1.6rem;
110+
letter-spacing: 0.75px;
111+
}
112+
113+
.btn:link,
114+
.btn:visited {
115+
display: inline-block;
116+
font-size: 2rem;
117+
padding: 1.6rem 3.2rem;
118+
border-radius: 9px;
119+
text-decoration: none;
120+
font-weight: 600;
121+
122+
transition: background-color 0.3s;
123+
}
124+
125+
.btn--full:link,
126+
.btn--full:visited {
127+
background-color: #e67e22;
128+
color: #fff;
129+
}
130+
131+
.btn--full:hover,
132+
.btn--full:active {
133+
background-color: #cf711f;
134+
}
135+
136+
.btn--outline:link,
137+
.btn--outline:visited {
138+
background-color: #fff;
139+
color: #555;
140+
/* border: 3px solid #fff; */
141+
/* trick to add boarder inside */
142+
box-shadow: inset 0 0 0 3px #fff;
143+
}
144+
145+
.btn--outline:hover,
146+
.btn--outline:active {
147+
background-color: #fdf2e9;
148+
}
149+
150+
.margin-right-sm {
151+
margin-right: 1.6rem !important;
152+
}
153+
154+
.container {
155+
max-width: 120rem;
156+
margin: 0 auto;
157+
padding: 0 3.2rem;
158+
}
159+
160+
.grid {
161+
display: grid;
162+
row-gap: 9.6rem;
163+
column-gap: 6.4rem;
164+
}
165+
166+
.grid--vertical-center {
167+
align-items: center;
168+
}
169+
170+
.grid--2-cols {
171+
grid-template-columns: repeat(2, 1fr);
172+
}
173+
174+
.grid--3-cols {
175+
grid-template-columns: repeat(3, 1fr);
176+
}
Lines changed: 186 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,186 @@
1+
/*************************************/
2+
/* HEADER */
3+
/*************************************/
4+
.header {
5+
display: flex;
6+
justify-content: space-between;
7+
align-items: center;
8+
background-color: #fdf2e9;
9+
/* Because we want a sticky header */
10+
height: 9.6rem;
11+
padding: 0 4.8rem;
12+
}
13+
14+
.logo {
15+
height: 2.2rem;
16+
}
17+
/*************************************/
18+
/* NAV */
19+
/*************************************/
20+
.main-nav-list {
21+
list-style: none;
22+
display: flex;
23+
gap: 3.2rem;
24+
align-items: center;
25+
}
26+
27+
.main-nav-link:link,
28+
.main-nav-link:visited {
29+
display: inline-block;
30+
text-decoration: none;
31+
color: #333;
32+
font-weight: 500;
33+
font-size: 1.8rem;
34+
transition: all 0.3s;
35+
}
36+
37+
.main-nav-link:hover,
38+
.main-nav-link:active {
39+
color: #cf711f;
40+
}
41+
42+
.main-nav-link.nav-cta:link,
43+
.main-nav-link.nav-cta:visited {
44+
padding: 1.2rem 2.4rem;
45+
border-radius: 9px;
46+
color: #fff;
47+
background-color: #e67e22;
48+
}
49+
50+
.main-nav-link.nav-cta:hover,
51+
.main-nav-link.nav-cta:active {
52+
background-color: #cf711f;
53+
}
54+
/*************************************/
55+
/* HERO SECTION */
56+
/*************************************/
57+
.section-hero {
58+
background-color: #fdf2e9;
59+
padding: 4.8rem 0 9.6rem 0;
60+
}
61+
62+
.hero {
63+
margin: 0 auto;
64+
padding: 0 3.2rem;
65+
max-width: 130rem;
66+
display: grid;
67+
grid-template-columns: 1fr 1fr;
68+
gap: 9.6rem;
69+
align-items: center;
70+
}
71+
72+
.hero-description {
73+
font-size: 2rem;
74+
line-height: 1.5;
75+
margin-bottom: 4.8rem;
76+
}
77+
78+
.hero-img {
79+
width: 100%; /*will fill 100% width of the grid column*/
80+
}
81+
82+
.delivered-meals {
83+
align-items: center;
84+
gap: 1.6rem;
85+
display: flex;
86+
margin-top: 8rem;
87+
}
88+
89+
.delivered-imgs {
90+
display: flex;
91+
}
92+
93+
.delivered-imgs img {
94+
height: 4.8rem;
95+
width: 4.8rem; /* set width as well for Safari bug */
96+
border-radius: 50%;
97+
margin-right: -1.6rem;
98+
border: 3px solid #fdf2e9;
99+
}
100+
101+
.delivered-imgs img:last-child {
102+
margin: 0;
103+
}
104+
105+
.delivered-text {
106+
font-size: 1.8rem;
107+
font-weight: 600;
108+
}
109+
110+
.delivered-text span {
111+
font-weight: 700;
112+
color: #cf711f;
113+
}
114+
/*************************************/
115+
/* FEATURED IN SECTION */
116+
/*************************************/
117+
.section-featured{
118+
padding: 4.8rem;
119+
}
120+
121+
.heading-featured-in {
122+
font-size: 1.4rem;
123+
text-transform: uppercase;
124+
letter-spacing: 0.75px;
125+
font-weight: 500;
126+
text-align: center;
127+
margin-bottom: 2.4rem;
128+
}
129+
/*************************************/
130+
/* HOW IT WORKS SECTION */
131+
/*************************************/
132+
.section-how {
133+
padding: 9.6rem 0;
134+
}
135+
136+
.step-img-box {
137+
display: flex;
138+
position: relative;
139+
justify-content: center;
140+
align-items: center;
141+
}
142+
143+
.step-img-box::before,
144+
.step-img-box::after {
145+
position: absolute;
146+
content: "";
147+
display: block;
148+
border-radius: 50%;
149+
top: 50%;
150+
left: 50%;
151+
transform: translate(-50%, -50%);
152+
}
153+
154+
.step-img-box::before {
155+
width: 60%;
156+
/* height: 60%; */
157+
/* 60% of parent width */
158+
padding-bottom: 60%;
159+
background-color: #fdf2e9;
160+
z-index: -2;
161+
}
162+
163+
.step-img-box::after {
164+
width: 45%;
165+
/* height: 60%; */
166+
/* 60% of parent width */
167+
padding-bottom: 45%;
168+
background-color: #fde5d3;
169+
z-index: -1;
170+
}
171+
172+
.step-img {
173+
width: 36%;
174+
}
175+
176+
.step-description {
177+
font-size: 1.8rem;
178+
line-height: 1.8;
179+
}
180+
181+
.step-number {
182+
font-size: 8.6rem;
183+
font-weight: 600;
184+
color: #ccc;
185+
margin-bottom: 1.2rem;
186+
}

0 commit comments

Comments
 (0)