Skip to content

Commit

Permalink
landing page hero section
Browse files Browse the repository at this point in the history
  • Loading branch information
azide0x37 committed Apr 16, 2022
1 parent d41b724 commit 5d6609b
Show file tree
Hide file tree
Showing 7 changed files with 2,882 additions and 38 deletions.
36 changes: 19 additions & 17 deletions components/HeroTitle/HeroTitle.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import React from 'react';
import { createStyles, Container, Text, Button, Group, useMantineTheme } from '@mantine/core';

import Link from 'next/link'

const BREAKPOINT = '@media (max-width: 755px)';

const useStyles = createStyles((theme) => ({
Expand Down Expand Up @@ -72,9 +74,8 @@ const useStyles = createStyles((theme) => ({
backgroundColor: theme.colorScheme === 'dark' ? theme.colors.dark[5] : 'transparent',

'&:hover': {
backgroundColor: `${
theme.colorScheme === 'dark' ? theme.colors.dark[6] : theme.colors.gray[0]
} !important`,
backgroundColor: `${theme.colorScheme === 'dark' ? theme.colors.dark[6] : theme.colors.gray[0]
} !important`,
},
},
}));
Expand All @@ -91,27 +92,28 @@ export function HeroTitle() {
<Text component="span" variant="gradient" gradient={{ from: 'blue', to: 'cyan' }} inherit>
fully featured
</Text>{' '}
React components and hooks library
game night planner and player scheduler
</h1>

<Text className={classes.description} color="dimmed">
Build fully functional accessible web applications with ease – Mantine includes more than
100 customizable components and hooks to cover you in any situation
Organize and schedule your gaming sessions on your schedule. Thursday includes every feature you need for game nights to go off without a hitch!
</Text>

<Group className={classes.controls}>
<Button
size="xl"
className={classes.control}
variant="gradient"
gradient={{ from: 'blue', to: 'cyan' }}
>
Get started
</Button>
<Link href="/app">
<Button
size="xl"
className={classes.control}
variant="gradient"
gradient={{ from: 'blue', to: 'cyan' }}
>
Get started
</Button>
</Link>

<Button
component="a"
href="https://github.com/mantinedev/mantine"
href="https://github.com/azide0x37/thursday"
size="xl"
variant="outline"
className={cx(classes.control, classes.githubControl)}
Expand All @@ -120,7 +122,7 @@ export function HeroTitle() {
GitHub
</Button>
</Group>
</Container>
</div>
</Container >
</div >
);
}
22 changes: 3 additions & 19 deletions pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import {
Button
} from '@mantine/core';

import { HeroTitle } from '../components/HeroTitle/HeroTitle'

import { FooterLinks } from '../components/FooterLinks/FooterLinks'

Expand Down Expand Up @@ -51,25 +52,8 @@ export default function AppShellDemo() {
const theme = useMantineTheme();

return (
<AppShell
fixed
padding={"md"}
styles={{
main: {
background: theme.colorScheme === 'dark' ? theme.colors.dark[8] : theme.colors.gray[0],
},
}}
header={
<Header fixed height={60} >
<Link href="/app"><Button>Login Now</Button></Link>
</Header>
}
footer={
<FooterLinks {...footer_links} />
}
>
<Container size="xl" px="xs" py="xs">
</Container>
<AppShell>
<HeroTitle />
</AppShell >
);
}
115 changes: 114 additions & 1 deletion public/sw.js

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

1 change: 1 addition & 0 deletions public/sw.js.map

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

1 change: 0 additions & 1 deletion public/workbox-6316bd60.js

This file was deleted.

Loading

0 comments on commit 5d6609b

Please sign in to comment.