mirror of
https://github.com/Nezumi-2711/html-css-practice-two.git
synced 2026-09-22 20:01:23 +00:00
Update code
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
After Width: | Height: | Size: 317 B |
Binary file not shown.
|
After Width: | Height: | Size: 665 B |
Binary file not shown.
|
After Width: | Height: | Size: 536 B |
@@ -25,3 +25,4 @@ html(lang="en")
|
|||||||
include layouts/service
|
include layouts/service
|
||||||
include layouts/menu
|
include layouts/menu
|
||||||
include layouts/platform
|
include layouts/platform
|
||||||
|
include layouts/footer
|
||||||
|
|||||||
@@ -0,0 +1,40 @@
|
|||||||
|
- var image_footer_path = "./assets/images/footer/";
|
||||||
|
- var about_us_links = ["About Us", "Service Us", "Contact", "Company"];
|
||||||
|
- var company_links = ["Partnership", "Terms of Use", "Privacy", "Sitemap"];
|
||||||
|
|
||||||
|
footer.footer
|
||||||
|
.footer__container
|
||||||
|
.footer__introduction
|
||||||
|
p.footer__branch-name.primary-text Foodhut
|
||||||
|
p.footer__description Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor
|
||||||
|
.footer__social-media
|
||||||
|
img.facebook-icon(
|
||||||
|
src=image_footer_path + "facebook.png",
|
||||||
|
alt="Facebook icon"
|
||||||
|
)
|
||||||
|
img.instagram-icon(
|
||||||
|
src=image_footer_path + "instagram.png",
|
||||||
|
alt="Instagram icon"
|
||||||
|
)
|
||||||
|
img.twitter-icon(
|
||||||
|
src=image_footer_path + "twitter.png",
|
||||||
|
alt="Twitter icon"
|
||||||
|
)
|
||||||
|
.footer__information
|
||||||
|
.footer__about-us
|
||||||
|
h3.footer__heading.primary-text About Us
|
||||||
|
.footer__link
|
||||||
|
each item in about_us_links
|
||||||
|
p.link-text= item
|
||||||
|
.footer_company
|
||||||
|
h3.footer__heading.primary-text Company
|
||||||
|
.footer__link
|
||||||
|
each item in company_links
|
||||||
|
p.link-text= item
|
||||||
|
.footer__contact
|
||||||
|
h3.footer__heading.primary-text Get in touch
|
||||||
|
p.footer__description Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor
|
||||||
|
form.footer__form(action="#")
|
||||||
|
input.footer__email-input(type="text", placeholder="Email")
|
||||||
|
button.footer__submit-btn(type="submit") Subscribe
|
||||||
|
p.footer__copyright Copyright © 2022 Foodhut.
|
||||||
@@ -16,8 +16,9 @@ $fs-sm: 17px;
|
|||||||
$fs-md: 18px;
|
$fs-md: 18px;
|
||||||
$fs-x-md: 20px;
|
$fs-x-md: 20px;
|
||||||
$fs-lg: 24px;
|
$fs-lg: 24px;
|
||||||
$fs-x-lg: 48px;
|
$fs-x-lg: 32px;
|
||||||
$fs-xx-lg: 58px;
|
$fs-xx-lg: 48px;
|
||||||
|
$fs-xxx-lg: 58px;
|
||||||
|
|
||||||
// Size
|
// Size
|
||||||
$max-width: 1440px;
|
$max-width: 1440px;
|
||||||
|
|||||||
@@ -0,0 +1,132 @@
|
|||||||
|
%mr-ml-auto {
|
||||||
|
margin-inline: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.footer {
|
||||||
|
&__container {
|
||||||
|
@extend %mr-ml-auto;
|
||||||
|
|
||||||
|
padding-top: 116px;
|
||||||
|
padding-left: 24px;
|
||||||
|
max-width: 428px;
|
||||||
|
}
|
||||||
|
|
||||||
|
&__branch-name {
|
||||||
|
font-size: $fs-x-lg;
|
||||||
|
font-weight: 600;
|
||||||
|
}
|
||||||
|
|
||||||
|
&__introduction .footer__description {
|
||||||
|
margin-top: 10px;
|
||||||
|
font-size: $fs-md;
|
||||||
|
max-width: 325px;
|
||||||
|
}
|
||||||
|
|
||||||
|
&__social-media {
|
||||||
|
@extend %d-flex;
|
||||||
|
@include flex-layout($gap: 30px);
|
||||||
|
margin-top: 22.6px;
|
||||||
|
}
|
||||||
|
|
||||||
|
&__information {
|
||||||
|
@extend %d-flex;
|
||||||
|
@include flex-layout($gap: 80px);
|
||||||
|
|
||||||
|
padding-top: 30px;
|
||||||
|
}
|
||||||
|
|
||||||
|
&__heading {
|
||||||
|
font-size: $fs-lg;
|
||||||
|
font-weight: 600;
|
||||||
|
}
|
||||||
|
|
||||||
|
&__link {
|
||||||
|
@extend %d-flex;
|
||||||
|
@include flex-layout($direction: column, $gap: 14px);
|
||||||
|
|
||||||
|
margin-top: 17px;
|
||||||
|
}
|
||||||
|
|
||||||
|
&__contact {
|
||||||
|
margin-top: 30px;
|
||||||
|
}
|
||||||
|
|
||||||
|
&__contact .footer__description {
|
||||||
|
max-width: 379px;
|
||||||
|
color: $black;
|
||||||
|
margin-top: 37px;
|
||||||
|
font-size: $fs-md;
|
||||||
|
}
|
||||||
|
|
||||||
|
&__form {
|
||||||
|
@include size(378px, auto);
|
||||||
|
|
||||||
|
margin-top: 27px;
|
||||||
|
}
|
||||||
|
|
||||||
|
&__email-input {
|
||||||
|
@include size(178px, 48px);
|
||||||
|
|
||||||
|
margin-right: 15px;
|
||||||
|
border-radius: 40px;
|
||||||
|
padding-left: 25px;
|
||||||
|
border: none;
|
||||||
|
background-color: #e8e8e8;
|
||||||
|
}
|
||||||
|
|
||||||
|
&__submit-btn {
|
||||||
|
@include size(118px, 50px);
|
||||||
|
|
||||||
|
border-radius: 40px;
|
||||||
|
color: $white;
|
||||||
|
background-color: $primary-color;
|
||||||
|
border: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
&__copyright {
|
||||||
|
@extend %mr-ml-auto;
|
||||||
|
@include size(fit-content, auto);
|
||||||
|
|
||||||
|
margin-top: 80px;
|
||||||
|
padding-bottom: 29px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media screen and (min-width: 840px) {
|
||||||
|
.footer {
|
||||||
|
&__container {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: 1fr 1fr;
|
||||||
|
max-width: 1440px;
|
||||||
|
width: auto;
|
||||||
|
padding-inline: 90px;
|
||||||
|
column-gap: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
&__introduction {
|
||||||
|
@include size(fit-content, fit-content);
|
||||||
|
|
||||||
|
margin: auto 0;
|
||||||
|
grid-row: 1 / span 2;
|
||||||
|
max-width: 400px;
|
||||||
|
}
|
||||||
|
|
||||||
|
&__contact {
|
||||||
|
grid-column: -2;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media screen and (min-width: 1200px) {
|
||||||
|
.footer {
|
||||||
|
&__container {
|
||||||
|
grid-template-columns: auto auto auto;
|
||||||
|
padding-left: 135px;
|
||||||
|
column-gap: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
&__introduction {
|
||||||
|
margin-top: 15px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -19,7 +19,7 @@
|
|||||||
&__heading {
|
&__heading {
|
||||||
@extend %mr-inline-auto;
|
@extend %mr-inline-auto;
|
||||||
|
|
||||||
font-size: $fs-x-lg;
|
font-size: $fs-xx-lg;
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
max-width: 363px;
|
max-width: 363px;
|
||||||
|
|||||||
@@ -21,7 +21,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
&__heading {
|
&__heading {
|
||||||
font-size: $fs-x-lg;
|
font-size: $fs-xx-lg;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -31,7 +31,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
&__heading {
|
&__heading {
|
||||||
font-size: $fs-x-lg;
|
font-size: $fs-xx-lg;
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
max-width: 371px;
|
max-width: 371px;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -52,7 +52,7 @@
|
|||||||
&__heading {
|
&__heading {
|
||||||
margin-top: 30px;
|
margin-top: 30px;
|
||||||
margin-inline: auto;
|
margin-inline: auto;
|
||||||
font-size: $fs-x-lg;
|
font-size: $fs-xx-lg;
|
||||||
line-height: 129.9%;
|
line-height: 129.9%;
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
max-width: 380px;
|
max-width: 380px;
|
||||||
|
|||||||
@@ -102,7 +102,7 @@
|
|||||||
|
|
||||||
&__heading {
|
&__heading {
|
||||||
margin-top: 20px;
|
margin-top: 20px;
|
||||||
font-size: $fs-x-lg;
|
font-size: $fs-xx-lg;
|
||||||
text-transform: capitalize;
|
text-transform: capitalize;
|
||||||
font-weight: 900;
|
font-weight: 900;
|
||||||
max-width: 530px;
|
max-width: 530px;
|
||||||
@@ -292,7 +292,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
&__heading {
|
&__heading {
|
||||||
font-size: $fs-xx-lg;
|
font-size: $fs-xxx-lg;
|
||||||
line-height: 125%;
|
line-height: 125%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -21,3 +21,4 @@
|
|||||||
@import "./layouts/service";
|
@import "./layouts/service";
|
||||||
@import "./layouts/menu";
|
@import "./layouts/menu";
|
||||||
@import "./layouts/platform";
|
@import "./layouts/platform";
|
||||||
|
@import "./layouts/footer";
|
||||||
|
|||||||
Reference in New Issue
Block a user