Spaces:
Running
Running
Commit
•
b8b7c27
1
Parent(s):
111de60
Update src/app/interface/top-menu/index.tsx
Browse files
src/app/interface/top-menu/index.tsx
CHANGED
@@ -91,7 +91,7 @@ export function TopMenu() {
|
|
91 |
`backdrop-blur-xl`,
|
92 |
`transition-all duration-200 ease-in-out`,
|
93 |
`px-2 py-2 border-b-1 border-gray-50 dark:border-gray-50`,
|
94 |
-
`bg-
|
95 |
`space-y-2 md:space-y-0 md:space-x-3 lg:space-x-6`
|
96 |
)}>
|
97 |
<div className="flex flex-row space-x-2 md:space-x-3 w-full md:w-auto">
|
@@ -100,7 +100,9 @@ export function TopMenu() {
|
|
100 |
`flex flex-row items-center justify-start space-x-3 font-mono`,
|
101 |
`flex-grow`
|
102 |
)}>
|
|
|
103 |
{/* <Label className="flex text-2xs md:text-sm md:w-24">Style:</Label> */}
|
|
|
104 |
<Select
|
105 |
defaultValue={defaultPreset}
|
106 |
onValueChange={(value) => { setDraftPreset(value as PresetName) }}
|
@@ -121,7 +123,9 @@ export function TopMenu() {
|
|
121 |
`flex flex-row items-center justify-start space-x-3 font-mono`,
|
122 |
`w-40`
|
123 |
)}>
|
|
|
124 |
{/* <Label className="flex text-2xs md:text-sm md:w-24">Style:</Label> */}
|
|
|
125 |
<Select
|
126 |
defaultValue={defaultLayout}
|
127 |
onValueChange={(value) => { setDraftLayout(value as LayoutName) }}
|
@@ -160,7 +164,7 @@ export function TopMenu() {
|
|
160 |
/>
|
161 |
<Label>
|
162 |
<span className="hidden md:inline">Legenda</span>
|
163 |
-
<span className="inline md:hidden">
|
164 |
</Label>
|
165 |
</div>
|
166 |
{/*
|
@@ -198,8 +202,8 @@ export function TopMenu() {
|
|
198 |
<div className="flex flex-row flex-grow w-full">
|
199 |
<div className="flex flex-row flex-grow w-full">
|
200 |
<Input
|
201 |
-
placeholder="1.
|
202 |
-
className="w-
|
203 |
// disabled={atLeastOnePanelIsBusy}
|
204 |
onChange={(e) => {
|
205 |
setDraftPromptB(e.target.value)
|
@@ -211,8 +215,8 @@ export function TopMenu() {
|
|
211 |
}}
|
212 |
value={draftPromptB}
|
213 |
/>
|
214 |
-
|
215 |
-
placeholder="2.
|
216 |
className="w-1/2 bg-neutral-300 text-neutral-800 dark:bg-neutral-300 dark:text-neutral-800 border-l-stone-100 rounded-l-none rounded-r-none"
|
217 |
// disabled={atLeastOnePanelIsBusy}
|
218 |
onChange={(e) => {
|
@@ -224,20 +228,21 @@ export function TopMenu() {
|
|
224 |
}
|
225 |
}}
|
226 |
value={draftPromptA}
|
227 |
-
|
228 |
</div>
|
229 |
<Button
|
230 |
className={cn(
|
231 |
`rounded-l-none cursor-pointer`,
|
|
|
232 |
`transition-all duration-200 ease-in-out`,
|
233 |
-
`bg-[rgb(
|
234 |
)}
|
235 |
onClick={() => {
|
236 |
handleSubmit()
|
237 |
}}
|
238 |
disabled={!draftPrompt?.trim().length || isBusy}
|
239 |
>
|
240 |
-
|
241 |
</Button>
|
242 |
</div>
|
243 |
</div>
|
|
|
91 |
`backdrop-blur-xl`,
|
92 |
`transition-all duration-200 ease-in-out`,
|
93 |
`px-2 py-2 border-b-1 border-gray-50 dark:border-gray-50`,
|
94 |
+
`bg-green-900/70 dark:bg-green-900/70 text-gray-50 dark:text-gray-50`,
|
95 |
`space-y-2 md:space-y-0 md:space-x-3 lg:space-x-6`
|
96 |
)}>
|
97 |
<div className="flex flex-row space-x-2 md:space-x-3 w-full md:w-auto">
|
|
|
100 |
`flex flex-row items-center justify-start space-x-3 font-mono`,
|
101 |
`flex-grow`
|
102 |
)}>
|
103 |
+
|
104 |
{/* <Label className="flex text-2xs md:text-sm md:w-24">Style:</Label> */}
|
105 |
+
|
106 |
<Select
|
107 |
defaultValue={defaultPreset}
|
108 |
onValueChange={(value) => { setDraftPreset(value as PresetName) }}
|
|
|
123 |
`flex flex-row items-center justify-start space-x-3 font-mono`,
|
124 |
`w-40`
|
125 |
)}>
|
126 |
+
|
127 |
{/* <Label className="flex text-2xs md:text-sm md:w-24">Style:</Label> */}
|
128 |
+
|
129 |
<Select
|
130 |
defaultValue={defaultLayout}
|
131 |
onValueChange={(value) => { setDraftLayout(value as LayoutName) }}
|
|
|
164 |
/>
|
165 |
<Label>
|
166 |
<span className="hidden md:inline">Legenda</span>
|
167 |
+
<span className="inline md:hidden">Legenda</span>
|
168 |
</Label>
|
169 |
</div>
|
170 |
{/*
|
|
|
202 |
<div className="flex flex-row flex-grow w-full">
|
203 |
<div className="flex flex-row flex-grow w-full">
|
204 |
<Input
|
205 |
+
placeholder="1. Descreva sua história"
|
206 |
+
className="w-full bg-neutral-300 text-neutral-800 dark:bg-neutral-300 dark:text-neutral-800 rounded-r-none border-r-stone-100"
|
207 |
// disabled={atLeastOnePanelIsBusy}
|
208 |
onChange={(e) => {
|
209 |
setDraftPromptB(e.target.value)
|
|
|
215 |
}}
|
216 |
value={draftPromptB}
|
217 |
/>
|
218 |
+
{/* <Input
|
219 |
+
placeholder="2. Conte mais detalhes (Opcional)"
|
220 |
className="w-1/2 bg-neutral-300 text-neutral-800 dark:bg-neutral-300 dark:text-neutral-800 border-l-stone-100 rounded-l-none rounded-r-none"
|
221 |
// disabled={atLeastOnePanelIsBusy}
|
222 |
onChange={(e) => {
|
|
|
228 |
}
|
229 |
}}
|
230 |
value={draftPromptA}
|
231 |
+
/>*/}
|
232 |
</div>
|
233 |
<Button
|
234 |
className={cn(
|
235 |
`rounded-l-none cursor-pointer`,
|
236 |
+
|
237 |
`transition-all duration-200 ease-in-out`,
|
238 |
+
`bg-[rgb(75,75,77)] hover:bg-[rgb(69,144,255)] disabled:bg-[rgb(59,134,247)]`
|
239 |
)}
|
240 |
onClick={() => {
|
241 |
handleSubmit()
|
242 |
}}
|
243 |
disabled={!draftPrompt?.trim().length || isBusy}
|
244 |
>
|
245 |
+
CRIAR
|
246 |
</Button>
|
247 |
</div>
|
248 |
</div>
|