Skip to content

Commit a1fce2f

Browse files
feat: add codespaces box (#661)
1 parent 7b7be2b commit a1fce2f

File tree

2 files changed

+35
-2
lines changed

2 files changed

+35
-2
lines changed

src/app/page.tsx

Lines changed: 35 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import CloudSquares from "@/assets/illustrations/cloud-squares.svg";
2-
import { Box } from "@zenml-io/react-component-library";
2+
import { Badge, Box, Button } from "@zenml-io/react-component-library";
33
import { Codesnippet } from "../components/CodeSnippet";
4+
import External from "@/assets/icons/link-external.svg?react";
5+
import Codespaces from "@/assets/images/codespaces.gif";
46
import { OverviewHeader } from "./Header";
57
import { Link } from "react-router-dom";
68
import { routes } from "@/router/routes";
@@ -9,8 +11,9 @@ export default function IndexPage() {
911
return (
1012
<div>
1113
<OverviewHeader />
12-
<div className="layout-container py-5">
14+
<div className="layout-container space-y-5 py-5">
1315
<OverviewContent />
16+
<VsCodeBox />
1417
</div>
1518
</div>
1619
);
@@ -53,3 +56,33 @@ function OverviewContent() {
5356
</Box>
5457
);
5558
}
59+
60+
function VsCodeBox() {
61+
return (
62+
<Box className="flex flex-col-reverse items-center overflow-hidden md:max-h-[200px] md:flex-row">
63+
<div className="w-full space-y-3 px-7 py-5 xl:w-4/5">
64+
<div className="flex items-center space-x-1">
65+
<Badge className="text-text-xs font-semibold" color="green">
66+
NEW
67+
</Badge>
68+
<h2 className="text-text-xl font-semibold">VS Code Quickstart with ZenML</h2>
69+
</div>
70+
<p className="text-theme-text-secondary">
71+
Get started quickly with ZenML using GitHub Codespaces!
72+
<br />
73+
You can run our quickstart guide in a pre-configured environment.
74+
</p>
75+
<Button size="sm" className="w-fit" emphasis="subtle" asChild>
76+
<a target="_blank" rel="noopener noreferrer" href="https://github.com/zenml-io/zenml">
77+
Visit our GitHub repo <External className="h-5 w-5" />
78+
</a>
79+
</Button>
80+
</div>
81+
<img
82+
className="object-contain"
83+
src={Codespaces}
84+
alt="Gif explaining how to setup codespaces"
85+
/>
86+
</Box>
87+
);
88+
}

src/assets/images/codespaces.gif

349 KB
Loading

0 commit comments

Comments
 (0)