mirror of
https://github.com/BetterSEQTA/BetterSEQTA-Plus.git
synced 2026-06-06 03:34:40 +00:00
add accordion to themeCreator
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import CodeEditor from '../components/CodeEditor';
|
||||
import Accordion from '../components/Accordian';
|
||||
|
||||
export default function ThemeCreator() {
|
||||
const handleSave = (value: string) => {
|
||||
@@ -7,10 +8,21 @@ export default function ThemeCreator() {
|
||||
}
|
||||
|
||||
return (
|
||||
<div className='w-full h-[100vh] bg-zinc-100 dark:bg-zinc-800'>
|
||||
<div className='w-full h-[100vh] bg-zinc-100 dark:bg-zinc-800 dark:text-white transition duration-30'>
|
||||
<div className='flex flex-col gap-2 p-2'>
|
||||
<h1 className='text-xl font-semibold pb-0.5'>Theme Creator</h1>
|
||||
|
||||
<div className='p-2'>
|
||||
<CodeEditor height='100px' initialState={'.exampleCode {}'} callback={handleSave} />
|
||||
<input type='text' placeholder='Theme Name' className='w-full p-2 mb-4 rounded-lg dark:border-gray-700 dark:bg-zinc-900 dark:text-white' />
|
||||
|
||||
|
||||
|
||||
<Accordion>
|
||||
<CodeEditor height='100px' initialState={''} callback={handleSave} />
|
||||
</Accordion>
|
||||
|
||||
<button className='w-full px-4 py-2 mb-4 text-white transition bg-blue-500 rounded dark:text-white'>
|
||||
Save Theme
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user