-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7beda90
commit ae3eb2a
Showing
2 changed files
with
98 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
import { Helmet } from "react-helmet-async"; | ||
import { productImg1 } from "src/Assets/Images/Images"; | ||
import useScrollOnMount from "src/Hooks/App/useScrollOnMount"; | ||
import CategoriesSection from "./CategoriesSection/CategoriesSection"; | ||
import FeaturedSection from "./FeaturedSection/FeaturedSection"; | ||
import FeaturedSectionFeatures from "./FeaturedSection/FeaturedSectionFeatures"; | ||
import s from "./Home.module.scss"; | ||
import MainSlider from "./Introduction/MainSlider/MainSlider"; | ||
import SectionsMenu from "./Introduction/SectionsMenu/SectionsMenu"; | ||
import OurProductsSection from "./OurProductsSection/OurProductsSection"; | ||
import ProductPoster from "./ProductPoster/ProductPoster"; | ||
import ThisMonthSection from "./ThisMonthSection/ThisMonthSection"; | ||
import TodaySection from "./TodaySection/TodaySection"; | ||
|
||
const Home = () => { | ||
useScrollOnMount(0); | ||
|
||
return ( | ||
<> | ||
<Helmet> | ||
<title>E-Commercew</title> | ||
<meta | ||
name="description" | ||
content="Your ultimate destination for effortless online shopping. Discover curated collections, easily add items to your cart and wishlist,and enjoy detailed product descriptions with captivating previews. Experience convenience like never before with our intuitive interface. Shop smarter with us today." | ||
/> | ||
<link ref="preload" as="image" type="image/webp" href={productImg1} /> | ||
</Helmet> | ||
|
||
<main className={s.home}> | ||
<div className={s.container}> | ||
<div className={s.introductionContainer}> | ||
<SectionsMenu /> | ||
|
||
<div className={s.line} /> | ||
|
||
<MainSlider /> | ||
</div> | ||
|
||
<TodaySection /> | ||
<CategoriesSection /> | ||
<ThisMonthSection /> | ||
<ProductPoster /> | ||
<OurProductsSection /> | ||
<FeaturedSection /> | ||
<FeaturedSectionFeatures /> | ||
</div> | ||
</main> | ||
</> | ||
); | ||
}; | ||
|
||
export default Home; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
@import "src/Styles/mixins"; | ||
|
||
.container { | ||
width: var(--container-width); | ||
margin: 0 auto; | ||
} | ||
|
||
@include small { | ||
.container { | ||
width: var(--container-mobile-width); | ||
} | ||
} | ||
|
||
.introductionContainer { | ||
display: flex; | ||
margin-top: 60px; | ||
margin-bottom: 140px; | ||
} | ||
|
||
@include large { | ||
.introductionContainer { | ||
flex-direction: column-reverse; | ||
} | ||
} | ||
|
||
@include small { | ||
.introductionContainer { | ||
margin-bottom: 80px; | ||
} | ||
} | ||
|
||
.line { | ||
width: 1px; | ||
height: 404px; | ||
margin-inline-end: 40px; | ||
background-color: var(--medium-light-gray); | ||
position: relative; | ||
top: -60px; | ||
user-select: none; | ||
} | ||
|
||
@include large { | ||
.line { | ||
display: none; | ||
} | ||
} |