Skip to content

Commit 12a3c61

Browse files
committed
Finished form section, started footer section
1 parent f1f95be commit 12a3c61

File tree

4 files changed

+113
-7
lines changed

4 files changed

+113
-7
lines changed

starter/07-Omnifood-Desktop/content.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,10 +119,12 @@ Create account
119119
Sign in
120120
iOS app
121121
Android app
122+
122123
About Omnifood
123124
For Business
124125
Cooking partners
125126
Careers
127+
126128
Recipe directory
127129
Help center
128130
Privacy & terms

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

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Paragraph default: 1.6
2626
Primary: #e67e22
2727
2828
Tints: #fdf2e9, #fae5d3, #eb984e
29-
Shades: #cf711f,
29+
Shades: #cf711f, ##45260a
3030
Accents: #51cf66
3131
Greys: #555, #333, #6f6f6f (lightest grey allowed on #fdf2e9)
3232
@@ -103,6 +103,10 @@ body {
103103
grid-template-columns: repeat(4, 1fr);
104104
}
105105

106+
.grid--5-cols {
107+
grid-template-columns: repeat(5, 1fr);
108+
}
109+
106110
.grid--center-v {
107111
align-items: center;
108112
}
@@ -142,6 +146,7 @@ body {
142146
letter-spacing: 0.75px;
143147
}
144148

149+
.btn,
145150
.btn:link,
146151
.btn:visited {
147152
display: inline-block;
@@ -151,6 +156,11 @@ body {
151156
border-radius: 9px;
152157
text-decoration: none;
153158

159+
/* Only necessary for the .btn */
160+
border: none;
161+
cursor: pointer;
162+
font-family: inherit;
163+
154164
/* Always put transition on original "state" */
155165
/* transition: background-color 0.3s; */
156166
transition: all 0.3s;
@@ -181,6 +191,18 @@ body {
181191
box-shadow: inset 0 0 0 3px #fff;
182192
}
183193

194+
.btn--form {
195+
background-color: #45260a;
196+
color: #fdf2e9;
197+
align-self: end;
198+
padding: 1.2rem;
199+
}
200+
201+
.btn--form:hover {
202+
background-color: #fff;
203+
color: #555;
204+
}
205+
184206
.link:link,
185207
.link:visited {
186208
display: inline-block;
@@ -217,6 +239,13 @@ body {
217239
gap: 1.6rem;
218240
}
219241

242+
*:focus {
243+
outline: none;
244+
/* outline: 4px dotted #e67e22; */
245+
/* outline-offset: 8px; */
246+
box-shadow: 0 0 0 0.8rem rgba(230, 125, 34, 0.5);
247+
}
248+
220249
/* HELPER/SETTINGS CLASSES */
221250

222251
.margin-right-sm {

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

Lines changed: 38 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,6 @@
475475

476476
background-image: linear-gradient(to right bottom, #eb984e, #e67e22);
477477
overflow: hidden;
478-
height: 50rem;
479478
}
480479

481480
.cta-text-box {
@@ -486,10 +485,12 @@
486485
.cta-text {
487486
font-size: 1.8rem;
488487
line-height: 1.8;
488+
margin-bottom: 4.8rem;
489489
}
490490

491491
.cta .heading-secondary {
492-
color: #45260a;
492+
/* color: #45260a; */
493+
color: inherit;
493494
margin-bottom: 3.2rem;
494495
}
495496

@@ -504,4 +505,38 @@
504505
background-position: center;
505506
}
506507

507-
/* Continue 125 Building the Call to Action Section: Part 2 */
508+
.cta-form {
509+
display: grid;
510+
grid-template-columns: 1fr 1fr;
511+
column-gap: 3.2rem;
512+
row-gap: 2.4rem;
513+
}
514+
515+
.cta-form label {
516+
display: block;
517+
font-size: 1.6rem;
518+
font-weight: 500;
519+
margin-bottom: 1.2rem;
520+
}
521+
522+
.cta-form input,
523+
.cta-form select {
524+
color: inherit;
525+
width: 100%;
526+
padding: 1.2rem;
527+
font-size: 1.8rem;
528+
font-family: inherit;
529+
border: none;
530+
background-color: #fdf2e9;
531+
border-radius: 9px;
532+
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
533+
}
534+
535+
.cta-form input::placeholder {
536+
color: #aaa;
537+
}
538+
539+
.cta *:focus {
540+
outline: none;
541+
box-shadow: 0 0 0 0.8rem rgba(253, 242, 233, 0.5);
542+
}

starter/07-Omnifood-Desktop/index.html

Lines changed: 43 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -546,9 +546,39 @@ <h2 class="heading-secondary">Get your first meal for free!</h2>
546546
</p>
547547

548548
<form class="cta-form" action="#">
549-
<input type="text" />
550-
<input type="email" />
551-
<button class="btn">Sign up now</button>
549+
<div>
550+
<label for="full-name">Full Name</label>
551+
<input
552+
id="full-name"
553+
type="text"
554+
placeholder="John Smith"
555+
required
556+
/>
557+
</div>
558+
559+
<div>
560+
<label for="email">Email address</label>
561+
<input
562+
id="email"
563+
type="email"
564+
placeholder="me@example.com"
565+
required
566+
/>
567+
</div>
568+
569+
<div>
570+
<label for="select-where">Where did you hear from us?</label>
571+
<select name="" id="select-where" required>
572+
<option value="">Please choose one option:</option>
573+
<option value="friends">Friends and family</option>
574+
<option value="youtube">Youtube video</option>
575+
<option value="podcast">Podcast</option>
576+
<option value="ad">Facebook Ad</option>
577+
<option value="others">Others</option>
578+
</select>
579+
</div>
580+
581+
<button class="btn btn--form">Sign up now</button>
552582
</form>
553583
</div>
554584
<div
@@ -560,5 +590,15 @@ <h2 class="heading-secondary">Get your first meal for free!</h2>
560590
</div>
561591
</section>
562592
</main>
593+
594+
<footer class="footer">
595+
<div class="container-grid grid--5-cols">
596+
<div class="logo-col">Logo</div>
597+
<div class="address-col">Address</div>
598+
<div class="nav-col">Nav 1</div>
599+
<div class="nav-col">Nav 2</div>
600+
<div class="nav-col">Nav 3</div>
601+
</div>
602+
</footer>
563603
</body>
564604
</html>

0 commit comments

Comments
 (0)