Skip to content

Commit

Permalink
feat: update documentation navbar
Browse files Browse the repository at this point in the history
  • Loading branch information
Valerioageno committed Aug 14, 2024
1 parent cc91556 commit 5abff03
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 16 deletions.
26 changes: 14 additions & 12 deletions apps/documentation/src/components/navbar/actions.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Flex, Button, ActionIcon } from '@mantine/core'
import { Flex, Button, ActionIcon, Group } from '@mantine/core'
import { IconBrandGithub, IconBook } from '@tabler/icons-react'
import ThemeBtn from '../theme-btn'
import { Link } from 'tuono'
Expand All @@ -15,17 +15,19 @@ export default function Actions(): JSX.Element {
>
Get started
</Button>
<ActionIcon
variant="default"
size="lg"
aria-label="Check the project on github"
href="https://github.com/Valerioageno/tuono"
target="_blank"
component="a"
>
<IconBrandGithub />
</ActionIcon>
<ThemeBtn />
<Group gap={8} visibleFrom="sm">
<ActionIcon
variant="default"
size="lg"
aria-label="Check the project on github"
href="https://github.com/Valerioageno/tuono"
target="_blank"
component="a"
>
<IconBrandGithub />
</ActionIcon>
<ThemeBtn />
</Group>
</Flex>
)
}
8 changes: 4 additions & 4 deletions apps/documentation/src/components/navbar/navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@ export default function Navbar({ opened, toggle }: NavbarProps): JSX.Element {
return (
<AppShell.Header p="sm">
<Flex justify="space-between">
<Button component={Link} href="/" variant="transparent" p={0} fz={28}>
Tuono
</Button>
<Flex align="center" gap={8}>
<Actions />
{pathname.startsWith('/documentation') && (
<Burger
opened={opened}
Expand All @@ -21,11 +25,7 @@ export default function Navbar({ opened, toggle }: NavbarProps): JSX.Element {
size="sm"
/>
)}
<Button component={Link} href="/" variant="transparent" p={0} fz={28}>
Tuono
</Button>
</Flex>
<Actions />
</Flex>
</AppShell.Header>
)
Expand Down

0 comments on commit 5abff03

Please sign in to comment.