-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add clips section below video if video has clips
- Loading branch information
Showing
8 changed files
with
109 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
import { Video } from "@/app/hooks/useVideos"; | ||
import { Carousel } from "@mantine/carousel"; | ||
import { Title } from "@mantine/core"; | ||
import VideoCard from "./Card"; | ||
|
||
interface Params { | ||
clips: Video[]; | ||
} | ||
|
||
const VideoPageClips = ({ clips }: Params) => { | ||
|
||
return ( | ||
<div> | ||
<Title my={5}>Video Clips</Title> | ||
<Carousel | ||
withIndicators | ||
slideSize={{ base: '100%', sm: '50%', md: '33.333333%', lg: '25%', xl: '16.666666%' }} | ||
slideGap={{ base: 0, sm: 'md' }} | ||
loop | ||
align="start" | ||
> | ||
{clips.map((video) => ( | ||
<Carousel.Slide key={video.id}> | ||
<VideoCard | ||
key={video.id} | ||
video={video} | ||
showChannel={false} | ||
showMenu={true} | ||
showProgress={true} | ||
/> | ||
</Carousel.Slide> | ||
))} | ||
</Carousel> | ||
</div> | ||
); | ||
} | ||
|
||
export default VideoPageClips; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters