Add platform section

This commit is contained in:
2023-07-28 15:25:43 +07:00
parent e361fd6e88
commit 02385e4b81
10 changed files with 129 additions and 0 deletions
Binary file not shown.
Binary file not shown.
Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 496 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 225 KiB

+1
View File
@@ -24,3 +24,4 @@ html(lang="en")
include layouts/offer
include layouts/service
include layouts/menu
include layouts/platform
+34
View File
@@ -0,0 +1,34 @@
- var platform_image_path = "./assets/images/platform/";
section.platform
.platform__container
.platform__image-container
picture
source(
media="(min-width: 1200px)",
srcset=platform_image_path + "main-image-desktop.png"
)
img.platform__main-image(
src=platform_image_path + "main-image-mobile.png",
alt="The image introduce the platform"
)
.platform__content
h2.platform__heading It's Now
= " "
span.primary-text More Easy
= " to "
span.secondary-text Order
= " by Our Mobile "
span.primary-text App
p.platform__description All you need to do is downlode one of the best delivery apps, makes a and most companies are opting for mobile app devlopment for food delivery.
.platform__store-container
.platform__google-store
img.platform__google-store-image(
src=platform_image_path + "chplay.png",
alt="Google store image"
)
.platform__app-store
img.platform__app-store-image(
src=platform_image_path + "app-store.png",
alt="App store image"
)
+93
View File
@@ -0,0 +1,93 @@
.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%;
}
&__main-image {
@extend %absolute;
@include set-absolute-and-location($top: 0, $right: 0);
}
&__content {
padding-top: 52px;
padding-left: 20px;
}
&__heading {
font-size: $fs-x-lg;
font-weight: 700;
max-width: 371px;
}
&__description {
font-size: $fs-md;
color: $black;
margin-top: 23px;
max-width: 366px;
}
&__store-container {
@extend %d-flex;
@include flex-layout($gap: 27px);
margin-top: 43px;
}
}
@media screen and (min-width: 840px) {
.platform {
&__container {
@include flex-layout($direction: row-reverse, $align: center);
display: flex;
max-width: 1440px;
max-height: 632px;
padding-top: 50px;
}
&__image-container {
@include size(704px, 786px);
}
&__main-image {
@include set-absolute-and-location($top: 160px, $right: 0);
}
&__heading {
max-width: 643px;
}
&__description {
max-width: 550px;
}
}
}
@media screen and (min-width: 1200px) {
.platform {
&__container {
padding-top: 170px;
}
&__main-image {
@include set-absolute-and-location($top: 70px, $right: 0);
}
}
}
+1
View File
@@ -20,3 +20,4 @@
@import "./layouts/offer";
@import "./layouts/service";
@import "./layouts/menu";
@import "./layouts/platform";