Change structure project

This commit is contained in:
Nezumi
2023-08-01 22:18:13 +07:00
parent 97641dedbb
commit 8e07384f47
6 changed files with 17 additions and 15 deletions
-133
View File
@@ -1,133 +0,0 @@
%mr-inline-auto {
margin-inline: auto;
}
%style-category-item {
padding: 8px 18px;
border-radius: 50px;
}
.menu {
&__container {
@extend %mr-inline-auto;
padding-top: 110px;
max-width: 424px;
}
&__heading {
@extend %mr-inline-auto;
font-size: $fs-xx-lg;
font-weight: 700;
text-align: center;
max-width: 363px;
}
&__list-category {
@extend %d-flex;
@include flex-layout($gap: 30px);
margin-top: 74px;
overflow-x: auto;
-ms-overflow-style: none;
scrollbar-width: none;
padding-left: 49px;
&::-webkit-scrollbar {
display: none;
}
}
&__category-item:first-child {
@extend %style-category-item;
color: $white;
background-color: $primary-color;
border: 2px solid $primary-color;
}
&__category-item {
@extend %style-category-item;
color: $gray;
background-color: transparent;
border: 2px solid $black;
}
&__card-list {
display: grid;
grid-auto-flow: column;
grid-auto-columns: 100%;
column-gap: 70px;
margin-top: 43px;
padding-inline: 59px;
overflow-x: auto;
-ms-overflow-style: none;
scrollbar-width: none;
&::-webkit-scrollbar {
display: none;
}
}
}
@media screen and (min-width: 600px) {
.menu {
&__container {
max-width: $max-width;
}
&__heading {
max-width: 653px;
}
&__card-list {
grid-auto-columns: unset;
grid-template-rows: 1fr 1fr;
row-gap: 66px;
}
}
}
@media screen and (min-width: 840px) {
.menu {
&__list-category {
margin-inline: 59px;
}
&__card-list {
grid-auto-columns: unset;
grid-template-rows: 1fr 1fr;
row-gap: 66px;
}
}
}
@media screen and (min-width: 1200px) {
.menu {
&__container {
padding-top: 160px;
}
&__list-category {
@include flex-layout($gap: 33px);
margin-top: 58px;
}
&__list-category {
max-width: 1018px;
margin-inline: auto;
padding-left: unset;
overflow-x: unset;
}
&__card-list {
margin-inline: auto;
max-width: 1294px;
column-gap: 18px;
margin-top: 106px;
}
}
}
-106
View File
@@ -1,106 +0,0 @@
.offer {
position: relative;
max-width: 428px;
margin-inline: auto;
&__container {
@extend %d-flex;
@include flex-layout($justify: center, $direction: column);
max-width: 380px;
margin: auto;
padding-top: 90px;
position: relative;
}
&__dot-background {
@extend %absolute;
@include set-location($top: 168px, $left: 0);
display: none;
}
&__heading {
font-size: $fs-xx-lg;
text-align: center;
font-weight: 700;
}
&__description {
font-weight: 400;
text-transform: capitalize;
text-align: center;
color: $black;
margin-top: 22px;
max-width: 856px;
margin-inline: auto;
}
&__card-list {
@extend %d-flex;
@include flex-layout($wrap: nowrap, $gap: 70px);
padding-inline: 35px;
margin-top: 65px;
overflow-x: auto;
-ms-overflow-style: none;
scrollbar-width: none;
&::-webkit-scrollbar {
display: none;
}
}
&__rosemary-container {
@extend %absolute;
@include set-location($bottom: -95px, $right: 0);
z-index: 0;
}
}
@media screen and (min-width: 600px) {
.offer {
max-width: $max-width;
&__container {
max-width: $max-width;
}
&__card-list {
@include flex-layout(
$align: center,
$justify: center,
$wrap: wrap,
$gap: 18px
);
row-gap: 30px;
}
&__description {
padding-inline: 24px;
}
}
}
@media screen and (min-width: 1200px) {
.offer {
&__dot-background {
display: block;
}
&__container {
padding-top: 142px;
}
&__description {
margin-top: 27px;
padding-left: 64px;
}
&__card-list {
margin-top: 67px;
}
}
}
-202
View File
@@ -1,202 +0,0 @@
.platform {
&__container {
max-width: 428px;
margin-inline: auto;
padding-top: 26px;
padding-bottom: 58px;
background: linear-gradient(
0,
rgba(253, 197, 94, 0.15) 0%,
rgba(253, 197, 94, 0.05) 50%,
rgba(253, 197, 94, 0) 100%
);
}
&__image-container {
@include size(auto, 502px);
position: relative;
max-width: 100%;
text-align: right;
}
&__main-image {
@extend %absolute;
@include set-location($top: 0, $left: 60px);
}
&__image-food:first-child {
@extend %absolute;
@include set-location($bottom: 54px, $right: 163px);
z-index: 1;
}
&__image-food:nth-child(2) {
@extend %absolute;
@include set-location($bottom: 67px, $right: 118px);
z-index: 1;
}
&__image-food:nth-child(3) {
@extend %absolute;
@include set-location($bottom: 92px, $right: 75px);
z-index: 1;
}
&__image-food:nth-child(4) {
@extend %absolute;
@include set-location($bottom: 147px, $right: 45px);
z-index: 1;
}
&__content {
padding-top: 46px;
padding-left: 25px;
}
&__heading {
font-size: $fs-xx-lg;
font-weight: 700;
max-width: 371px;
}
&__description {
color: $black;
margin-top: 31px;
max-width: 366px;
}
&__store-container {
@extend %d-flex;
@include flex-layout($gap: 27px);
margin-top: 43px;
}
}
@media screen and (min-width: 600px) {
.platform {
&__container {
max-width: $max-width;
}
&__image-container {
width: fit-content;
margin-inline: auto;
}
&__main-image {
@include set-location($top: 0, $left: 28px);
}
&__heading,
&__description {
max-width: unset;
}
}
}
@media screen and (min-width: 840px) {
.platform {
&__container {
@include flex-layout(
$direction: row-reverse,
$align: center,
$justify: space-between
);
// width: 100%;
display: flex;
padding-top: 50px;
}
&__image-container {
margin-inline: unset;
}
&__main-image {
@include set-location($top: 0, $right: 58px, $left: unset);
}
&__image-food:first-child {
@include set-location($bottom: 53px, $right: 160px);
}
&__image-food:nth-child(2) {
@include set-location($bottom: 68px, $right: 117px);
}
&__image-food:nth-child(3) {
@include set-location($bottom: 90px, $right: 70px);
}
&__image-food:nth-child(4) {
@include set-location($bottom: 145px, $right: 43px);
}
&__heading {
max-width: 643px;
}
&__description {
max-width: 550px;
}
}
}
@media screen and (min-width: 1200px) {
.platform {
&__container {
@include flex-layout($justify: space-between);
display: flex;
padding-top: 122px;
}
&__image-container {
@include size(auto, 632px);
padding-top: 20px;
text-align: right;
}
&__main-image {
@include set-location($top: 20px, $right: 107px);
}
&__image-food:first-child {
@include set-location($bottom: -70px, $right: 270px);
}
&__image-food:nth-child(2) {
@include set-location($bottom: -40px, $right: 190px);
}
&__image-food:nth-child(3) {
@include set-location($bottom: 0px, $right: 130px);
}
&__image-food:nth-child(4) {
@include set-location($bottom: 70px, $right: 89px);
}
&__content {
padding-top: 33px;
}
&__heading,
&__description,
&__store-container {
padding-left: 45px;
}
&__description {
margin-top: 58px;
}
}
}
-252
View File
@@ -1,252 +0,0 @@
.service {
max-width: 428px;
margin-inline: auto;
&__container {
@include size(auto, auto);
position: relative;
}
&__background-color {
@extend %absolute;
@include set-location($top: 200px, $left: 0);
@include size(100%, 50%);
background: linear-gradient(
180deg,
rgba(253, 197, 94, 0.01) 0%,
rgba(253, 197, 94, 0.1) 50%,
rgba(253, 197, 94, 0) 100%
);
}
&__img-container {
padding-top: 75px;
position: relative;
width: fit-content;
}
&__main-img {
@extend %absolute;
@include set-location($top: 73px, $left: 35px);
}
&__vegetable-img {
@extend %absolute;
@include set-location($bottom: -10px, $left: 50px);
z-index: 4;
}
&__content {
margin-top: 61px;
padding-inline: 24px;
z-index: 1;
}
&__heading {
margin-top: 30px;
font-size: $fs-xx-lg;
line-height: 129.9%;
font-weight: 700;
max-width: 380px;
}
&__description {
margin-top: 29px;
max-width: 381px;
}
&__category {
@extend %d-flex;
@include flex-layout(
$direction: column,
$justify: space-between,
$gap: 40px
);
max-width: 514px;
margin-top: 81px;
&-list {
@extend %d-flex;
@include flex-layout($direction: column, $gap: 33px, $justify: center);
}
}
&__category-item {
@extend %d-flex;
@include flex-layout($align: center, $gap: 10px);
}
&__name-category {
text-transform: capitalize;
}
&__btn {
display: inline-block;
margin-top: 43px;
text-transform: capitalize;
padding: 10px 20px;
&:hover {
background-color: $secondary-color;
}
}
}
@media screen and (min-width: 600px) {
.service {
max-width: $max-width;
&__img-container {
margin-inline: auto;
}
&__main-img {
@include set-location($top: 30px, $left: 25px);
}
&__heading {
max-width: unset;
}
&__description {
max-width: 690px;
}
&__category {
@include flex-layout($direction: row, $gap: 10px);
margin-top: 29px;
}
}
}
@media screen and (min-width: 840px) {
%absolute_840 {
position: absolute;
}
.service {
&__container {
@include flex-layout($align: center);
display: flex;
padding-top: 200px;
}
&__img-container {
@include size($width: 100%);
max-width: 460px;
}
&__img-container {
@include size(100%, 619px);
}
&__background-img {
@include set-location($top: 100px, $left: 0);
@extend %absolute_840;
}
&__background-color {
@include set-location($top: 400px, $left: -100px);
@include size(400px, 50%);
border-radius: 50%;
background: radial-gradient(
circle,
rgba(253, 197, 94, 0.2),
rgba(253, 197, 94, 0.1),
rgba(253, 197, 94, 0.01),
rgba(253, 197, 94, 0)
);
}
&__main-img {
@include set-location($top: 55px, $left: 25px);
@extend %absolute_840;
}
&__vegetable-img {
@include set-location($bottom: 180px, $left: 50px);
@extend %absolute_840;
}
&__heading {
max-width: 452px;
margin: unset;
}
}
}
@media screen and (min-width: 1200px) {
%absolute_1200 {
position: absolute;
}
.service {
&__container {
@include flex-layout($align: center, $gap: 150px);
}
&__background-img {
@include set-location($top: 0, $left: 0);
@extend %absolute_1200;
}
&__img-container {
margin-inline: unset;
}
&__background-color {
@include set-location($left: -151px);
@include size(500px, 50%);
border-radius: 50%;
background: radial-gradient(
circle,
rgba(253, 197, 94, 0.3),
rgba(253, 197, 94, 0.2),
rgba(253, 197, 94, 0.1),
rgba(253, 197, 94, 0.06),
rgba(253, 197, 94, 0.01),
rgba(253, 197, 94, 0),
rgba(253, 197, 94, 0)
);
clip-path: polygon(30% 0, 100% 0, 100% 100%, 30% 100%);
}
&__description {
margin-top: 21px;
}
&__main-img {
@include set-location($top: 45px, $left: 70px);
}
&__vegetable-img {
@include set-location($bottom: 35px, $left: 92px);
}
&__background-img {
@include set-location($top: 55px, $left: 0);
}
&__category-list {
@include flex-layout($gap: 34px);
}
&__content {
padding-top: 69px;
padding-left: 29px;
}
&__btn {
margin-top: 26px;
}
}
}
-510
View File
@@ -1,510 +0,0 @@
.delivery-text-box {
position: relative;
display: inline-block;
font-size: $fs-xx-lg;
}
.welcome {
background: linear-gradient(
180deg,
rgba(245, 71, 72, 0.06) 0%,
rgba(245, 71, 72, 0) 100%
);
padding-top: 50px;
&__container {
@extend %d-flex;
@include flex-layout($justify: center, $direction: column);
margin: auto;
max-width: 428px;
padding-top: 67px;
}
// Start banner
&__banner-container {
@extend %d-flex;
@include size(428px, auto);
@include flex-layout($justify: center, $direction: column);
position: relative;
}
&__main-image {
text-align: right;
padding-right: 25px;
z-index: 1;
}
&__food-img:nth-child(2) {
@extend %absolute;
@include set-location($bottom: 75px, $left: 12px);
}
&__food-img:nth-child(3) {
@extend %absolute;
@include set-location($bottom: -7px, $left: 110);
}
&__food-img:nth-child(4) {
@extend %absolute;
@include set-location($bottom: 0, $right: 80px);
}
&__food-img:nth-child(5) {
@extend %absolute;
@include set-location($bottom: 85px, $right: 15px);
}
&__review-card {
@extend %absolute;
@include set-location($top: 100px, $left: 10px);
}
&__rate-card {
@extend %absolute;
@include set-location($top: 103px, $right: -5px);
}
&__background-banner {
@extend %absolute;
@include size(100%, 100%);
}
&__lines-background {
@extend %absolute;
@include set-location($top: -85px, $right: 1px);
}
&__arrow-img-up {
@extend %absolute;
@include set-location($top: -15px, $right: 40px);
z-index: -1;
}
&__mint-img {
@extend %absolute;
@include set-location($bottom: 90px, $right: 0);
}
// End banner
// Start content
&__content {
@include size(380px, auto);
@extend %d-flex;
@include flex-layout($direction: column);
position: relative;
padding-top: 58px;
padding-inline: 24px;
}
&__arrow-down-img-wrapper {
@extend %absolute;
display: none;
}
&__orange-img-wrapper {
@extend %absolute;
@include set-location($top: 7px, $right: 0);
}
&__text-box {
@extend %d-flex;
@include flex-layout($align: center, $gap: 6px);
@include size(fit-content);
background-color: #feeae9;
border-radius: 100px;
padding: 4px;
margin-left: 10px;
}
&__text-box-content {
font-family: $secondary-font;
font-size: $fs-xx-sm;
}
&__icon-container {
@include size(20px, 20px);
}
&__love-icon {
@include size(100%, 100%);
}
&__head-arrow-container {
@include size(13px, 7.3px);
@extend %absolute;
@include set-location($right: 107px);
}
&__heading {
margin-top: 16px;
font-size: $fs-xx-lg;
text-transform: capitalize;
font-weight: 900;
}
&__underline-img-container {
@extend %absolute;
@include set-location($bottom: -15px, $left: 0);
}
&__description {
margin-top: 36px;
font-size: $fs-x-md;
line-height: 140%;
letter-spacing: -0.2px;
max-width: 517px;
}
&__search-form {
@extend %d-flex;
margin-top: 30px;
border-radius: 100px;
border: 0.5px solid $black;
max-width: 471px;
}
&__search-icon-wrapper {
@include size(24px, 24px);
padding: 14px;
}
&__text-input {
@include size(100%, auto);
border: none;
&:focus {
outline: none;
}
}
&__submit-btn {
@include size(42px, 42px);
background-color: #fdc55e;
border-radius: 100px;
border: none;
padding: 9px;
margin: 5px 4px;
cursor: pointer;
&:hover {
background-color: $secondary-light-color;
transition: 0.2s;
}
}
&__action-container {
@extend %d-flex;
@include flex-layout($justify: space-between, $gap: 10px);
width: 100%;
margin-top: 35px;
max-width: 376px;
}
&__watch-video-link {
@extend %d-flex;
@include flex-layout($align: center, $gap: 21px);
position: relative;
&:hover {
.welcome__play-icon-wrapper {
transform: scale(1.2);
transition: 0.2s;
}
.welcome__text-download-btn {
color: $primary-color;
}
}
}
&__play-icon {
color: $primary-color;
}
&__play-icon-wrapper {
@extend %absolute;
@include size(12px, 17px);
padding: 17.5px 20px;
border-radius: 50px;
background-color: $white;
box-shadow: 0 25px 50px 3px rgba($color: $primary-color, $alpha: 0.4);
transition: width 0.5s;
line-height: 100%;
}
&__text-download-btn {
color: $gray;
font-size: $fs-sm;
font-family: $tertiary-font;
margin-left: 70px;
transition: 0.5s;
z-index: 1;
}
&__download-btn:hover {
background-color: $secondary-color;
transition: 0.2s;
}
&__slider-container {
@extend %absolute;
display: none;
}
// End content
}
.slider-container {
display: none;
}
@media screen and (min-width: 600px) {
.welcome {
&__container {
max-width: unset;
}
&__banner-container {
width: unset;
}
&__main-image {
margin-inline: auto;
position: relative;
padding-left: 50px;
}
&__food-img:nth-child(2) {
@extend %absolute;
@include set-location($bottom: 75px, $left: 14px);
}
&__food-img:nth-child(3) {
@extend %absolute;
@include set-location($bottom: -7px, $left: 105px);
}
&__food-img:nth-child(4) {
@extend %absolute;
@include set-location($bottom: 0, $right: 80px);
}
&__food-img:nth-child(5) {
@extend %absolute;
@include set-location($bottom: 85px, $right: 15px);
}
&__review-card {
@extend %absolute;
@include set-location($top: 100px, $left: 10px);
}
&__rate-card {
@extend %absolute;
@include set-location($top: 103px, $right: 0);
}
&__content {
width: unset;
padding-inline: unset;
padding-left: 24px;
}
&__underline-img-container {
@include set-location($bottom: 0px, $left: 0);
}
&__underline-img {
width: 180px;
}
}
}
@media screen and (min-width: 840px) {
.welcome {
&__container {
@include flex-layout(
$direction: row-reverse,
$justify: space-between,
$align: center
);
padding-top: 130px;
width: 100%;
max-width: $max-width;
}
// Start content
&__head-arrow-container {
display: none;
}
&__content {
@include size(auto, auto);
padding-left: 70px;
padding-right: 0;
padding-top: 70px;
max-width: 560px;
}
&__orange-img-wrapper {
@include set-location($top: 170px, $right: -50px);
transition: 0.2s;
}
&__heading {
font-size: $fs-xxx-lg;
line-height: 125%;
}
&__underline-img {
width: unset;
}
&__underline-img-container {
@include set-location($bottom: -10px, $left: 8px);
}
&__description {
font-size: $fs-lg;
}
&__watch-video-link:hover {
.welcome__play-icon-wrapper {
transform: unset;
width: 100%;
background-color: $secondary-color;
}
.welcome__text-download-btn {
color: $white;
}
}
&__arrow-down-img-wrapper {
@include set-location($top: -50px, $left: 220px);
display: block;
transition: 0.2s;
}
&__search-form {
@include size(auto, 54px);
}
&__slider-container {
display: block;
@include set-location($bottom: -135px, $left: 65px);
}
// End content
}
}
@media screen and (min-width: 1200px) {
.welcome {
padding-top: 0;
// Start banner
&__banner {
padding-right: 96px;
}
&__banner-container {
@include size(100%, auto);
}
&__main-image {
padding-right: 29px;
}
&__arrow-img-up {
@include set-location($top: 4px, $right: -34px);
}
&__orange-img-wrapper {
@include set-location($top: 110px, $right: -50px);
}
&__arrow-down-img-wrapper {
@include set-location($top: -40px, $left: 223px);
}
&__lines-background {
@include set-location($top: -85px, $right: -96px);
}
&__review-card {
@include set-location($top: 160px, $left: 1px);
}
&__rate-card {
@include set-location($top: 168px, $right: -62px);
}
&__food-img:nth-child(2) {
@include set-location($bottom: 108px, $left: -18px);
}
&__food-img:nth-child(3) {
@include set-location($bottom: -29px, $left: 151px);
}
&__food-img:nth-child(4) {
@include set-location($bottom: -19px, $right: 107px);
}
&__food-img:nth-child(5) {
@include set-location($bottom: 125px, $right: -1px);
}
// End banner
&__container {
@include flex-layout($align: unset, $gap: 50px);
}
&__content {
padding-top: 81px;
}
&__heading {
max-width: 530px;
}
&__text-box {
padding-left: 1px;
}
.delivery-text-box {
font-size: $fs-xxx-lg;
}
&__description {
margin-top: 29px;
}
&__search-form {
margin-top: 24px;
}
&__slider-container {
@include set-location($bottom: -58px, $left: 68px);
}
}
}