diff --git a/site/pages/blank.mdx b/site/pages/blank.mdx new file mode 100644 index 00000000..ae9df737 --- /dev/null +++ b/site/pages/blank.mdx @@ -0,0 +1,8 @@ +--- +outline: false +# sidebar: false +--- + +# Blank page + +This is a blank page. \ No newline at end of file diff --git a/src/app/components/DesktopTopNav.css.ts b/src/app/components/DesktopTopNav.css.ts index a3fca8da..56554a91 100644 --- a/src/app/components/DesktopTopNav.css.ts +++ b/src/app/components/DesktopTopNav.css.ts @@ -1,7 +1,9 @@ import { style } from '@vanilla-extract/css' +import { leftGutterWidthVar } from '../layouts/DocsLayout.css.js' import { borderRadiusVars, primitiveColorVars, + sidebarVars, spaceVars, topNavVars, viewportVars, @@ -69,6 +71,27 @@ export const icon = style( export const item = style({ alignItems: 'center', display: 'flex', height: '100%' }, 'item') +export const logo = style( + { + paddingLeft: sidebarVars.horizontalPadding, + paddingRight: sidebarVars.horizontalPadding, + width: sidebarVars.width, + }, + 'logo', +) + +export const logoWrapper = style( + { + display: 'flex', + height: '100%', + justifyContent: 'flex-end', + left: 0, + position: 'absolute', + width: leftGutterWidthVar, + }, + 'logoWrapper', +) + export const section = style( { alignItems: 'center', display: 'flex', height: '100%', gap: spaceVars[16] }, 'section', diff --git a/src/app/components/DesktopTopNav.tsx b/src/app/components/DesktopTopNav.tsx index f9c0517c..1c6ed92e 100644 --- a/src/app/components/DesktopTopNav.tsx +++ b/src/app/components/DesktopTopNav.tsx @@ -6,6 +6,7 @@ import { useTheme } from '../hooks/useTheme.js' import { visibleDark, visibleLight } from '../styles/utils.css.js' import * as styles from './DesktopTopNav.css.js' import { Icon } from './Icon.js' +import { Logo } from './Logo.js' import { Discord } from './icons/Discord.js' import { GitHub } from './icons/GitHub.js' import { Moon } from './icons/Moon.js' @@ -18,6 +19,11 @@ export function DesktopTopNav() { const config = useConfig() return (