-
-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
208 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
outline: false | ||
# sidebar: false | ||
--- | ||
|
||
# Blank page | ||
|
||
This is a blank page. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import { globalStyle, style } from '@vanilla-extract/css' | ||
import { fontSizeVars, fontWeightVars, lineHeightVars } from '../styles/vars.css.js' | ||
|
||
export const logoImage = style( | ||
{ | ||
height: '30%', | ||
width: 'max-content', | ||
}, | ||
'logoImage', | ||
) | ||
|
||
export const logoDark = style({}, 'logoDark') | ||
globalStyle(`:root:not(.dark) ${logoDark}`, { | ||
display: 'none', | ||
}) | ||
|
||
export const logoLight = style({}, 'logoLight') | ||
globalStyle(`:root.dark ${logoLight}`, { | ||
display: 'none', | ||
}) | ||
|
||
export const title = style( | ||
{ | ||
fontSize: fontSizeVars['18'], | ||
fontWeight: fontWeightVars.semibold, | ||
lineHeight: lineHeightVars.heading, | ||
}, | ||
'title', | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import clsx from 'clsx' | ||
import { Link } from 'react-router-dom' | ||
|
||
import { useConfig } from '../hooks/useConfig.js' | ||
import * as styles from './Logo.css.js' | ||
|
||
export function Logo() { | ||
const config = useConfig() | ||
return ( | ||
<Link to="/" style={{ alignItems: 'center', display: 'flex', height: '100%' }}> | ||
{config.logoUrl ? ( | ||
<> | ||
{typeof config.logoUrl === 'string' ? ( | ||
<img alt="Logo" className={styles.logoImage} src={config.logoUrl} /> | ||
) : ( | ||
<> | ||
<img | ||
alt="Logo" | ||
className={clsx(styles.logoImage, styles.logoDark)} | ||
src={config.logoUrl.dark} | ||
/> | ||
<img | ||
alt="Logo" | ||
className={clsx(styles.logoImage, styles.logoLight)} | ||
src={config.logoUrl.light} | ||
/> | ||
</> | ||
)} | ||
</> | ||
) : ( | ||
<div className={styles.title}>{config.title}</div> | ||
)} | ||
</Link> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.