Skip to content

Commit

Permalink
header stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
snide committed Jul 28, 2023
1 parent 4023561 commit 4166ee2
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 17 deletions.
20 changes: 12 additions & 8 deletions components/layout/base.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,18 @@ export const BaseLayout: FC<BaseLayoutProps> = ({ children }) => {
<Flex flexDir="column" maxW={1200} margin="auto" minH="100vh">
<Flex justifyContent="space-between" py={8}>
<XataWordMarkIcon />
<Tooltip label={`Change theme to ${isDark ? 'light' : 'dark'}`} openDelay={500}>
<IconButton
aria-label="Change theme"
variant="ghost"
icon={<Icon as={isDark ? WeatherSunny20Filled : WeatherMoon20Filled} boxSize={5} />}
onClick={toggleColorMode}
/>
</Tooltip>
<Flex gap={4} alignItems="center">
<Link href="https://xata.io/docs">Docs</Link>
<Link href="https://xata.io/docs">Examples</Link>
<Tooltip label={`Change theme to ${isDark ? 'light' : 'dark'}`} openDelay={500}>
<IconButton
aria-label="Change theme"
variant="ghost"
icon={<Icon as={isDark ? WeatherSunny20Filled : WeatherMoon20Filled} boxSize={5} />}
onClick={toggleColorMode}
/>
</Tooltip>
</Flex>
</Flex>
<Flex flexDir="column" flex={1}>
{children}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"@fluentui/react-icons": "^2.0.208",
"chroma-js": "^2.4.2",
"next": "13.4.12",
"prettier": "^2.8.8",
"prettier": "^3.0.0",
"react": "18.2.0",
"react-dom": "18.2.0",
"typescript": "5.1.6"
Expand Down
23 changes: 15 additions & 8 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4166ee2

Please sign in to comment.