Skip to content

Commit

Permalink
feat: updated hero section and header nav content and styles
Browse files Browse the repository at this point in the history
  • Loading branch information
kelvink96 committed Dec 8, 2023
1 parent f0c7885 commit e541e80
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 16 deletions.
5 changes: 5 additions & 0 deletions .changeset/cold-hornets-decide.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'mantine-analytics-dashboard': patch
---

feat: updated hero section and header nav content and styles
14 changes: 8 additions & 6 deletions app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,13 @@ import {
useMantineTheme,
} from '@mantine/core';
import Link from 'next/link';
import { PATH_APPS, PATH_DASHBOARD, PATH_DOCS } from '@/routes';
import { PATH_APPS, PATH_DASHBOARD, PATH_DOCS, PATH_GITHUB } from '@/routes';
import {
IconAdjustmentsHorizontal,
IconApps,
IconArrowRight,
IconBook,
IconBrandGithub,
IconBrandMantine,
IconBrandTabler,
IconColorSwatch,
Expand All @@ -46,6 +47,7 @@ import {
IconLayoutBoard,
IconLayoutGrid,
IconPaint,
IconPlayerPlay,
IconScaleOutline,
IconSettingsCog,
} from '@tabler/icons-react';
Expand Down Expand Up @@ -297,19 +299,19 @@ export default function Home() {
component={Link}
href={PATH_DASHBOARD.default}
size="md"
rightSection={<IconArrowRight />}
leftSection={<IconPlayerPlay size={18} />}
>
Live Preview
</Button>
<Button
size="md"
component="a"
href={PATH_DOCS.root}
href={PATH_GITHUB.repo}
target="_blank"
variant="outline"
color="white"
variant="white"
leftSection={<IconBrandGithub size={18} />}
>
Read Documentation
Give us a star
</Button>
</Group>
<Stack>
Expand Down
25 changes: 15 additions & 10 deletions layout/Guest/HeaderNav/HeaderNav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,12 @@ const HeaderNav = () => {
component="a"
target="_blank"
href={PATH_GITHUB.repo}
variant="default"
variant="transparent"
c="white"
leftSection={<IconBrandGithub size={16} />}
className={classes.link}
>
Star this project
Give us a star
</Button>
<Button
component={Link}
Expand Down Expand Up @@ -102,14 +104,17 @@ const HeaderNav = () => {
>
<ScrollArea h={`calc(100vh - ${rem(60)})`} mx="-md">
{items}
<iframe
src="https://ghbtns.com/github-btn.html?user=design-sparx&repo=mantine-analytics-dashboard&type=star&count=true&size=large"
frameBorder="0"
scrolling="0"
width="140"
height="30"
title="GitHub"
/>
<Button
component="a"
target="_blank"
href={PATH_GITHUB.repo}
variant="transparent"
c="white"
leftSection={<IconBrandGithub size={16} />}
className={classes.link}
>
Give us a star
</Button>
<Button component={Link} href={PATH_DASHBOARD.default}>
Live Previews
</Button>
Expand Down

0 comments on commit e541e80

Please sign in to comment.