Untitled
unknown
css
a year ago
6.1 kB
6
Indexable
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html {
font-size: 62.5%;
}
body {
font-family: "Rubik", sans-serif;
line-height: 1;
font-weight: 400;
color: #555;
}
/******************************/
/* HEADER */
/******************************/
.header {
display: flex;
justify-content: space-between;
align-items: center;
background-color: #fdf2e9;
height: 9.6rem;
padding: 0 4.8rem;
}
.logo {
height: 2.2rem;
}
/******************************/
/* NAVIGATION */
/******************************/
.main-nav-list {
display: flex;
align-items: center;
gap: 3.2rem;
list-style: none;
}
.main-nav-link:link,
.main-nav-link:visited {
display: inline-block;
font-size: 1.8rem;
font-weight: 500;
text-decoration: none;
color: #333;
transition: all 0.3s;
}
.main-nav-link:hover,
.main-nav-link:active {
color: #cf711f;
}
.main-nav-link.nav-cta:link,
.main-nav-link.nav-cta:visited {
padding: 1.2rem 2.4rem;
border-radius: 8px;
background-color: #e67e22;
color: #fff;
}
.main-nav-link.nav-cta:hover,
.main-nav-link.nav-cta:active {
background-color: #cf711f;
}
/******************************/
/* HERO SECITON */
/******************************/
.hero-section {
background-color: #fdf2e9;
padding: 4.8rem 0 9.6rem 0;
}
.hero {
display: grid;
grid-template-columns: 1fr 1fr;
align-items: center;
gap: 9.6rem;
max-width: 130rem;
margin: 0 auto;
padding: 3.2rem;
}
.hero-description {
font-size: 2rem;
line-height: 1.5;
margin-bottom: 4.8rem;
}
.delivered-meals {
display: flex;
align-items: center;
gap: 1.6rem;
margin-top: 8rem;
}
.delivered-faces {
display: flex;
}
.delivered-faces img {
height: 4.8rem;
width: 4.8rem;
border-radius: 50%;
margin-right: -1.6rem;
border: 3px solid #fdf2e9;
}
.delivered-faces img:last-child {
margin: 0;
}
.delivered-text {
font-size: 1.6rem;
font-weight: 600;
}
.delivered-text span {
font-weight: 700;
color: #cf711f;
}
.hero-img {
width: 100%;
}
/******************************/
/* FEATURED IN SECTION */
/******************************/
.featured-section {
padding: 4.8rem 0 3.2rem 0;
}
.featured-heading {
color: #888;
font-size: 1.4rem;
font-weight: 500;
letter-spacing: 0.75px;
text-transform: uppercase;
text-align: center;
margin-bottom: 2.4rem;
}
.logos {
display: flex;
justify-content: space-around;
}
.featured-logo {
height: 3.2rem;
filter: brightness(0);
opacity: 50%;
}
/******************************/
/* HOW IT WORKS SECTION */
/******************************/
.how-it-works-section {
padding: 9.6rem 0;
}
.step-number {
display: block;
font-size: 8.6rem;
font-weight: 600;
color: #ddd;
margin-bottom: 1.2rem;
}
.step-description {
font-size: 1.8rem;
line-height: 1.8;
}
.step-img-box {
display: flex;
align-items: center;
justify-content: center;
position: relative;
}
.step-img-box::before,
.step-img-box::after {
content: '';
display: block;
position: absolute;
border-radius: 50%;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
.step-img-box:before {
width: 60%;
padding-bottom: 60%;
background-color: #fdf2e9;
z-index: -2;
}
.step-img-box::after {
width: 50%;
padding-bottom: 50%;
background-color: #fae5d3;
z-index: -1;
}
.step-img {
width: 35%;
}
/******************************/
/* MEALS SECTION*/
/******************************/
.meals-section {
padding: 9.6rem 0;
}
.meal {
box-shadow: 0 2.4rem 4.8rem rgba(0, 0, 0, .1);
border-radius: 11px;
overflow: hidden;
transition: all 0.5s;
}
.meal:hover {
transform: translateY(-1.2rem);
box-shadow: 0 3.2rem 6.4rem rgba(0, 0, 0, 0.06);
}
.meal-img {
width: 100%;
}
.meal-content {
padding: 3.2rem 4.8rem 4.8rem 4.8rem;
}
.meal-tags {
margin-bottom: 1.2rem;
display: flex;
gap: 4px;
}
.meal-tag {
display: inline-block;
padding: 0.4rem 0.8rem;
text-transform: uppercase;
color: #333;
border-radius: 50px;
font-weight: 600;
}
.meal-tag--vegetarian {
background-color: #51cf66;
}
.meal-tag--vegan {
background-color: #94d82d;
}
.meal-tag--paleo {
background-color: #fffd3b;
}
.meal-name {
display: block;
font-size: 2.4rem;
font-weight: 600;
color: 333;
margin-bottom: 3.4rem;
}
.meal-descriptions {
list-style: none;
display: flex;
flex-direction: column;
gap: 2rem;
}
.meal-description {
font-size: 1.8rem;
display: flex;
align-items: center;
gap: 1.6rem;
}
.meal-icon {
height: 2.4rem;
width: 2.4rem;
color: #e67e22;
}
.diet-lists {
list-style: none;
display: flex;
flex-direction: column;
gap: 1.6rem;
}
.diet-list {
display: flex;
align-items: center;
gap: 1.6rem;
font-size: 1.8rem;
}
.diet-list ion-icon {
width: 3rem;
height: 3rem;
color: #e67e22;
}
.all--recipe-link {
text-align: center;
font-size: 1.8rem;
}
/******************************/
/* TESTIMONIAL SECTION */
/******************************/
.testimonial-section {
background-color: #fdf2e9;
}
.testimonial-container {
padding: 9.6rem;
}
.testimonials {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 4.8rem;
}
.testimonial-img {
width: 6.4rem;
border-radius: 50%;
margin-bottom: 1.2rem;
}
.testimonial-quote {
font-size: 1.8rem;
line-height: 1.8;
margin-bottom: 1.6rem;
}
.customer-name {
font-size: 1.6rem;
color: #777;
}
/******************************/
/* GALLERY SECTION */
/******************************/
.gallery-container {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 1.6rem;
}
.gallery-img {
}
.gallery-img img {
display: block; /* To remove whitespace below images*/
width: 100%;
}Editor is loading...
Leave a Comment