mirror of
https://github.com/vercel/commerce.git
synced 2025-07-22 20:26:49 +00:00
✨ feat: ProductCollection HomeRecipe
:%s
This commit is contained in:
@@ -4,12 +4,15 @@ import image5 from "../public/assets/images/image5.png"
|
||||
import image6 from "../public/assets/images/image6.png"
|
||||
import image7 from "../public/assets/images/image7.png"
|
||||
import image8 from "../public/assets/images/image8.png"
|
||||
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 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 dataTest = [{
|
||||
name:"Tomato",
|
||||
weight:"250g",
|
||||
@@ -83,14 +86,38 @@ const dataTest = [{
|
||||
price:"Rp 27.500",
|
||||
imageSrc:image6.src
|
||||
}]
|
||||
|
||||
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() {
|
||||
return (
|
||||
<>
|
||||
<ProductCaroucel data={dataTest} itemKey="product-1" isDot={true}/>
|
||||
<div>
|
||||
<FeaturedProductCard title="Sale 25% Coffee Bean" subTitle="50 first Orders within a day" price="$15.00" originPrice="$20.00" imageSrc={image9.src} />
|
||||
<RecipeCard title="Sale 25% Coffee Bean" imageSrc={image12.src} 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:" />
|
||||
</div>
|
||||
<CollectionCarcoucel data={dataTest} itemKey="product-1" title="VEGGIE" subTitle= "Last call! Shop deep deals on 100+ bulk picks while you can." />
|
||||
<HomeRecipe data={recipe} itemKey="product-2" title="Special Recipes"/>
|
||||
</>
|
||||
)
|
||||
}
|
||||
|
Reference in New Issue
Block a user