Skip to content

Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.

feat: Cleaner dashboard look and an intro video (#2843)

Oleg Isonendb06821491f6
diff --git a/apps/builder/app/dashboard/projects/empty-state.tsx b/apps/builder/app/dashboard/projects/empty-state.tsx
index 3e69da0ab8..ca677b8416 100644
--- a/apps/builder/app/dashboard/projects/empty-state.tsx
+++ b/apps/builder/app/dashboard/projects/empty-state.tsx
@@ -1,30 +1,58 @@
-import { css, Flex, Text, theme } from "@webstudio-is/design-system";
-import type { ComponentProps } from "react";
+import {
+ Button,
+ css,
+ Dialog,
+ DialogContent,
+ DialogTrigger,
+ Flex,
+ Text,
+ theme,
+} from "@webstudio-is/design-system";
+import { Youtube1cIcon } from "@webstudio-is/icons";
const containerStyle = css({
- background: "linear-gradient(180deg, #E63CFE 0%, #FFAE3C 100%)",
- color: theme.colors.foregroundContrastMain,
borderRadius: theme.borderRadius[4],
height: theme.spacing[29],
minWidth: 600,
});
-const EmptyStateContainer = (props: ComponentProps<typeof Flex>) => (
+const contentStyle = css({
+ maxWidth: "none",
+ width: "80vw",
+ aspectRatio: "16/9",
+});
+
+const iframeStyle = css({
+ width: "100%",
+ height: "100%",
+ border: 0,
+});
+
+export const EmptyState = () => (
<Flex
align="center"
justify="center"
direction="column"
- gap="2"
+ gap="6"
className={containerStyle()}
- {...props}
- />
-);
-
-export const EmptyState = () => (
- <EmptyStateContainer>
- <Text variant="brandLargeTitle" as="h1">
+ >
+ <Text variant="brandMediumTitle" as="h1">
What will you create?
</Text>
- <Text variant="brandRegular">Start your first project today!</Text>
- </EmptyStateContainer>
+ <Dialog>
+ <DialogTrigger asChild>
+ <Button color="gradient" prefix={<Youtube1cIcon size={16} />}>
+ Watch The Intro
+ </Button>
+ </DialogTrigger>
+ <DialogContent className={contentStyle()}>
+ <iframe
+ className={iframeStyle()}
+ src="https://www.youtube-nocookie.com/embed/aL2sBSb3ghg?si=siExeIRt-YI_ypuA&autoplay=true"
+ allowFullScreen
+ allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
+ />
+ </DialogContent>
+ </Dialog>
+ </Flex>
);
diff --git a/apps/builder/app/dashboard/projects/projects.tsx b/apps/builder/app/dashboard/projects/projects.tsx
index 4e72b8e1d0..bb6e8dd65d 100644
--- a/apps/builder/app/dashboard/projects/projects.tsx
+++ b/apps/builder/app/dashboard/projects/projects.tsx
@@ -31,11 +31,8 @@ export const Projects = ({
<Flex gap="2">
<HelpPopover open={isOpen} onOpenChange={setIsOpen} side="bottom">
<HelpPopover.Trigger asChild>
- <Button
- color="gradient"
- prefix={<HelpIcon size={16} color="#fff" />}
- >
- Learn Webstudio or ask for help
+ <Button color="neutral" prefix={<HelpIcon size={16} />}>
+ Learn More
</Button>
</HelpPopover.Trigger>
</HelpPopover>