feat: finish my pages overview page according to wireframe

This commit is contained in:
Simon Emanuelsson
2024-04-02 10:26:12 +02:00
parent d902a5a704
commit 8c8fa2d02c
48 changed files with 1161 additions and 91 deletions

View File

@@ -28,13 +28,15 @@ const headingStyles = cva(styles.heading, config)
export default function Title({
as,
children,
className = "",
level = "h1",
uppercase = false,
}: HeadingProps) {
const Hx = level
const className = headingStyles({
const classNames = headingStyles({
className,
text: uppercase ? "uppercase" : undefined,
type: as ?? level,
})
return <Hx className={className}>{children}</Hx>
return <Hx className={classNames}>{children}</Hx>
}