diff options
Diffstat (limited to 'src/components/landing/Section.tsx')
-rw-r--r-- | src/components/landing/Section.tsx | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/components/landing/Section.tsx b/src/components/landing/Section.tsx new file mode 100644 index 0000000..f44272d --- /dev/null +++ b/src/components/landing/Section.tsx | |||
@@ -0,0 +1,24 @@ | |||
1 | /* | ||
2 | * SPDX-FileCopyrightText: 2023 Kristóf Marussy | ||
3 | * | ||
4 | * SPDX-License-Identifier: MIT | ||
5 | */ | ||
6 | |||
7 | import type { ReactNode } from 'react'; | ||
8 | |||
9 | import styles from './Section.module.css'; | ||
10 | |||
11 | export default function Section({ | ||
12 | title, | ||
13 | children, | ||
14 | }: { | ||
15 | title: string; | ||
16 | children?: ReactNode; | ||
17 | }) { | ||
18 | return ( | ||
19 | <section className={styles.section}> | ||
20 | <h2 className={styles.section__title}>{title}</h2> | ||
21 | {children} | ||
22 | </section> | ||
23 | ); | ||
24 | } | ||