Skip to content

Commit 35011a0

Browse files
feat: add secrets video (#581)
1 parent ff75470 commit 35011a0

File tree

5 files changed

+44
-5
lines changed

5 files changed

+44
-5
lines changed

src/app/settings/Menu.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ type MenuProps = {
1212
export function SettingsMenu({ items }: MenuProps) {
1313
return (
1414
<nav className="flex w-full flex-col items-center">
15-
<ul className="flex w-full flex-row items-center gap-1 lg:flex-col lg:items-start">
15+
<ul className="flex w-full flex-row flex-wrap items-center gap-1 lg:flex-col lg:items-start">
1616
{items.map((item) => (
1717
<li key={item.name} className="lg:w-full">
1818
<NavLink end to={item.href}>

src/app/settings/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export default function SettingsPage() {
1111

1212
return (
1313
<div className="layout-container flex flex-col gap-7 pt-5 lg:flex-row lg:px-10">
14-
<div className="flex w-[200px] shrink-0 flex-col gap-4">
14+
<div className="flex shrink-0 flex-col gap-4 lg:w-[200px]">
1515
<div className="flex flex-col gap-4">
1616
<p className="text-text-xs font-semibold uppercase text-theme-text-tertiary">Server</p>
1717
<DisplayServer />

src/app/settings/secrets/Fragments.tsx

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ import { HelpBox } from "@/components/fallback-pages/Helpbox";
44
import { Fragment } from "react/jsx-runtime";
55
import { generateCommandList } from "@/components/fallback-pages/Commands";
66
import { secretCommands } from "@/contents/secrets";
7+
import { VideoModal } from "@/components/VideoModal";
8+
import SecretsVideo from "@/assets/illustrations/secrets-video.svg";
79

810
export function InfoBox() {
911
return (
@@ -17,14 +19,30 @@ export function InfoBox() {
1719
}
1820

1921
export function HeaderBox() {
22+
const videoLink =
23+
"https://zenml.portal.trainn.co/share/R0A37qU8LVfcvPi6wxdhaQ/embed?autoplay=false";
2024
return (
21-
<Box className="flex flex-col-reverse items-stretch overflow-hidden md:flex-row">
22-
<div className="w-full p-7 md:w-2/3">
25+
<Box className="flex flex-col-reverse items-stretch overflow-hidden lg:flex-row">
26+
<div className="w-full p-7 lg:w-2/3">
2327
<h2 className="text-display-xs font-semibold">Learn More about Secrets</h2>
2428
<p className="mt-2 text-text-lg text-theme-text-secondary">
2529
Learn about using ZenML Secrets for a secure, centralized management of your pipeline
2630
secrets and configurations.
2731
</p>
32+
<VideoModal videoLink={videoLink} buttonText="Watch the Starter Guide (1 min)" />
33+
</div>
34+
<div className="flex w-full items-center justify-center bg-primary-50 lg:w-1/3">
35+
<VideoModal
36+
fallbackImage={
37+
<img
38+
src={SecretsVideo}
39+
alt="Purple squares with text indicating a starter guide for secrets"
40+
className="h-full w-full"
41+
/>
42+
}
43+
videoLink={videoLink}
44+
isButton={false}
45+
/>
2846
</div>
2947
</Box>
3048
);

src/app/stacks/Fragments.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export function HeaderBox() {
3434
Get started with ZenML Stacks and Stack Components in this starter guide video. Set up
3535
Your Stack from local to cloud.
3636
</p>
37-
<VideoModal videoLink={videoLink} buttonText="Watch the Starter Guide (5 min)" />
37+
<VideoModal videoLink={videoLink} buttonText="Watch the Starter Guide (2 min)" />
3838
</div>
3939
<div className="flex w-full items-center justify-center bg-primary-50 lg:w-1/3">
4040
<VideoModal

0 commit comments

Comments
 (0)