Styling of home

This commit is contained in:
Sebastian Seedorf
2022-08-22 17:04:39 +02:00
parent 537a18fb88
commit d964748a66
55 changed files with 1791 additions and 341 deletions

View File

@@ -0,0 +1,3 @@
.subtitle {
margin-block-start: -2em;
}

View File

@@ -0,0 +1,23 @@
import { FC, PropsWithChildren } from 'react'
import cx from 'classnames'
import typography from '../../../styles/typography.module.css'
import styles from './Paragraph.module.css'
interface Props {
size: 'large' | 'medium' | 'small' | 'subtitle'
}
export const Paragraph: FC<PropsWithChildren<Props>> = ({ size, children }) => {
return (
<p
className={cx({
[typography.bodyLarge]: size === 'large',
[typography.bodyMedium]: size === 'medium',
[typography.bodySmall]: size === 'small' || size === 'subtitle',
[styles.subtitle]: size === 'subtitle'
})}
>
{children}
</p>
)
}