refactor: Create shared components and global styles for improved code organization

This commit is contained in:
2025-02-23 00:38:48 -06:00
parent bd8b7c4fd8
commit c200bff8d0
7 changed files with 182 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
import styles from './Section.module.css';
type SectionProps = {
children: React.ReactNode;
background?: 'default' | 'dark';
className?: string;
};
export function Section({ children, background = 'default', className = '' }: SectionProps) {
return (
<div className={`${styles.section} ${styles[background]} ${className}`}>
{children}
</div>
);
}