Skip to content

Commit f0bc73b

Browse files
authored
feat: Onboard video in dashboard (#5725)
1 parent c0d2ebf commit f0bc73b

3 files changed

Lines changed: 17 additions & 71 deletions

File tree

apps/builder/app/dashboard/dashboard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ export const Dashboard = () => {
337337
/>
338338
<Flex
339339
align="center"
340-
gap="3"
340+
gap="2"
341341
css={{
342342
paddingInline: theme.panel.paddingInline,
343343
paddingBlock: theme.spacing[5],

apps/builder/app/dashboard/welcome/welcome.tsx

Lines changed: 10 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -1,55 +1,9 @@
11
import { Flex, Text, Link, buttonStyle } from "@webstudio-is/design-system";
2-
import {
3-
YoutubeIcon,
4-
ContentIcon,
5-
DiscordIcon,
6-
XLogoIcon,
7-
BlueskyIcon,
8-
FacebookIcon,
9-
RedditIcon,
10-
} from "@webstudio-is/icons";
112
import { useStore } from "@nanostores/react";
123
import { Main } from "../shared/layout";
134
import { CreateProject } from "../projects/project-dialogs";
145
import { $permissions } from "~/shared/nano-states";
156

16-
const guideItems = [
17-
{
18-
icon: <YoutubeIcon />,
19-
label: "Watch video tutorials",
20-
href: "https://wstd.us/101",
21-
},
22-
{
23-
icon: <ContentIcon />,
24-
label: "Read the docs",
25-
href: "https://docs.webstudio.is/",
26-
},
27-
{
28-
icon: <DiscordIcon />,
29-
label: "Join the community on Discord",
30-
href: "https://wstd.us/community",
31-
},
32-
];
33-
34-
const socialItems = [
35-
{ icon: <XLogoIcon />, label: "X", href: "https://x.com/getwebstudio" },
36-
{
37-
icon: <BlueskyIcon />,
38-
label: "Bluesky",
39-
href: "https://bsky.app/profile/webstudio.is",
40-
},
41-
{
42-
icon: <FacebookIcon />,
43-
label: "Facebook",
44-
href: "https://www.facebook.com/getwebstudio1/",
45-
},
46-
{
47-
icon: <RedditIcon />,
48-
label: "Reddit",
49-
href: "https://www.reddit.com/r/webstudio/",
50-
},
51-
];
52-
537
export const Welcome = ({
548
currentWorkspaceId,
559
}: {
@@ -87,30 +41,16 @@ export const Welcome = ({
8741
)}
8842
</Flex>
8943

90-
<Flex direction="column" gap="2">
91-
{guideItems.map(({ icon, label, href }) => (
92-
<Flex key={href} align="center" gap="2">
93-
{icon}
94-
<Link href={href} target="_blank" color="subtle">
95-
{label}
96-
</Link>
97-
</Flex>
98-
))}
99-
<Flex align="center" gap="2">
100-
<Text color="subtle">Follow for updates on:</Text>
101-
{socialItems.map(({ icon, label, href }) => (
102-
<Link
103-
key={href}
104-
href={href}
105-
target="_blank"
106-
color="subtle"
107-
aria-label={label}
108-
>
109-
{icon}
110-
</Link>
111-
))}
112-
</Flex>
113-
</Flex>
44+
<iframe
45+
width="560"
46+
height="315"
47+
src="https://www.youtube-nocookie.com/embed/W43QpuT3fW0?si=eGE-OU8emtIxzKPn"
48+
title="YouTube video player"
49+
frameBorder="0"
50+
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
51+
referrerPolicy="strict-origin-when-cross-origin"
52+
allowFullScreen
53+
></iframe>
11454
</Flex>
11555
</Main>
11656
);

apps/builder/app/shared/help.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import {
55
XLogoIcon,
66
BlueskyIcon,
77
FacebookIcon,
8+
LinkedinIcon,
89
RedditIcon,
910
} from "@webstudio-is/icons";
1011

@@ -20,6 +21,11 @@ export const socialLinks = [
2021
url: "https://www.facebook.com/webstudiois",
2122
icon: <FacebookIcon />,
2223
},
24+
{
25+
label: "LinkedIn",
26+
url: "https://www.linkedin.com/company/getwebstudio/",
27+
icon: <LinkedinIcon />,
28+
},
2329
{
2430
label: "Reddit",
2531
url: "https://www.reddit.com/r/webstudio/",

0 commit comments

Comments
 (0)