Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
innovatixhub authored Nov 26, 2024
1 parent 7beda90 commit ae3eb2a
Show file tree
Hide file tree
Showing 2 changed files with 98 additions and 0 deletions.
52 changes: 52 additions & 0 deletions src/componants/home/Home.jsx
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;
46 changes: 46 additions & 0 deletions src/componants/home/Home.module.scss
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;
}
}

0 comments on commit ae3eb2a

Please sign in to comment.