Skip to content

Commit

Permalink
site: Fix header on load
Browse files Browse the repository at this point in the history
  • Loading branch information
G-Ray committed Sep 24, 2023
1 parent 3d8df05 commit 13dc2e1
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions apps/site/components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,30 +36,30 @@ const LogoWithText = () => {
export const Header = () => {
const media = useMedia()

if (!media.gtXs) {
if (media.gtXs) {
return (
<YStack my="$4" mx="$2">
<XStack ai="center" jc={'space-between'}>
<XStack ai="center">
<LogoWithText />
</XStack>
<XStack jc={'space-between'} ai="center" my="$4" mx="$4">
<XStack ai="center">
<LogoWithText />
</XStack>
<XStack gap="$8">
<Links />
<DarkModeToggle />
</XStack>
<Links />
</YStack>
</XStack>
)
}

return (
<XStack jc={'space-between'} ai="center" my="$4" mx="$4">
<XStack ai="center">
<LogoWithText />
</XStack>
<XStack gap="$8">
<Links />
<YStack my="$4" mx="$2">
<XStack ai="center" jc={'space-between'}>
<XStack ai="center">
<LogoWithText />
</XStack>
<DarkModeToggle />
</XStack>
</XStack>
<Links />
</YStack>
)
}

Expand Down

0 comments on commit 13dc2e1

Please sign in to comment.