mirror of
https://github.com/remvze/moodist.git
synced 2026-03-10 22:13:15 +08:00
feat: add hero section
This commit is contained in:
5
src/components/container/container.module.css
Normal file
5
src/components/container/container.module.css
Normal file
@@ -0,0 +1,5 @@
|
||||
.container {
|
||||
width: 85%;
|
||||
max-width: 550px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
9
src/components/container/container.tsx
Normal file
9
src/components/container/container.tsx
Normal file
@@ -0,0 +1,9 @@
|
||||
import styles from './container.module.css';
|
||||
|
||||
interface ContainerProps {
|
||||
children: React.ReactNode;
|
||||
}
|
||||
|
||||
export function Container({ children }: ContainerProps) {
|
||||
return <div className={styles.container}>{children}</div>;
|
||||
}
|
||||
1
src/components/container/index.ts
Normal file
1
src/components/container/index.ts
Normal file
@@ -0,0 +1 @@
|
||||
export { Container } from './container';
|
||||
Reference in New Issue
Block a user