mirror of
https://github.com/vercel/commerce.git
synced 2025-07-22 12:24:18 +00:00
feat: add ProductCarousel
This commit is contained in:
@@ -4,7 +4,7 @@ import { AccountPage } from 'src/components/modules/account';
|
|||||||
|
|
||||||
const Account = () => {
|
const Account = () => {
|
||||||
return (
|
return (
|
||||||
<AccountPage/>
|
// <AccountPage/>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@@ -1,4 +1,5 @@
|
|||||||
import { Layout } from 'src/components/common';
|
import { Layout } from 'src/components/common';
|
||||||
|
import { ViewedProducts } from 'src/components/modules/product-detail';
|
||||||
import ProductListFilter from 'src/components/modules/product-list/ProductListFilter/ProductListFilter';
|
import ProductListFilter from 'src/components/modules/product-list/ProductListFilter/ProductListFilter';
|
||||||
import RecipeListBanner from 'src/components/modules/recipes-list/RecipeListBanner/RecipeListBanner';
|
import RecipeListBanner from 'src/components/modules/recipes-list/RecipeListBanner/RecipeListBanner';
|
||||||
import RecipesList from 'src/components/modules/recipes-list/RecipesList/RecipesList';
|
import RecipesList from 'src/components/modules/recipes-list/RecipesList/RecipesList';
|
||||||
@@ -10,6 +11,7 @@ export default function Products() {
|
|||||||
<>
|
<>
|
||||||
<ProductListBanner />
|
<ProductListBanner />
|
||||||
<ProductListFilter/>
|
<ProductListFilter/>
|
||||||
|
<ViewedProducts/>
|
||||||
</>
|
</>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
@@ -2,14 +2,16 @@ import Image from 'next/image'
|
|||||||
import React from 'react'
|
import React from 'react'
|
||||||
import s from './HomeVideo.module.scss'
|
import s from './HomeVideo.module.scss'
|
||||||
import LogoBrand from './assets/logo_maggi.png'
|
import LogoBrand from './assets/logo_maggi.png'
|
||||||
import { VideoPlayer } from 'src/components/common'
|
import { ProductCarousel, VideoPlayer } from 'src/components/common'
|
||||||
import HeadingCommon from '../../../common/HeadingCommon/HeadingCommon'
|
import HeadingCommon from '../../../common/HeadingCommon/HeadingCommon'
|
||||||
|
import {PRODUCT_DATA_TEST} from "../../../../utils/demo-data";
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
className?: string
|
className?: string
|
||||||
children?: any
|
children?: any
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
const HomeVideo = ({ }: Props) => {
|
const HomeVideo = ({ }: Props) => {
|
||||||
return (
|
return (
|
||||||
<section className={s.homeVideo}>
|
<section className={s.homeVideo}>
|
||||||
@@ -25,6 +27,7 @@ const HomeVideo = ({ }: Props) => {
|
|||||||
{/* todo: change url video */}
|
{/* todo: change url video */}
|
||||||
<VideoPlayer url='https://www.youtube.com/watch?v=nXH23nYYM3s' controls={true} />
|
<VideoPlayer url='https://www.youtube.com/watch?v=nXH23nYYM3s' controls={true} />
|
||||||
</div>
|
</div>
|
||||||
|
<ProductCarousel data={PRODUCT_DATA_TEST} itemKey="product-7"/>
|
||||||
</section >
|
</section >
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user