feat: add ProductCarousel

This commit is contained in:
Quangnhankie
2021-09-13 16:01:46 +07:00
parent 4cc6255717
commit 617a7a9fcc
3 changed files with 7 additions and 2 deletions

View File

@@ -2,14 +2,16 @@ import Image from 'next/image'
import React from 'react'
import s from './HomeVideo.module.scss'
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 {PRODUCT_DATA_TEST} from "../../../../utils/demo-data";
interface Props {
className?: string
children?: any
}
const HomeVideo = ({ }: Props) => {
return (
<section className={s.homeVideo}>
@@ -25,6 +27,7 @@ const HomeVideo = ({ }: Props) => {
{/* todo: change url video */}
<VideoPlayer url='https://www.youtube.com/watch?v=nXH23nYYM3s' controls={true} />
</div>
<ProductCarousel data={PRODUCT_DATA_TEST} itemKey="product-7"/>
</section >
)
}