fix(SW-190): moved Intro component to components folder and removed 'duplicate'

This commit is contained in:
Erik Tiekstra
2024-08-15 13:04:47 +02:00
parent 33460d8e87
commit 4f2bd0c2d6
6 changed files with 2 additions and 34 deletions

View File

@@ -0,0 +1,20 @@
import { PropsWithChildren } from "react"
import MaxWidth from "@/components/MaxWidth"
import styles from "./intro.module.css"
export default async function Intro({ children }: PropsWithChildren) {
return (
<MaxWidth variant="content" tag="div">
<MaxWidth
className={styles.content}
variant="text"
align="left"
tag="div"
>
{children}
</MaxWidth>
</MaxWidth>
)
}

View File

@@ -0,0 +1,10 @@
.content {
display: grid;
gap: var(--Spacing-x2);
}
@media (min-width: 768px) {
.content {
gap: var(--Spacing-x3);
}
}