Skip to content

Commit 5d47f34

Browse files
committed
Section 7 - Omnifood project. part 1
1 parent ac8e043 commit 5d47f34

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+849
-0
lines changed
Loading
1.58 MB
Loading

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

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,3 +126,18 @@ Careers
126126
Recipe directory
127127
Help center
128128
Privacy & terms
129+
130+
######
131+
132+
## Sections
133+
134+
- Logo + Navigation
135+
- Hero Section
136+
- Featured in
137+
- How it Works
138+
- Meals (and list of diets)
139+
- Gallery
140+
- Testimonials
141+
- Pricing + Features
142+
- Call to Action
143+
- Footer
Lines changed: 213 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,213 @@
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+
Meadium: 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+
27+
- Tints: #fdf2e9 #fae5d3
28+
- Shades: #cf711f
29+
- Accents:
30+
- Greys:
31+
#555
32+
#333
33+
34+
--- 04 ICONS
35+
36+
--- 05 SHADOWS
37+
38+
--- 06 BORDER RADIUS
39+
40+
Default: 9px
41+
Medium: 11px
42+
43+
--- 07 WHITESPACE
44+
45+
--- SPACING SYSTEM (px)
46+
2 / 4 / 8 / 12 / 16 / 24 / 32 / 48 / 64 / 80 / 96 / 128
47+
48+
*/
49+
50+
* {
51+
padding: 0;
52+
margin: 0;
53+
box-sizing: border-box;
54+
}
55+
56+
html {
57+
/* default: 1 rem = 16px */
58+
59+
/* font-size: 10px; */
60+
/* 10px / 16px -default = 0.625 = 62.5% */
61+
/* Percentage of user's browser font-size sizing */
62+
font-size: 62.5%;
63+
}
64+
65+
body {
66+
font-family: "Rubik", sans-serif;
67+
line-height: 1;
68+
font-weight: 400;
69+
color: #555;
70+
}
71+
72+
/**********************/
73+
/* General Components */
74+
/**********************/
75+
.heading-primary,
76+
.heading-secondary,
77+
.heading-tertiary {
78+
font-weight: 700;
79+
color: #333;
80+
letter-spacing: -0.5px;
81+
}
82+
83+
.heading-primary {
84+
font-size: 5.2rem;
85+
line-height: 1.05;
86+
margin-bottom: 3.2rem;
87+
}
88+
89+
.heading-secondary {
90+
font-size: 4.4rem;
91+
line-height: 1.2;
92+
margin-bottom: 9.6rem;
93+
}
94+
95+
.heading-tertiary {
96+
font-size: 3rem;
97+
line-height: 1.2;
98+
margin-bottom: 3.2rem;
99+
}
100+
101+
.subheading {
102+
display: block;
103+
font-size: 1.6rem;
104+
font-weight: 500;
105+
color: #cf711f;
106+
text-transform: uppercase;
107+
margin-bottom: 1.6rem;
108+
letter-spacing: 0.75px;
109+
}
110+
111+
.btn:link,
112+
.btn:visited {
113+
display: inline-block;
114+
115+
text-decoration: none;
116+
font-size: 2rem;
117+
font-weight: 600;
118+
color: #fff;
119+
120+
padding: 1.6rem 3.2rem;
121+
border-radius: 9px;
122+
123+
/* Put transition on the original state */
124+
transition: all 0.3s;
125+
}
126+
127+
.btn--full:link,
128+
.btn--full:visited {
129+
background-color: #e67e22;
130+
}
131+
132+
.btn--full:hover,
133+
.btn--full:active {
134+
background-color: #cf711f;
135+
}
136+
137+
.btn--outline:link,
138+
.btn--outline:visited {
139+
background-color: #fff;
140+
color: #555;
141+
}
142+
143+
.btn--outline:hover,
144+
.btn--outline:active {
145+
background-color: #fdf2e9;
146+
147+
/* Border doesn't work because it is added outside and the layout shifts */
148+
/* border: 3px solid #fff; */
149+
150+
/* Trick to add border inside */
151+
box-shadow: inset 0 0 0 3px #fff;
152+
}
153+
154+
.link:link,
155+
.link:visited {
156+
display: inline-block;
157+
color: #e67e22;
158+
text-decoration: none;
159+
border-bottom: 1px solid currentColor;
160+
padding-bottom: 2px;
161+
transition: all 0.3;
162+
}
163+
164+
.link:hover,
165+
.link:active {
166+
color: #cf711f;
167+
border-bottom: 1px solid transparent;
168+
}
169+
170+
.margin-right-sm {
171+
margin-right: 1.6rem !important;
172+
}
173+
174+
.margin-bottom-md {
175+
margin-bottom: 4.8rem !important;
176+
}
177+
178+
.center-text {
179+
text-align: center;
180+
}
181+
182+
.container {
183+
/* best practice ~11 */
184+
max-width: 120rem;
185+
margin: 0 auto;
186+
padding: 0 3.2rem;
187+
}
188+
189+
.grid {
190+
display: grid;
191+
column-gap: 6.4rem;
192+
row-gap: 9.6rem;
193+
}
194+
195+
.grid--center-v {
196+
align-items: center;
197+
}
198+
199+
.grid--2-cols {
200+
grid-template-columns: repeat(2, 1fr);
201+
}
202+
203+
.grid--3-cols {
204+
grid-template-columns: repeat(3, 1fr);
205+
}
206+
207+
.grid--4-cols {
208+
grid-template-columns: repeat(4, 1fr);
209+
}
210+
211+
strong {
212+
font-weight: 500;
213+
}

0 commit comments

Comments
 (0)