feature: css module test

This commit is contained in:
yoosangwook 2024-08-02 11:36:43 +09:00
commit 3a9ef49e4c
6 changed files with 45 additions and 3 deletions

View File

@ -3,6 +3,6 @@ const config = {
plugins: {
tailwindcss: {},
},
};
}
export default config;
export default config

View File

@ -0,0 +1,4 @@
.test {
@apply bg-red-500;
@apply text-2xl;
}

View File

@ -10,6 +10,7 @@ export default function changelogPage() {
return (
<>
<Hero title="Change log" />
<div className={styles.test}> 영역은 테스트입니다.</div>
<div>
<Table isStriped>
<TableHeader>

View File

@ -30,10 +30,11 @@ body {
.text-balance {
text-wrap: balance;
}
} */
}
.archivo-black-regular {
font-family: 'Archivo Black', sans-serif;
font-weight: 400;
font-style: normal;
}
*/

View File

@ -0,0 +1,33 @@
import { Select, SelectItem } from '@nextui-org/react'
import styles from './QSelect.module.css'
const animals = [
{ key: 'cat', label: 'Cat' },
{ key: 'dog', label: 'Dog' },
{ key: 'elephant', label: 'Elephant' },
{ key: 'lion', label: 'Lion' },
{ key: 'tiger', label: 'Tiger' },
{ key: 'giraffe', label: 'Giraffe' },
{ key: 'dolphin', label: 'Dolphin' },
{ key: 'penguin', label: 'Penguin' },
{ key: 'zebra', label: 'Zebra' },
{ key: 'shark', label: 'Shark' },
{ key: 'whale', label: 'Whale' },
{ key: 'otter', label: 'Otter' },
{ key: 'crocodile', label: 'Crocodile' },
]
export default function QSelect() {
return (
<>
<div className="flex w-full flex-wrap md:flex-nowrap gap-4">
<Select label="Select an animal" className="max-w-xs">
{animals.map((animal) => (
<SelectItem key={animal.key}>{animal.label}</SelectItem>
))}
</Select>
</div>
<div className={styles.test}>test</div>
</>
)
}

View File

@ -0,0 +1,3 @@
.test {
@apply bg-blue-500;
}