Skip to content

Commit

Permalink
Restored components directory.
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-bryant committed Apr 11, 2024
1 parent 24edd07 commit ba744c4
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
28 changes: 28 additions & 0 deletions src/components/BigHeader.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import Typography from "@mui/material/Typography";

interface BigHeaderProps {
children: React.ReactNode;
}

export default function BigHeader({ children, ...props }: BigHeaderProps) {
return (
<Typography variant="h1" sx={{
fontSize: {
xs: '4rem',
sm: '6.5rem',
},
textTransform: 'uppercase',
margin: '0 auto',
color: '#000',
width: '100%',
span: {
fontWeight: 'bold',
fontStyle: 'italic',
}
}}
{...props}
>
{children}
</Typography>
);
}
19 changes: 19 additions & 0 deletions src/components/Nav.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import Button from '@mui/material/Button';
import Stack from '@mui/material/Stack';

export default function Nav() {
return (
<Stack direction="row" spacing={2} sx={{
'.MuiButtonBase-root': {
fontSize: {
xs: '1.5rem',
sm: '2rem',
}
}
}}>
<Button size="large" href="/about">Our Story</Button>
<Button size="large" href="/ontap">On Tap</Button>
<Button size="large" href="/contact">Contact</Button>
</Stack>
);
}

0 comments on commit ba744c4

Please sign in to comment.