diff --git a/pages/index.tsx b/pages/index.tsx
index bbf712910..24c234f5c 100644
--- a/pages/index.tsx
+++ b/pages/index.tsx
@@ -1,42 +1,8 @@
-import { FeaturedProductCard, Layout, ProductCaroucel, RecipeCard } from 'src/components/common'
+import { Layout } from 'src/components/common'
import { HomeBanner, HomeCollection, HomeCTA, HomeSubscribe, HomeVideo } from 'src/components/modules/home';
+import HomeRecipe from 'src/components/modules/home/HomeRecipe/HomeRecipe';
-// import image9 from "../public/assets/images/image9.png"
-// import image10 from "../public/assets/images/image10.png"
-// import image11 from "../public/assets/images/image11.png"
-import image12 from "../public/assets/images/image12.png"
-// import { CollectionCarcoucel } from 'src/components/modules/home'
-import HomeRecipe from 'src/components/modules/home/HomeRecipe/HomeRecipe'
-import image13 from "../public/assets/images/image13.png"
-import image14 from "../public/assets/images/image14.png"
-import { RecipeCardProps } from '../src/components/common/RecipeCard/RecipeCard';
-
-const recipe:RecipeCardProps[] = [{
- title: "Special Recipe of Vietnamese Phở",
- description:"Alright, before we get to the actual recipe, let’s chat for a sec about the ingredients. To make this pho soup recipe, you will need:",
- imageSrc: image12.src
-},{
- title: "Original Recipe of Curry",
- description:"Chicken curry is common to several countries including India, countries in Asia and the Caribbean. My favorite of them though is this aromatic Indian...",
- imageSrc: image13.src
-},{
- title: "The Best Recipe of Beef Noodle Soup",
- description:"The broth for Bun Bo Hue is prepared by slowly simmering various types of beef and pork bones (ox tail, beef shank, pork neck bones, pork feet,...",
- imageSrc: image14.src
-},{
- title: "Special Recipe of Vietnamese Phở",
- description:"Alright, before we get to the actual recipe, let’s chat for a sec about the ingredients. To make this pho soup recipe, you will need:",
- imageSrc: image12.src
-},{
- title: "Original Recipe of Curry",
- description:"Chicken curry is common to several countries including India, countries in Asia and the Caribbean. My favorite of them though is this aromatic Indian...",
- imageSrc: image13.src
-},{
- title: "The Best Recipe of Beef Noodle Soup",
- description:"The broth for Bun Bo Hue is prepared by slowly simmering various types of beef and pork bones (ox tail, beef shank, pork neck bones, pork feet,...",
- imageSrc: image14.src
-}]
export default function Home() {
@@ -46,7 +12,7 @@ export default function Home() {
-
+
>
)
diff --git a/src/components/common/ButtonCommon/ButtonCommon.module.scss b/src/components/common/ButtonCommon/ButtonCommon.module.scss
index 70ab8f400..8bc4b23ca 100644
--- a/src/components/common/ButtonCommon/ButtonCommon.module.scss
+++ b/src/components/common/ButtonCommon/ButtonCommon.module.scss
@@ -5,7 +5,7 @@
display: flex;
justify-content: center;
align-items: center;
- padding: 1.2rem 3.2rem;
+ padding: 0.8rem 3.2rem;
&:disabled {
filter: brightness(0.9);
cursor: not-allowed;
diff --git a/src/components/common/CarouselCommon/CaroucelCommon.module.scss b/src/components/common/CarouselCommon/CarouselCommon.module.scss
similarity index 89%
rename from src/components/common/CarouselCommon/CaroucelCommon.module.scss
rename to src/components/common/CarouselCommon/CarouselCommon.module.scss
index 373d03f31..802c25bb0 100644
--- a/src/components/common/CarouselCommon/CaroucelCommon.module.scss
+++ b/src/components/common/CarouselCommon/CarouselCommon.module.scss
@@ -25,18 +25,18 @@
:global {
.dots {
display: flex;
- padding: 10px 0;
+ padding: 1rem 0;
justify-content: center;
}
.dot {
border: none;
- width: 10px;
- height: 10px;
+ width: 1rem;
+ height: 1rem;
background: #c5c5c5;
border-radius: 50%;
- margin: 0 5px;
- padding: 5px;
+ margin: 0 0.5rem;
+ padding: 0.5rem;
cursor: pointer;
}
diff --git a/src/components/common/CarouselCommon/CarouselCommon.tsx b/src/components/common/CarouselCommon/CarouselCommon.tsx
index 570fac52a..a9011a074 100644
--- a/src/components/common/CarouselCommon/CarouselCommon.tsx
+++ b/src/components/common/CarouselCommon/CarouselCommon.tsx
@@ -2,7 +2,7 @@ import { useKeenSlider } from 'keen-slider/react'
import React, { useEffect } from 'react'
import 'keen-slider/keen-slider.min.css'
import { CustomCarouselArrow } from './CustomArrow/CustomCarouselArrow'
-import s from './CaroucelCommon.module.scss'
+import s from './CarouselCommon.module.scss'
import { TOptionsEvents } from 'keen-slider'
import classNames from 'classnames'
import CustomDot from './CustomDot/CustomDot'
@@ -47,7 +47,6 @@ const CarouselCommon = ({
useEffect(() => {
if(isDot && slider){
- // console.log('f',Math.ceil(data.length/(Number(slider.details().slidesPerView)||1)))
let array:number[]
array = [...Array(Math.ceil(data.length/(Number(slider.details().slidesPerView)||1))).keys()].map((i)=>{
return (Number(slider.details().slidesPerView)||1)*i
@@ -67,7 +66,6 @@ const CarouselCommon = ({
const onDotClick = (index:number) => {
slider.moveToSlideRelative(Math.floor(index))
- // setDotActive(index)
}
return (