Skip to content

Commit fccfcfc

Browse files
committed
fredag!
1 parent e522563 commit fccfcfc

39 files changed

+318
-0
lines changed

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

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,3 +126,17 @@ Careers
126126
Recipe directory
127127
Help center
128128
Privacy & terms
129+
130+
######
131+
132+
## Sections
133+
134+
- Logo + Navigation
135+
- Hero
136+
- Featured in
137+
- How it works
138+
- Meals (and list of diets)
139+
- Testemonials + Gallery
140+
- Priceing + Features
141+
- CTA
142+
- Footer
Lines changed: 245 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,245 @@
1+
/*
2+
--- 01 TYPOGRAPHY SYSTEM
3+
- Font sizes (px)
4+
10 / 12 / 14 / 16 / 18 / 20 / 24 / 30 / 36 / 44 / 52 / 62 / 74 / 86 / 98
5+
6+
- Font weights
7+
Default: 400
8+
Medium: 500
9+
Semi-bold: 600
10+
Bold: 700
11+
12+
- Line heights
13+
Default: 1
14+
Small: 1.05
15+
Medium: 1.2
16+
Paragraph default: 1.6
17+
18+
- Letter spacing
19+
-0.5px
20+
0.75px
21+
22+
--- 02 COLORS
23+
- Primary: #e67e22
24+
- Tints:
25+
#fdf2e9
26+
#fae5d3
27+
#eb984e
28+
- Shades:
29+
#cf711f
30+
#45260a
31+
- Accents:
32+
- Greys
33+
#888
34+
#767676 (lightest grey allowed on #fff)
35+
#6f6f6f (lightest grey allowed on #fdf2e9)
36+
#555
37+
#333
38+
39+
--- 05 SHADOWS
40+
0 2.4rem 4.8rem rgba(0, 0, 0, 0.075);
41+
42+
--- 06 BORDER-RADIUS
43+
Default: 9px
44+
Medium: 11px
45+
46+
--- 07 WHITESPACE
47+
- Spacing system (px)
48+
2 / 4 / 8 / 12 / 16 / 24 / 32 / 48 / 64 / 80 / 96 / 128
49+
*/
50+
51+
@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@400;500;600;700&display=swap');
52+
53+
* {
54+
margin: 0;
55+
padding: 0;
56+
box-sizing: border-box;
57+
}
58+
59+
html {
60+
/* font-size: 10px; */
61+
/* 10px / 16px = 0.625 = 62.5% */
62+
/* Percenteage of user's browser font-size settings */
63+
font-size: 62.5%;
64+
}
65+
66+
body {
67+
font-family: 'Rubik', sans-serif;
68+
line-height: 1;
69+
font-weight: 400;
70+
color: #555;
71+
}
72+
73+
/****************************/
74+
/* GENERAL REUSEABLE COMPONENTS */
75+
/****************************/
76+
77+
.heading-primary {
78+
font-size: 5.2rem;
79+
font-weight: 700;
80+
line-height: 1.05;
81+
color: #333;
82+
letter-spacing: -0.5px;
83+
margin-bottom: 3.2rem;
84+
}
85+
86+
.btn:link,
87+
.btn:visited {
88+
display: inline-block;
89+
text-decoration: none;
90+
font-size: 2rem;
91+
font-weight: 600;
92+
padding: 1.6rem 3.2rem;
93+
border-radius: 9px;
94+
95+
transition: background-color 0.3s;
96+
}
97+
98+
.btn--full:link,
99+
.btn--full:visited {
100+
background-color: #e67e22;
101+
color: #fff;
102+
}
103+
104+
.btn--full:hover,
105+
.btn--full:active {
106+
background-color: #cf711f;
107+
}
108+
109+
.btn--outline:link,
110+
.btn--outline:visited {
111+
background-color: #fff;
112+
color: #555;
113+
}
114+
115+
.btn--outline:hover,
116+
.btn--outline:active {
117+
background-color: #fdf2e9;
118+
119+
/* Trick to add border inside button (avoid padding whole site) */
120+
box-shadow: inset 0 0 0 3px #fff;
121+
}
122+
123+
.margin-right-sm {
124+
margin-right: 1.6rem !important;
125+
}
126+
127+
/****************************/
128+
/* HEADER */
129+
/****************************/
130+
131+
.header {
132+
display: flex;
133+
justify-content: space-between;
134+
align-items: center;
135+
background-color: #fdf2e9;
136+
137+
/* Makes it easy to make it sticky later on */
138+
height: 9.6rem;
139+
padding: 0 4.8rem;
140+
}
141+
142+
.logo {
143+
height: 2.2rem;
144+
}
145+
146+
/****************************/
147+
/* NAVIGATION */
148+
/****************************/
149+
150+
.main-nav-list {
151+
list-style: none;
152+
display: flex;
153+
align-items: center;
154+
gap: 3.2rem;
155+
}
156+
157+
.main-nav-link:link,
158+
.main-nav-link:visited {
159+
display: inline-block;
160+
text-decoration: none;
161+
color: #333;
162+
font-weight: 500;
163+
font-size: 1.8rem;
164+
transition: all 0.3s;
165+
}
166+
167+
.main-nav-link:hover,
168+
.main-nav-link:active {
169+
color: #cf711f;
170+
}
171+
172+
.main-nav-link.nav-cta:link,
173+
.main-nav-link.nav-cta:visited {
174+
padding: 1.2rem 2.4rem;
175+
border-radius: 9px;
176+
color: #fff;
177+
background-color: #e67e22;
178+
}
179+
180+
.main-nav-link.nav-cta:hover,
181+
.main-nav-link.nav-cta:active {
182+
background-color: #cf711f;
183+
}
184+
185+
/****************************/
186+
/* HERO SECTION */
187+
/****************************/
188+
189+
.section-hero {
190+
background-color: #fdf2e9;
191+
padding: 4.8rem 0 9.6rem 0;
192+
}
193+
194+
.hero {
195+
max-width: 130rem;
196+
margin: 0 auto;
197+
padding: 0 3.2rem;
198+
display: grid;
199+
grid-template-columns: 1fr 1fr;
200+
gap: 9.6rem;
201+
align-items: center;
202+
}
203+
204+
.hero-description {
205+
font-size: 2rem;
206+
line-height: 1.6;
207+
margin-bottom: 4.8rem;
208+
}
209+
210+
.hero-img {
211+
width: 100%;
212+
}
213+
214+
.delivered-meals {
215+
display: flex;
216+
align-items: center;
217+
gap: 1.6rem;
218+
margin-top: 8rem;
219+
}
220+
221+
.delivered-imgs {
222+
display: flex;
223+
}
224+
225+
.delivered-imgs img {
226+
height: 4.8rem;
227+
width: 4.8rem;
228+
border-radius: 50%;
229+
margin-right: -1.6rem;
230+
border: 3px solid #fdf2e9;
231+
}
232+
233+
.delivered-imgs img:last-child {
234+
margin: 0;
235+
}
236+
237+
.delivered-text {
238+
font-size: 1.8rem;
239+
font-weight: 600;
240+
}
241+
242+
.delivered-text span {
243+
color: #cf711f;
244+
font-weight: 700;
245+
}
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<link rel="stylesheet" href="css/style.css" />
8+
<title>Omnifood</title>
9+
</head>
10+
<body>
11+
<header class="header">
12+
<img class="logo" src="img/omnifood-logo.png" alt="omnifood-logo" />
13+
<nav class="main-nav">
14+
<ul class="main-nav-list">
15+
<li><a class="main-nav-link" href="#">Section 1</a></li>
16+
<li><a class="main-nav-link" href="#">Section 2</a></li>
17+
<li><a class="main-nav-link" href="#">Section 3</a></li>
18+
<li><a class="main-nav-link" href="#">Section 4</a></li>
19+
<li><a class="main-nav-link nav-cta" href="#">Section 5</a></li>
20+
</ul>
21+
</nav>
22+
</header>
23+
24+
<main>
25+
<section class="section-hero">
26+
<div class="hero">
27+
<div class="hero-text-box">
28+
<h1 class="heading-primary">A healthy meal delivered to your door, every single day</h1>
29+
<p class="hero-description">
30+
The smart 365-days-per-year food subscription that will make you eat healthy again. Tailored to
31+
your personal tastes and nutritional needs.
32+
</p>
33+
<a href="#" class="btn btn--full margin-right-sm">Start eating well</a>
34+
<a href="#" class="btn btn--outline">Learn more &darr;</a>
35+
36+
<div class="delivered-meals">
37+
<div class="delivered-imgs">
38+
<img src="img/customers/customer-1.jpg" alt="Customer photo" />
39+
<img src="img/customers/customer-2.jpg" alt="Customer photo" />
40+
<img src="img/customers/customer-3.jpg" alt="Customer photo" />
41+
<img src="img/customers/customer-4.jpg" alt="Customer photo" />
42+
<img src="img/customers/customer-5.jpg" alt="Customer photo" />
43+
<img src="img/customers/customer-6.jpg" alt="Customer photo" />
44+
</div>
45+
<p class="delivered-text"><span>250,000+</span> meals delivered last year!</p>
46+
</div>
47+
</div>
48+
<div class="hero-image-box">
49+
<img
50+
src="img/hero.png"
51+
alt="Woman enjoing good, meals in storage container, and food bowls on a table"
52+
class="hero-img"
53+
/>
54+
</div>
55+
</div>
56+
</section>
57+
</main>
58+
</body>
59+
</html>

0 commit comments

Comments
 (0)