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:
Puppet committed 2025-08-05 11:38:10 -07:00
1 parent 489cff9f33
commit a8bf82c7df
3 files changed
+32 -8

No files matched your search

+1 -1
View File
@@ -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;
}
+5
View File
@@ -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;
}
+26 -7
View File
@@ -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>
</>
)
}