|
1 | 1 | 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"; |
11 | 2 | import { useStore } from "@nanostores/react"; |
12 | 3 | import { Main } from "../shared/layout"; |
13 | 4 | import { CreateProject } from "../projects/project-dialogs"; |
14 | 5 | import { $permissions } from "~/shared/nano-states"; |
15 | 6 |
|
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 | | - |
53 | 7 | export const Welcome = ({ |
54 | 8 | currentWorkspaceId, |
55 | 9 | }: { |
@@ -87,30 +41,16 @@ export const Welcome = ({ |
87 | 41 | )} |
88 | 42 | </Flex> |
89 | 43 |
|
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> |
114 | 54 | </Flex> |
115 | 55 | </Main> |
116 | 56 | ); |
|
0 commit comments