From 462b2fe10cf45da3dbcb5ee20ca6dfb79f46e6b6 Mon Sep 17 00:00:00 2001 From: Jan Tuomi Date: Thu, 4 Nov 2021 13:34:02 +0200 Subject: Initial commit --- components/Box/Box.module.css | 22 ++++++++++++++++++++++ components/Box/Box.tsx | 18 ++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 components/Box/Box.module.css create mode 100644 components/Box/Box.tsx (limited to 'components/Box') diff --git a/components/Box/Box.module.css b/components/Box/Box.module.css new file mode 100644 index 0000000..f6234ff --- /dev/null +++ b/components/Box/Box.module.css @@ -0,0 +1,22 @@ +.box { + padding: 1rem 1rem; + width: 100%; + color: #333; + background-color: #eee; + display: flex; + flex-flow: row nowrap; + justify-content: space-between; + align-items: center; +} + +.box:hover, +.box:active, +.box:focus { + font-weight: bold; + background-color: #ddd; +} + +.arrow { + font-size: 24px; + line-height: 20px; +} \ No newline at end of file diff --git a/components/Box/Box.tsx b/components/Box/Box.tsx new file mode 100644 index 0000000..8e463e5 --- /dev/null +++ b/components/Box/Box.tsx @@ -0,0 +1,18 @@ +import Link from "next/link"; +import styles from "./Box.module.css"; + +export interface Props { + href: string; + text: string; +} + +const Box = ({ text, href }: Props): JSX.Element => ( + + + {text} + + + +); + +export default Box; -- cgit v1.3