diff --git a/public/images/hot_offer.png b/public/images/hot_offer.png new file mode 100644 index 0000000..9b9324f Binary files /dev/null and b/public/images/hot_offer.png differ diff --git a/src/app/home/components/Carousel.tsx b/src/app/home/components/Carousel.tsx index 3f30e4a..b87f463 100644 --- a/src/app/home/components/Carousel.tsx +++ b/src/app/home/components/Carousel.tsx @@ -6,7 +6,7 @@ import { Pagination } from 'swiper/modules'; const Carousel: FC = () => { return (
- +
1 diff --git a/src/app/home/components/HotOffer.tsx b/src/app/home/components/HotOffer.tsx new file mode 100644 index 0000000..86c8756 --- /dev/null +++ b/src/app/home/components/HotOffer.tsx @@ -0,0 +1,49 @@ +'use client' +import { FC } from 'react' +import ProductCard from '@/components/ProductCard' +import Image from 'next/image' +import { Swiper, SwiperSlide } from 'swiper/react'; + + +const HotOffer: FC = () => { + return ( +
+
+
+ پیشنهاد های +
+ داغ +
+ سندس + کالا +
+
+ +
+
+ +
+ + + + + + + + +
+
+ ) +} + +export default HotOffer \ No newline at end of file diff --git a/src/app/page.tsx b/src/app/page.tsx index 07976a2..0fc1dc8 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -1,11 +1,15 @@ import { NextPage } from 'next' import withLayout from '@/hoc/withLayout' import Carousel from './home/components/Carousel' +import HotOffer from './home/components/HotOffer' const Home: NextPage = () => { return (
+
+ +
) } diff --git a/src/components/ProductCard.tsx b/src/components/ProductCard.tsx new file mode 100644 index 0000000..f73537b --- /dev/null +++ b/src/components/ProductCard.tsx @@ -0,0 +1,11 @@ +import { FC } from 'react' + +const ProductCard: FC = () => { + return ( +
+ +
+ ) +} + +export default ProductCard \ No newline at end of file diff --git a/src/hoc/withLayout.tsx b/src/hoc/withLayout.tsx index 1fa1639..331882e 100644 --- a/src/hoc/withLayout.tsx +++ b/src/hoc/withLayout.tsx @@ -1,4 +1,5 @@ +import Footer from '@/share/Footer' import Header from '@/share/Header' import { FC, ComponentType } from 'react' // import Header from '@/share/Header' @@ -14,7 +15,7 @@ const Layout: FC = ({ children }) => {
{children}
- {/*
*/} +
) } diff --git a/src/share/Footer.tsx b/src/share/Footer.tsx new file mode 100644 index 0000000..3f6b666 --- /dev/null +++ b/src/share/Footer.tsx @@ -0,0 +1,11 @@ +import { FC } from 'react' + +const Footer: FC = () => { + return ( +
+ +
+ ) +} + +export default Footer \ No newline at end of file diff --git a/src/share/Header.tsx b/src/share/Header.tsx index a0c4bb7..9ec22f3 100644 --- a/src/share/Header.tsx +++ b/src/share/Header.tsx @@ -7,7 +7,7 @@ import Menu from './components/Menu' const Header: FC = () => { return ( -
+
LOGO
diff --git a/src/share/components/Menu.tsx b/src/share/components/Menu.tsx index 2d2ccc5..9e7b180 100644 --- a/src/share/components/Menu.tsx +++ b/src/share/components/Menu.tsx @@ -76,7 +76,7 @@ const Menu: FC = () => { {isOpen && (
{ setIsOpen(false) setHoveredPath([])