From 9e0ad448c28a91255e95c8348707d546fb370b1d Mon Sep 17 00:00:00 2001 From: Ashhhleyyy Date: Wed, 27 Jul 2022 21:56:32 +0100 Subject: [PATCH] feat: footer + about page --- components/Banner.tsx | 12 +++++-- components/Button.tsx | 12 ++----- components/Footer.tsx | 19 ++++++++++ pages/_app.tsx | 10 ++++-- pages/about.tsx | 43 +++++++++++++++++++++++ pages/comic/[comic]/transcribe/[page].tsx | 36 +++---------------- styles/globals.css | 7 ++++ 7 files changed, 93 insertions(+), 46 deletions(-) create mode 100644 components/Footer.tsx create mode 100644 pages/about.tsx diff --git a/components/Banner.tsx b/components/Banner.tsx index 8200978..57de650 100644 --- a/components/Banner.tsx +++ b/components/Banner.tsx @@ -1,12 +1,20 @@ import { ReactNode } from 'react'; +type Style = 'error' | 'warning' | 'info'; + interface Props { children: ReactNode; - style: 'error' | 'info'; + style: Style; } +const COLOUR_MAP: { [P in Style]: string } = { + info: 'bg-blue-400 border-blue-600', + error: 'bg-red-900 border-red-700', + warning: 'bg-orange-900 border-orange-700', +}; + export default function Banner(props: Props) { - return
+ return
{props.children}
} diff --git a/components/Button.tsx b/components/Button.tsx index 72589e2..9d03c93 100644 --- a/components/Button.tsx +++ b/components/Button.tsx @@ -39,18 +39,12 @@ export default function Button({ return