diff --git a/frontend/src/layout/navigation-3000/sidepanel/panels/SidePanelWelcome.scss b/frontend/src/layout/navigation-3000/sidepanel/panels/SidePanelWelcome.scss index 34b641dbc3625a..6010d7179b0ee3 100644 --- a/frontend/src/layout/navigation-3000/sidepanel/panels/SidePanelWelcome.scss +++ b/frontend/src/layout/navigation-3000/sidepanel/panels/SidePanelWelcome.scss @@ -1,5 +1,4 @@ .welcome-card { - // background: var(--primary-alt-highlight-3000); background: var(--primary-alt-highlight-3000); body[theme='dark'] & { diff --git a/frontend/src/layout/navigation-3000/sidepanel/panels/SidePanelWelcome.tsx b/frontend/src/layout/navigation-3000/sidepanel/panels/SidePanelWelcome.tsx index cd785399be3417..db5ead2d008072 100644 --- a/frontend/src/layout/navigation-3000/sidepanel/panels/SidePanelWelcome.tsx +++ b/frontend/src/layout/navigation-3000/sidepanel/panels/SidePanelWelcome.tsx @@ -2,6 +2,7 @@ import './SidePanelWelcome.scss' import { IconArrowLeft, IconEllipsis, IconExternal, IconX } from '@posthog/icons' import { LemonButton } from '@posthog/lemon-ui' +import clsx from 'clsx' import { useActions, useValues } from 'kea' import posthog from 'posthog-js' import featureCommandPalette from 'public/3000/3000-command-palette.png' @@ -18,10 +19,12 @@ import featureSidePanelDark from 'public/3000/3000-side-panel-dark.png' import featureToolbar from 'public/3000/3000-toolbar.png' import { useEffect } from 'react' +import { themeLogic } from '~/layout/navigation-3000/themeLogic' + import { KeyboardShortcut } from '../../components/KeyboardShortcut' import { sidePanelStateLogic } from '../sidePanelStateLogic' -const blogPostUrl = 'https://posthog.com/blog/why-redesign' +const BLOG_POST_URL = 'https://posthog.com/blog/posthog-as-a-dev-tool' type RowProps = { className?: string @@ -29,26 +32,19 @@ type RowProps = { children: React.ReactNode } -const Row = ({ className, columns, children }: RowProps): JSX.Element => ( -
+const WelcomeRow = ({ className, columns, children }: RowProps): JSX.Element => ( +
{children}
) type CardProps = { - width?: string children: React.ReactNode className?: string } -const Card = ({ width, children, className }: CardProps): JSX.Element => ( -
- {children} -
+const WelcomeCard = ({ children, className }: CardProps): JSX.Element => ( +
{children}
) const Title = ({ children }: { children: React.ReactNode }): JSX.Element => ( @@ -58,8 +54,6 @@ const Description = ({ children }: { children: React.ReactNode }): JSX.Element =

{children}

) -import { themeLogic } from '~/layout/navigation-3000/themeLogic' - export const SidePanelWelcome = (): JSX.Element => { const { closeSidePanel } = useActions(sidePanelStateLogic) const { isDarkModeOn } = useValues(themeLogic) @@ -84,8 +78,7 @@ export const SidePanelWelcome = (): JSX.Element => {
@@ -97,26 +90,26 @@ export const SidePanelWelcome = (): JSX.Element => {
PostHog 3000

- We're past 0 to 1. In this new version of PostHog, we're going from 1 to 3000. (And this is just the - beginning...) + We're past zero to one. +
+ In this new version of PostHog, we're going from one… to 3000. +
+ And this is just the beginning.

-
- - Read the blog post - - -
- - - + } + className="mb-5" + > + Read the blog post + + + + Dark mode - Toggle between light, dark, or sync with your system + Toggle between light and dark. Synced with your system by default.
{ style={{ borderTopLeftRadius: '0.25rem' }} />
-
-
+ + - - + + Updated nav Products are now split out from project & data.
@@ -140,8 +133,8 @@ export const SidePanelWelcome = (): JSX.Element => { style={{ borderTopLeftRadius: '0.25rem' }} />
-
- + + Notebooks Analyze data from different angles and share results with your team - all in a single @@ -155,16 +148,19 @@ export const SidePanelWelcome = (): JSX.Element => { style={{ borderTopLeftRadius: '0.25rem' }} />
- - + + - - + +
Side panel - It’s this multipurpose thing you’re looking at right now! - Access docs, notebooks, contact support, and more. + + It's this multipurpose thing you're looking at right now! +
+ Create notebook, read docs, contact support, and more. +
{ />
-
-
+ + - - + + Improved search - Search for anything with + Search for anything with .
{ style={{ borderTopLeftRadius: '0.25rem' }} />
-
- + +
Command palette - Navigate faster with + Navigate faster with .
@@ -208,31 +204,31 @@ export const SidePanelWelcome = (): JSX.Element => { style={{ borderTopLeftRadius: '0.25rem' }} />
-
-
+ + - - + + Toolbar - Same functionality, but easier to look at. And we finally put the bar in toolbar. - Also dark mode. + Dark mode on. Same functionality, but easier to use – we finally put the "bar" in + "toolbar".
Toolbar
-
-
+ + -
- -

+

+ + Pro tip: Access this panel again from the{' '} - - + + {' '} menu -

+