diff --git a/excalidraw-app/components/AppSidebar.scss b/excalidraw-app/components/AppSidebar.scss index ab3156c2d5..a7d68e8f1c 100644 --- a/excalidraw-app/components/AppSidebar.scss +++ b/excalidraw-app/components/AppSidebar.scss @@ -4,21 +4,32 @@ display: flex; flex-direction: column; text-align: center; - gap: 1rem; + gap: 1.5rem; flex: 1 1 auto; + + .link-button { + margin: 0 auto !important; + width: 100%; + button { + width: 100%; + } + } } .app-sidebar-promo-image { margin: 1rem 0; - height: 16.25rem; + height: 295px; background-size: contain; background-position: center; background-repeat: no-repeat; + background-size: calc( + var(--right-sidebar-width, 100%) - var(--space-factor) * 2 + ); background-image: radial-gradient( circle, - transparent 60%, + transparent 0%, var(--sidebar-bg-color) 100% ), var(--image-source); @@ -33,4 +44,49 @@ .link-button { margin: 0 auto; } + + .app-sidebar-promo-text { + padding: 0 0.5rem; + font-size: 0.875rem; + font-weight: 700; + line-height: 1.4; + } + + .app-sidebar-promo-illustration { + position: relative; + min-height: 7rem; + display: flex; + align-items: flex-start; + justify-content: center; + padding-top: 0.125rem; + + .app-sidebar-promo-heart { + width: 46px; + transform: translateX(-14px); + height: auto; + } + + .app-sidebar-promo-trial-note { + position: absolute; + top: 2.75rem; + left: 50%; + transform: translateX(-56%) rotate(-7deg); + font-size: 1rem; + line-height: 1.15; + color: var(--color-primary); + + white-space: nowrap; + } + + .app-sidebar-promo-trial-arrow { + position: absolute; + top: 3.35rem; + left: 55%; + width: 4.5rem; + height: 3rem; + transform: translateX(1.75rem) rotate(10deg); + color: var(--color-primary); + overflow: visible; + } + } } diff --git a/excalidraw-app/components/AppSidebar.tsx b/excalidraw-app/components/AppSidebar.tsx index 9ecfc4b40c..d2f2a66003 100644 --- a/excalidraw-app/components/AppSidebar.tsx +++ b/excalidraw-app/components/AppSidebar.tsx @@ -8,6 +8,63 @@ import { useUIAppState } from "@excalidraw/excalidraw/context/ui-appState"; import "./AppSidebar.scss"; +type SidebarPromoCopyProps = { + text: string; +}; + +const SidebarPromoCopy = (props: SidebarPromoCopyProps) => { + return ( +
+ +
{props.text}
+
+ ); +}; + export const AppSidebar = () => { const { theme, openSidebar } = useUIAppState(); @@ -32,15 +89,13 @@ export const AppSidebar = () => {
-
- Make comments with Excalidraw+ -
+ {
-
- Create presentations with Excalidraw+ -
+ diff --git a/public/oss_promo_presentations_light.svg b/public/oss_promo_presentations_light.svg deleted file mode 100644 index d9e7c93572..0000000000 --- a/public/oss_promo_presentations_light.svg +++ /dev/null @@ -1 +0,0 @@ - diff --git a/public/sidebar-comments-promo-dark.jpg b/public/sidebar-comments-promo-dark.jpg new file mode 100644 index 0000000000..2182c8190f Binary files /dev/null and b/public/sidebar-comments-promo-dark.jpg differ diff --git a/public/sidebar-comments-promo-light.jpg b/public/sidebar-comments-promo-light.jpg new file mode 100644 index 0000000000..5e319865ec Binary files /dev/null and b/public/sidebar-comments-promo-light.jpg differ diff --git a/public/sidebar-presentation-promo-dark.jpg b/public/sidebar-presentation-promo-dark.jpg new file mode 100644 index 0000000000..e7fc9a6b80 Binary files /dev/null and b/public/sidebar-presentation-promo-dark.jpg differ diff --git a/public/sidebar-presentation-promo-light.jpg b/public/sidebar-presentation-promo-light.jpg new file mode 100644 index 0000000000..4359722dc7 Binary files /dev/null and b/public/sidebar-presentation-promo-light.jpg differ