Migrate to Next

This commit is contained in:
2022-11-11 22:41:53 +00:00
parent 58e38dbedd
commit 4aaad4d704
352 changed files with 15583 additions and 21335 deletions

30
components/Header.js Normal file
View File

@@ -0,0 +1,30 @@
import React from "react";
import Image from "next/image";
import classnames from "classnames";
import { Heading } from ".";
import styles from "./Header.module.css";
export default function Header({
image,
title,
light,
map,
position,
children,
}) {
return (
<div className={styles.block}>
{image && <Image src={image} layout="fill" objectFit="cover" />}
{map && <div className={styles.map}>{map}</div>}
<div
className={classnames(styles.content, {
[styles.br]: position === "br",
[styles.light]: light,
})}
>
{title && <Heading size="xxl">{title}</Heading>}
{!title && children}
</div>
</div>
);
}