Feat/BOOK-257 videoplayer with card
* feat(BOOK-257): Added VideoPlayer with card component * feat(BOOK-257): Added queries and component for VideoCard block to Content and Collection pages * fix(BOOK-257): Only setting object-fit: cover on the video if it is not fullscreen * feat(BOOK-257): Added queries and component for VideoCard block to Startpage * feat(BOOK-257): Added queries and component for Video block to content/collection/start page Approved-by: Chuma Mcphoy (We Ahead)
This commit is contained in:
13
apps/scandic-web/components/Blocks/VideoCard/index.tsx
Normal file
13
apps/scandic-web/components/Blocks/VideoCard/index.tsx
Normal file
@@ -0,0 +1,13 @@
|
||||
import { VideoWithCard } from "@scandic-hotels/design-system/VideoWithCard"
|
||||
|
||||
import type { VideoCard } from "@scandic-hotels/trpc/types/blocks"
|
||||
|
||||
interface VideoCardBlockProps extends Pick<VideoCard, "video_card"> {}
|
||||
|
||||
export function VideoCardBlock({ video_card }: VideoCardBlockProps) {
|
||||
if (!video_card) {
|
||||
return null
|
||||
}
|
||||
|
||||
return <VideoWithCard {...video_card} />
|
||||
}
|
||||
Reference in New Issue
Block a user