Skip to content

Commit e541e80

Browse files
committed
feat: updated hero section and header nav content and styles
1 parent f0c7885 commit e541e80

File tree

3 files changed

+28
-16
lines changed

3 files changed

+28
-16
lines changed

.changeset/cold-hornets-decide.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'mantine-analytics-dashboard': patch
3+
---
4+
5+
feat: updated hero section and header nav content and styles

app/page.tsx

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,13 @@ import {
2828
useMantineTheme,
2929
} from '@mantine/core';
3030
import Link from 'next/link';
31-
import { PATH_APPS, PATH_DASHBOARD, PATH_DOCS } from '@/routes';
31+
import { PATH_APPS, PATH_DASHBOARD, PATH_DOCS, PATH_GITHUB } from '@/routes';
3232
import {
3333
IconAdjustmentsHorizontal,
3434
IconApps,
3535
IconArrowRight,
3636
IconBook,
37+
IconBrandGithub,
3738
IconBrandMantine,
3839
IconBrandTabler,
3940
IconColorSwatch,
@@ -46,6 +47,7 @@ import {
4647
IconLayoutBoard,
4748
IconLayoutGrid,
4849
IconPaint,
50+
IconPlayerPlay,
4951
IconScaleOutline,
5052
IconSettingsCog,
5153
} from '@tabler/icons-react';
@@ -297,19 +299,19 @@ export default function Home() {
297299
component={Link}
298300
href={PATH_DASHBOARD.default}
299301
size="md"
300-
rightSection={<IconArrowRight />}
302+
leftSection={<IconPlayerPlay size={18} />}
301303
>
302304
Live Preview
303305
</Button>
304306
<Button
305307
size="md"
306308
component="a"
307-
href={PATH_DOCS.root}
309+
href={PATH_GITHUB.repo}
308310
target="_blank"
309-
variant="outline"
310-
color="white"
311+
variant="white"
312+
leftSection={<IconBrandGithub size={18} />}
311313
>
312-
Read Documentation
314+
Give us a star
313315
</Button>
314316
</Group>
315317
<Stack>

layout/Guest/HeaderNav/HeaderNav.tsx

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,12 @@ const HeaderNav = () => {
6767
component="a"
6868
target="_blank"
6969
href={PATH_GITHUB.repo}
70-
variant="default"
70+
variant="transparent"
71+
c="white"
7172
leftSection={<IconBrandGithub size={16} />}
73+
className={classes.link}
7274
>
73-
Star this project
75+
Give us a star
7476
</Button>
7577
<Button
7678
component={Link}
@@ -102,14 +104,17 @@ const HeaderNav = () => {
102104
>
103105
<ScrollArea h={`calc(100vh - ${rem(60)})`} mx="-md">
104106
{items}
105-
<iframe
106-
src="https://ghbtns.com/github-btn.html?user=design-sparx&repo=mantine-analytics-dashboard&type=star&count=true&size=large"
107-
frameBorder="0"
108-
scrolling="0"
109-
width="140"
110-
height="30"
111-
title="GitHub"
112-
/>
107+
<Button
108+
component="a"
109+
target="_blank"
110+
href={PATH_GITHUB.repo}
111+
variant="transparent"
112+
c="white"
113+
leftSection={<IconBrandGithub size={16} />}
114+
className={classes.link}
115+
>
116+
Give us a star
117+
</Button>
113118
<Button component={Link} href={PATH_DASHBOARD.default}>
114119
Live Previews
115120
</Button>

0 commit comments

Comments
 (0)