Skip to content

Commit e827da5

Browse files
committed
Add progress for section 7
1 parent d731547 commit e827da5

File tree

2 files changed

+143
-0
lines changed

2 files changed

+143
-0
lines changed

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

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -462,3 +462,87 @@
462462
font-size: 1.8rem;
463463
line-height: 1.8;
464464
}
465+
466+
/**************************/
467+
/* CTA SECTION */
468+
/**************************/
469+
.section-cta {
470+
padding: 9.6rem 0;
471+
}
472+
473+
.cta {
474+
display: grid;
475+
grid-template-columns: 2fr 1fr;
476+
background-color: #e67e22;
477+
box-shadow: 0 2.4rem 4.8rem rgba(0, 0, 0, 0.15);
478+
border-radius: 11px;
479+
480+
background-image: linear-gradient(to right bottom, #eb984e, #e67e22);
481+
overflow: hidden;
482+
483+
height: 50rem;
484+
}
485+
486+
.cta-text-box {
487+
padding: 4.8rem 6.4rem 6.4rem 6.4rem;
488+
color: #45260a;
489+
}
490+
491+
.cta .heading-secondary {
492+
color: #45260a;
493+
margin-bottom: 3.2rem;
494+
}
495+
496+
.cta-text {
497+
font-size: 1.8rem;
498+
line-height: 1.8;
499+
margin-bottom: 4.8rem;
500+
}
501+
502+
.cta-img-box {
503+
background-image: linear-gradient(
504+
to right bottom,
505+
rgba(235, 151, 78, 0.35),
506+
rgba(230, 125, 34, 0.35)
507+
),
508+
url("../img/eating.jpg");
509+
background-size: cover;
510+
background-position: center;
511+
}
512+
513+
.cta-form {
514+
display: grid;
515+
grid-template-columns: 1fr 1fr;
516+
column-gap: 3.2rem;
517+
row-gap: 2.4rem;
518+
}
519+
520+
.cta-form label {
521+
display: block;
522+
font-size: 1.6rem;
523+
font-weight: 500;
524+
margin-bottom: 1.2rem;
525+
}
526+
527+
.cta-form input,
528+
.cta-form select {
529+
width: 100%;
530+
padding: 1.2rem;
531+
font-size: 1.8rem;
532+
font-family: inherit;
533+
color: inherit;
534+
border: none;
535+
background-color: #fdf2e9;
536+
border-radius: 9px;
537+
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
538+
}
539+
540+
.cta-form input::placeholder {
541+
color: #aaa;
542+
}
543+
544+
.cta-form select {
545+
}
546+
547+
.cta-form button {
548+
}

attempt/07-Omnifood-Desktop/index.html

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -542,6 +542,65 @@ <h2 class="heading-secondary">
542542
</div>
543543
</div>
544544
</section>
545+
546+
<section class="section-cta">
547+
<div class="container">
548+
<div class="cta">
549+
<div class="cta-text-box">
550+
<h2 class="heading-secondary">Get your first meal for free!</h2>
551+
<p class="cta-text">
552+
Healthy, tasty and hassle-free meals are waiting for you. Start
553+
eating well today. You can cancel or pause anytime. And the
554+
first meal is on us!
555+
</p>
556+
557+
<form class="cta-form" action="#">
558+
<div>
559+
<label for="full-name">Full Name</label>
560+
<input
561+
id="full-name"
562+
type="text"
563+
placeholder="John Smith"
564+
required
565+
/>
566+
</div>
567+
568+
<div>
569+
<label for="email">Email address</label>
570+
<input
571+
id="email"
572+
type="email"
573+
placeholder="me@example.com"
574+
required
575+
/>
576+
</div>
577+
578+
<div>
579+
<label for="select-where">Where did you hear from us?</label>
580+
<select id="select-where" required>
581+
<option value="">Please choose one option:</option>
582+
<option value="friends">Friends and family</option>
583+
<option value="youtube">YouTube video</option>
584+
<option value="podcast">Podcast</option>
585+
<option value="ad">Facebook ad</option>
586+
<option value="others">Others</option>
587+
</select>
588+
</div>
589+
590+
<button class="btn btn--form">Sign up now</button>
591+
592+
<!-- <input type="checkbox" />
593+
<input type="number" /> -->
594+
</form>
595+
</div>
596+
<div
597+
class="cta-img-box"
598+
role="img"
599+
aria-label="Woman enjoying food"
600+
></div>
601+
</div>
602+
</div>
603+
</section>
545604
</main>
546605
</body>
547606
</html>

0 commit comments

Comments
 (0)