Skip to content

Commit 9d65416

Browse files
committed
Add footer to Omnifood project.
1 parent 73015c1 commit 9d65416

File tree

3 files changed

+173
-8
lines changed

3 files changed

+173
-8
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ Paragraph default: 1.6
3535
3636
- Accents:
3737
- Greys:
38+
#888
39+
#767676 (lightest grey allowed on #fff)
3840
#6f6f6f (lightest grey allowed on #6f6f6f)
3941
#555
4042
#333
@@ -113,6 +115,10 @@ body {
113115
grid-template-columns: repeat(4, 1fr);
114116
}
115117

118+
.grid--5-cols {
119+
grid-template-columns: repeat(5, 1fr);
120+
}
121+
116122
.grid--center-v {
117123
align-items: center;
118124
}

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

Lines changed: 83 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@
130130
font-weight: 500;
131131
text-align: center;
132132
margin-bottom: 2.4rem;
133-
color: #888;
133+
color: #767676;
134134
}
135135

136136
.logos {
@@ -459,8 +459,13 @@
459459
/***************************/
460460
/* CTA SECTION */
461461
/***************************/
462+
462463
.section-cta {
463-
padding: 9.6rem 0;
464+
/* top / right / bottom / left */
465+
/* padding: 9.6rem 0 12.8rem 0; */
466+
467+
/* top / horizontal / bottom */
468+
padding: 4.8rem 0 12.8rem;
464469
}
465470

466471
.cta {
@@ -537,3 +542,79 @@
537542
outline: none;
538543
box-shadow: 0 0 0 0.8rem rgba(253, 242, 233, 0.5);
539544
}
545+
546+
/***************************/
547+
/* FOOTER */
548+
/***************************/
549+
550+
.footer {
551+
padding: 12.8rem 0;
552+
border-top: 1px solid #eee;
553+
}
554+
555+
.grid--footer {
556+
grid-template-columns: 1.5fr 1.5fr 1fr 1fr 1fr;
557+
}
558+
559+
.logo-col {
560+
display: flex;
561+
flex-direction: column;
562+
}
563+
.footer-logo {
564+
display: block;
565+
margin-bottom: 3.2rem;
566+
}
567+
568+
.social-links {
569+
list-style: none;
570+
display: flex;
571+
gap: 2.4rem;
572+
}
573+
574+
.social-icon {
575+
height: 2.4rem;
576+
width: 2.4rem;
577+
}
578+
579+
.copyright {
580+
font-size: 1.4rem;
581+
line-height: 1.6;
582+
color: #767676;
583+
margin-top: auto;
584+
}
585+
586+
.footer-heading {
587+
font-size: 1.8rem;
588+
font-weight: 500;
589+
margin-bottom: 4rem;
590+
}
591+
592+
.contacts {
593+
font-style: normal;
594+
font-size: 1.6rem;
595+
line-height: 1.6;
596+
}
597+
598+
.address {
599+
margin-bottom: 2.4rem;
600+
}
601+
602+
.footer-nav {
603+
list-style: none;
604+
display: flex;
605+
flex-direction: column;
606+
gap: 2.4rem;
607+
}
608+
609+
.footer-link:link,
610+
.footer-link:visited {
611+
text-decoration: none;
612+
font-size: 1.6rem;
613+
color: #767676;
614+
transition: all 0.3s;
615+
}
616+
617+
.footer-link:hover,
618+
.footer-link:active {
619+
color: #555;
620+
}

starter/07-Omnifood-Desktop/content/index.html

Lines changed: 84 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,16 @@
2727
</head>
2828
<body>
2929
<header class="header">
30-
<img src="img/omnifood-logo.png" alt="Omnifood logo" class="logo" />
30+
<a href="#">
31+
<img src="img/omnifood-logo.png" alt="Omnifood logo" class="logo" />
32+
</a>
3133
<nav class="main-nav">
3234
<ul class="main-nav-list">
33-
<li><a class="main-nav-link" href="#">Section 1</a></li>
34-
<li><a class="main-nav-link" href="#">Section 2</a></li>
35-
<li><a class="main-nav-link" href="#">Section 3</a></li>
36-
<li><a class="main-nav-link" href="#">Section 4</a></li>
37-
<li><a class="main-nav-link nav-cta" href="#">Section 5</a></li>
35+
<li><a class="main-nav-link" href="#">How it works</a></li>
36+
<li><a class="main-nav-link" href="#">Meals</a></li>
37+
<li><a class="main-nav-link" href="#">Testimonials</a></li>
38+
<li><a class="main-nav-link" href="#">Pricing</a></li>
39+
<li><a class="main-nav-link nav-cta" href="#">Try for free</a></li>
3840
</ul>
3941
</nav>
4042
</header>
@@ -596,5 +598,81 @@ <h2 class="heading-secondary">Get your first meal for free</h2>
596598
</div>
597599
</section>
598600
</main>
601+
602+
<footer class="footer">
603+
<div class="container grid grid--footer">
604+
<div class="logo-col">
605+
<a href="#" class="footer-logo">
606+
<img src="img/omnifood-logo.png" alt="Omnifood logo" class="logo" />
607+
</a>
608+
609+
<ul class="social-links">
610+
<li>
611+
<a class="footer-link" href="#"
612+
><ion-icon class="social-icon" name="logo-instagram"></ion-icon
613+
></a>
614+
</li>
615+
<li>
616+
<a class="footer-link" href="#"
617+
><ion-icon class="social-icon" name="logo-facebook"></ion-icon
618+
></a>
619+
</li>
620+
<li>
621+
<a class="footer-link" href="#"
622+
><ion-icon class="social-icon" name="logo-twitter"></ion-icon
623+
></a>
624+
</li>
625+
</ul>
626+
627+
<p class="copyright">
628+
Copyright &copy; 2027 by Omnifood, Inc. All rights reserved.
629+
</p>
630+
</div>
631+
<div class="address-col">
632+
<p class="footer-heading">Contact us</p>
633+
<address class="contacts">
634+
<p class="address">
635+
623 Harrison St., 2nd Floor, San Francisco, CA 94107
636+
</p>
637+
<p>
638+
<a class="footer-link" href="tel:415-201-6370">415-201-6370</a
639+
><br />
640+
<a class="footer-link" href="mailto:hello@omnifood.com"
641+
>hello@omnifood.com</a
642+
>
643+
</p>
644+
</address>
645+
</div>
646+
647+
<div class="nav-col">
648+
<p class="footer-heading">Account</p>
649+
<ul class="footer-nav">
650+
<li><a class="footer-link" href="#">Create account</a></li>
651+
<li><a class="footer-link" href="#">Sign in</a></li>
652+
<li><a class="footer-link" href="#">iOS app</a></li>
653+
<li><a class="footer-link" href="#">Android app</a></li>
654+
</ul>
655+
</div>
656+
657+
<div class="nav-col">
658+
<p class="footer-heading">Company</p>
659+
<ul class="footer-nav">
660+
<li><a class="footer-link" href="#">About Omnifood</a></li>
661+
<li><a class="footer-link" href="#">For Business</a></li>
662+
<li><a class="footer-link" href="#">Cooking partners</a></li>
663+
<li><a class="footer-link" href="#">Careers</a></li>
664+
</ul>
665+
</div>
666+
667+
<div class="nav-col">
668+
<p class="footer-heading">Resources</p>
669+
<ul class="footer-nav">
670+
<li><a class="footer-link" href="#">Recipe directory</a></li>
671+
<li><a class="footer-link" href="#">Help center</a></li>
672+
<li><a class="footer-link" href="#">Privacy & terms</a></li>
673+
</ul>
674+
</div>
675+
</div>
676+
</footer>
599677
</body>
600678
</html>

0 commit comments

Comments
 (0)