Skip to content

Commit e121daa

Browse files
feat: add stacks video (#580)
1 parent 80d26dd commit e121daa

File tree

3 files changed

+95
-2
lines changed

3 files changed

+95
-2
lines changed

src/app/stacks/Fragments.tsx

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import { InfoBox as InfoBoxPrimitive } from "@/components/Infobox";
22
import { PageHeader } from "@/components/PageHeader";
33
import { Box } from "@zenml-io/react-component-library";
4+
import { VideoModal } from "@/components/VideoModal";
5+
import StacksVideo from "@/assets/illustrations/stacks-video.svg";
46

57
export function StacksHeader() {
68
return (
@@ -22,14 +24,30 @@ export function InfoBox() {
2224
}
2325

2426
export function HeaderBox() {
27+
const videoLink =
28+
"https://zenml.portal.trainn.co/share/pbJuqd7awpp5pjFQLoPmHQ/embed?autoplay=false";
2529
return (
26-
<Box className="flex flex-col-reverse items-stretch overflow-hidden md:flex-row">
27-
<div className="w-full p-7 md:w-2/3">
30+
<Box className="flex flex-col-reverse items-stretch overflow-hidden lg:flex-row">
31+
<div className="w-full p-7 lg:w-2/3">
2832
<h2 className="text-display-xs font-semibold">Learn More about Stacks</h2>
2933
<p className="mt-2 text-text-lg text-theme-text-secondary">
3034
Get started with ZenML Stacks and Stack Components in this starter guide video. Set up
3135
Your Stack from local to cloud.
3236
</p>
37+
<VideoModal videoLink={videoLink} buttonText="Watch the Starter Guide (5 min)" />
38+
</div>
39+
<div className="flex w-full items-center justify-center bg-primary-50 lg:w-1/3">
40+
<VideoModal
41+
fallbackImage={
42+
<img
43+
src={StacksVideo}
44+
alt="Purple squares with text indicating a starter guide for stacks"
45+
className="h-full w-full"
46+
/>
47+
}
48+
videoLink={videoLink}
49+
isButton={false}
50+
/>
3351
</div>
3452
</Box>
3553
);

0 commit comments

Comments
 (0)