Added text boxes for the project name and project path
Idk what other options there really needs to be but I'll try to think of stuff
This commit is contained in:
1 parent
489cff9f33
commit
a8bf82c7df
3 files changed
+32
-8
No files matched your search
@@ -9,5 +9,5 @@ h2 {
|
||||
}
|
||||
|
||||
.container {
|
||||
@apply bg-[rgb(24,24,36)] mt-10 p-5 border border-[rgb(48,48,72)] rounded-lg justify-center mx-auto w-fit flex flex-col gap-2;
|
||||
@apply bg-[rgb(24,24,36)] mt-5 p-5 border border-[rgb(48,48,72)] rounded-lg justify-center mx-auto w-fit flex flex-col gap-2;
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
@import 'tailwindcss';
|
||||
|
||||
input {
|
||||
@apply w-full max-w-md p-2 border border-[rgb(48,48,72)] bg-[rgb(24,24,36)] rounded-lg mt-5;
|
||||
}
|
||||
@@ -1,18 +1,37 @@
|
||||
import { useState } from 'react'
|
||||
import OptionButtons from '../components/OptionButtons'
|
||||
import './Home.css'
|
||||
|
||||
export default function Home () {
|
||||
const [projectType, setProjectType] = useState<string>('website')
|
||||
const [projectPath, setProjectPath] = useState<string>('');
|
||||
const [projectName, setProjectName] = useState<string>('');
|
||||
|
||||
return (
|
||||
<>
|
||||
<OptionButtons
|
||||
buttons={[
|
||||
{ label: 'Website', onClick: () => setProjectType('website') },
|
||||
{ label: 'Web Server', onClick: () => setProjectType('webserver') }
|
||||
]}
|
||||
name="Project Type"
|
||||
/>
|
||||
<div className='justify-center mx-auto w-fit'>
|
||||
<input
|
||||
type="text"
|
||||
value={projectName}
|
||||
onChange={(e) => setProjectName(e.target.value)}
|
||||
placeholder="Project Name"
|
||||
/>
|
||||
|
||||
<input
|
||||
type="text"
|
||||
value={projectPath}
|
||||
onChange={(e) => setProjectPath(e.target.value)}
|
||||
placeholder="Project Path"
|
||||
/>
|
||||
|
||||
<OptionButtons
|
||||
buttons={[
|
||||
{ label: 'Website', onClick: () => setProjectType('website') },
|
||||
{ label: 'Web Server', onClick: () => setProjectType('webserver') }
|
||||
]}
|
||||
name="Project Type"
|
||||
/>
|
||||
</div>
|
||||
</>
|
||||
)
|
||||
}
|
||||
Reference in new issue
Block a user