Project setup

This commit is contained in:
Darren Clarke 2022-12-02 10:55:56 +00:00
parent 6c45dec07b
commit 95a21d6f50
29 changed files with 12083 additions and 77 deletions

29
components/Button.tsx Normal file
View file

@ -0,0 +1,29 @@
import { FC } from "react";
import Link from "next/link";
import { Button as MUIButton } from "@mui/material";
interface ButtonProps {
text: string;
color: string;
href: string;
}
export const Button: FC<ButtonProps> = ({ text, color, href }) => (
<Link href={href} passHref>
<MUIButton
variant="contained"
disableElevation
sx={{
fontFamily: "Poppins, sans-serif",
fontWeight: 700,
borderRadius: 999,
backgroundColor: color,
padding: "6px 30px",
margin: "20px 0px",
whiteSpace: "nowrap",
}}
>
{text}
</MUIButton>
</Link>
);