Spaces:
Running
Running
Commit
•
111de60
1
Parent(s):
5f1c735
Update src/app/interface/bottom-bar/index.tsx
Browse files
src/app/interface/bottom-bar/index.tsx
CHANGED
@@ -64,23 +64,50 @@ export function BottomBar() {
|
|
64 |
return (
|
65 |
<div className={cn(
|
66 |
`print:hidden`,
|
67 |
-
`fixed bottom-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
)}>
|
72 |
<div className={cn(
|
73 |
-
|
74 |
`items-end`,
|
75 |
-
|
76 |
`animation-all duration-300 ease-in-out`,
|
77 |
isGeneratingStory ? `scale-0 opacity-0` : ``,
|
78 |
`space-x-3`,
|
79 |
-
|
80 |
)}>
|
81 |
<About />
|
82 |
<AIClipFactory />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
83 |
</div>
|
|
|
|
|
84 |
<div className={cn(
|
85 |
`flex flex-row`,
|
86 |
`pointer-events-auto`,
|
@@ -90,7 +117,7 @@ export function BottomBar() {
|
|
90 |
`scale-[0.9]`
|
91 |
)}>
|
92 |
<SettingsDialog />
|
93 |
-
|
94 |
onClick={handleUpscale}
|
95 |
disabled={!prompt?.length || remainingImages > 0 || isUpscaling || !Object.values(upscaleQueue).length}
|
96 |
>
|
@@ -98,41 +125,23 @@ export function BottomBar() {
|
|
98 |
? `${allStatus.length - Object.values(upscaleQueue).length}/${allStatus.length} ⌛`
|
99 |
: "Upscale"}
|
100 |
</Button>
|
101 |
-
|
102 |
-
|
103 |
<div>
|
104 |
<Button
|
105 |
onClick={handlePrint}
|
106 |
disabled={!prompt?.length}
|
107 |
>
|
108 |
-
|
109 |
</Button>
|
110 |
</div>
|
|
|
|
|
|
|
111 |
<div>
|
112 |
-
|
113 |
-
onClick={download}
|
114 |
-
disabled={!prompt?.length}
|
115 |
-
>
|
116 |
-
<span className="hidden md:inline">{
|
117 |
-
remainingImages ? `${allStatus.length - remainingImages}/${allStatus.length} panels ⌛` : `Salvar`
|
118 |
-
}</span>
|
119 |
-
<span className="inline md:hidden">{
|
120 |
-
remainingImages ? `${allStatus.length - remainingImages}/${allStatus.length} ⌛` : `Save`
|
121 |
-
}</span>
|
122 |
-
</Button>
|
123 |
</div>
|
124 |
-
|
125 |
-
<Button
|
126 |
-
onClick={handlePrint}
|
127 |
-
disabled={!prompt?.length}
|
128 |
-
>
|
129 |
-
<span className="hidden md:inline">{
|
130 |
-
remainingImages ? `${allStatus.length - remainingImages}/${allStatus.length} panels ⌛` : `Salve PDF`
|
131 |
-
}</span>
|
132 |
-
<span className="inline md:hidden">{
|
133 |
-
remainingImages ? `${allStatus.length - remainingImages}/${allStatus.length} ⌛` : `Save`
|
134 |
-
}</span>
|
135 |
-
</Button>
|
136 |
<Share />
|
137 |
</div>
|
138 |
</div>
|
|
|
64 |
return (
|
65 |
<div className={cn(
|
66 |
`print:hidden`,
|
67 |
+
`fixed bottom-1 md:bottom-4 left-2 right-0 md:left-3 md:right-1`, /* Essa linha lista todos os botões do rodapé e define estilos para fixa-la inserir no inicio - fixed*/
|
68 |
+
`flex flex-row`,
|
69 |
+
`justify-between`,
|
70 |
+
`pointer-events-none`
|
71 |
)}>
|
72 |
<div className={cn(
|
73 |
+
`flex flex-row`,
|
74 |
`items-end`,
|
75 |
+
`pointer-events-auto`,
|
76 |
`animation-all duration-300 ease-in-out`,
|
77 |
isGeneratingStory ? `scale-0 opacity-0` : ``,
|
78 |
`space-x-3`,
|
79 |
+
`scale-[0.9]`
|
80 |
)}>
|
81 |
<About />
|
82 |
<AIClipFactory />
|
83 |
+
|
84 |
+
{/* <Button
|
85 |
+
variant="outline"
|
86 |
+
className="bg-gray-300"
|
87 |
+
onClick={() => {
|
88 |
+
window.open("https://editoraitacaiunas.com.br/criador-de-quadrinhos-ia/")
|
89 |
+
}}>
|
90 |
+
<span className="hidden md:inline">💚 HQ IA</span>
|
91 |
+
<span className="inline md:hidden">HQ IA</span>
|
92 |
+
</Button> */}
|
93 |
+
|
94 |
+
<Button
|
95 |
+
onClick={handlePrint}
|
96 |
+
disabled={!prompt?.length}
|
97 |
+
>
|
98 |
+
<span className="hidden md:inline">{
|
99 |
+
remainingImages ? `${allStatus.length - remainingImages}/${allStatus.length} panels ⌛` : `SALVAR PDF`
|
100 |
+
}</span>
|
101 |
+
<span className="inline md:hidden">{
|
102 |
+
remainingImages ? `${allStatus.length - remainingImages}/${allStatus.length} ⌛` : `Salvar`
|
103 |
+
}</span>
|
104 |
+
</Button>
|
105 |
+
|
106 |
+
|
107 |
+
|
108 |
</div>
|
109 |
+
|
110 |
+
|
111 |
<div className={cn(
|
112 |
`flex flex-row`,
|
113 |
`pointer-events-auto`,
|
|
|
117 |
`scale-[0.9]`
|
118 |
)}>
|
119 |
<SettingsDialog />
|
120 |
+
{/* <Button
|
121 |
onClick={handleUpscale}
|
122 |
disabled={!prompt?.length || remainingImages > 0 || isUpscaling || !Object.values(upscaleQueue).length}
|
123 |
>
|
|
|
125 |
? `${allStatus.length - Object.values(upscaleQueue).length}/${allStatus.length} ⌛`
|
126 |
: "Upscale"}
|
127 |
</Button>
|
128 |
+
|
129 |
+
|
130 |
<div>
|
131 |
<Button
|
132 |
onClick={handlePrint}
|
133 |
disabled={!prompt?.length}
|
134 |
>
|
135 |
+
SALVAR PDF
|
136 |
</Button>
|
137 |
</div>
|
138 |
+
*/}
|
139 |
+
|
140 |
+
|
141 |
<div>
|
142 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
143 |
</div>
|
144 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
145 |
<Share />
|
146 |
</div>
|
147 |
</div>
|