aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/landing/Section.tsx
blob: f44272db67ca7f7d0aa6e46b76f113adb3d4de48 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/*
 * SPDX-FileCopyrightText: 2023 Kristóf Marussy
 *
 * SPDX-License-Identifier: MIT
 */

import type { ReactNode } from 'react';

import styles from './Section.module.css';

export default function Section({
  title,
  children,
}: {
  title: string;
  children?: ReactNode;
}) {
  return (
    <section className={styles.section}>
      <h2 className={styles.section__title}>{title}</h2>
      {children}
    </section>
  );
}