Files
unicord/website/src/components/Section.tsx
T
jaron 969c4a916e refactor: Migrate component styles to page.module.css
This commit updates the components to use styles from page.module.css instead of separate module CSS files, simplifying the styling approach and reducing the number of CSS files in the project.

Key changes:
- Removed separate module CSS files for components
- Updated import statements to use page.module.css
- Adjusted class names to match existing styles in page.module.css
- Maintained component functionality and structure
2025-02-23 00:46:09 -06:00

22 lines
504 B
TypeScript

'use client';
import { ReactNode } from 'react';
import styles from '../app/page.module.css';
type SectionProps = {
children: ReactNode;
background?: 'light' | 'dark';
className?: string;
}
export function Section({ children, background = 'light', className = '' }: SectionProps) {
return (
<div className={[
className,
background === 'dark' ? styles.darkSection : ''
].filter(Boolean).join(' ')}>
{children}
</div>
);
}