Spaces:
Running
Running
Upload 3 files
Browse files- app.py +15 -8
- styles.css +76 -4
app.py
CHANGED
|
@@ -1370,14 +1370,21 @@ def criar_interface():
|
|
| 1370 |
elem_classes="section-accordion"
|
| 1371 |
) as accordion_secao_9:
|
| 1372 |
with gr.Group(elem_classes="section-content") as conteudo_secao_9:
|
| 1373 |
-
#
|
| 1374 |
-
gr.
|
| 1375 |
-
|
| 1376 |
-
|
| 1377 |
-
|
| 1378 |
-
|
| 1379 |
-
|
| 1380 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1381 |
|
| 1382 |
with gr.Row():
|
| 1383 |
transformacao_y = gr.Dropdown(
|
|
|
|
| 1370 |
elem_classes="section-accordion"
|
| 1371 |
) as accordion_secao_9:
|
| 1372 |
with gr.Group(elem_classes="section-content") as conteudo_secao_9:
|
| 1373 |
+
# Área destacada para botões de adoção
|
| 1374 |
+
gr.HTML("""
|
| 1375 |
+
<div class="adotar-header">
|
| 1376 |
+
<span class="adotar-emoji">📊</span>
|
| 1377 |
+
<span class="adotar-titulo">Adote uma sugestão da busca automática</span>
|
| 1378 |
+
</div>
|
| 1379 |
+
""")
|
| 1380 |
+
with gr.Row(elem_classes="adotar-row"):
|
| 1381 |
+
btn_adotar_1 = gr.Button("✓ Adotar #1", visible=False, elem_classes="btn-adotar", variant="primary")
|
| 1382 |
+
btn_adotar_2 = gr.Button("✓ Adotar #2", visible=False, elem_classes="btn-adotar", variant="primary")
|
| 1383 |
+
btn_adotar_3 = gr.Button("✓ Adotar #3", visible=False, elem_classes="btn-adotar", variant="primary")
|
| 1384 |
+
btn_adotar_4 = gr.Button("✓ Adotar #4", visible=False, elem_classes="btn-adotar", variant="primary")
|
| 1385 |
+
btn_adotar_5 = gr.Button("✓ Adotar #5", visible=False, elem_classes="btn-adotar", variant="primary")
|
| 1386 |
+
|
| 1387 |
+
gr.HTML("<div class='adotar-separator'><span>ou configure manualmente</span></div>")
|
| 1388 |
|
| 1389 |
with gr.Row():
|
| 1390 |
transformacao_y = gr.Dropdown(
|
styles.css
CHANGED
|
@@ -119,16 +119,88 @@
|
|
| 119 |
font-style: italic;
|
| 120 |
}
|
| 121 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 122 |
/* Botões de adotar transformação */
|
| 123 |
.btn-adotar {
|
| 124 |
-
background: linear-gradient(180deg, #
|
| 125 |
-
border
|
| 126 |
color: white !important;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 127 |
}
|
| 128 |
|
| 129 |
.btn-adotar:hover {
|
| 130 |
-
background: linear-gradient(180deg, #
|
| 131 |
-
border-color: #
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 132 |
}
|
| 133 |
|
| 134 |
/* Checkbox para marcar/desmarcar todos */
|
|
|
|
| 119 |
font-style: italic;
|
| 120 |
}
|
| 121 |
|
| 122 |
+
/* Área de adoção de sugestões */
|
| 123 |
+
.adotar-header {
|
| 124 |
+
display: flex;
|
| 125 |
+
align-items: center;
|
| 126 |
+
justify-content: center;
|
| 127 |
+
gap: 10px;
|
| 128 |
+
padding: 12px 16px;
|
| 129 |
+
margin: 0 0 12px 0;
|
| 130 |
+
background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
|
| 131 |
+
border: 2px solid #66bb6a;
|
| 132 |
+
border-radius: 10px;
|
| 133 |
+
}
|
| 134 |
+
|
| 135 |
+
.adotar-emoji {
|
| 136 |
+
font-size: 24px;
|
| 137 |
+
}
|
| 138 |
+
|
| 139 |
+
.adotar-titulo {
|
| 140 |
+
font-size: 15px;
|
| 141 |
+
font-weight: 600;
|
| 142 |
+
color: #2e7d32;
|
| 143 |
+
letter-spacing: 0.3px;
|
| 144 |
+
}
|
| 145 |
+
|
| 146 |
+
.adotar-row {
|
| 147 |
+
background: linear-gradient(135deg, #f1f8e9 0%, #dcedc8 100%);
|
| 148 |
+
border: 2px dashed #8bc34a;
|
| 149 |
+
border-radius: 10px;
|
| 150 |
+
padding: 16px !important;
|
| 151 |
+
margin: 0 0 16px 0 !important;
|
| 152 |
+
display: flex;
|
| 153 |
+
justify-content: center;
|
| 154 |
+
gap: 12px;
|
| 155 |
+
}
|
| 156 |
+
|
| 157 |
+
.adotar-separator {
|
| 158 |
+
display: flex;
|
| 159 |
+
align-items: center;
|
| 160 |
+
text-align: center;
|
| 161 |
+
margin: 8px 0 16px 0;
|
| 162 |
+
color: #9e9e9e;
|
| 163 |
+
font-size: 13px;
|
| 164 |
+
}
|
| 165 |
+
|
| 166 |
+
.adotar-separator::before,
|
| 167 |
+
.adotar-separator::after {
|
| 168 |
+
content: '';
|
| 169 |
+
flex: 1;
|
| 170 |
+
border-bottom: 1px solid #e0e0e0;
|
| 171 |
+
}
|
| 172 |
+
|
| 173 |
+
.adotar-separator span {
|
| 174 |
+
padding: 0 16px;
|
| 175 |
+
text-transform: uppercase;
|
| 176 |
+
letter-spacing: 0.5px;
|
| 177 |
+
font-weight: 500;
|
| 178 |
+
}
|
| 179 |
+
|
| 180 |
/* Botões de adotar transformação */
|
| 181 |
.btn-adotar {
|
| 182 |
+
background: linear-gradient(180deg, #4caf50 0%, #43a047 100%) !important;
|
| 183 |
+
border: 2px solid #388e3c !important;
|
| 184 |
color: white !important;
|
| 185 |
+
font-weight: 600 !important;
|
| 186 |
+
font-size: 14px !important;
|
| 187 |
+
padding: 10px 20px !important;
|
| 188 |
+
border-radius: 8px !important;
|
| 189 |
+
box-shadow: 0 3px 8px rgba(76, 175, 80, 0.4) !important;
|
| 190 |
+
transition: all 0.2s ease !important;
|
| 191 |
+
min-width: 100px !important;
|
| 192 |
}
|
| 193 |
|
| 194 |
.btn-adotar:hover {
|
| 195 |
+
background: linear-gradient(180deg, #43a047 0%, #388e3c 100%) !important;
|
| 196 |
+
border-color: #2e7d32 !important;
|
| 197 |
+
transform: translateY(-2px) !important;
|
| 198 |
+
box-shadow: 0 5px 15px rgba(76, 175, 80, 0.5) !important;
|
| 199 |
+
}
|
| 200 |
+
|
| 201 |
+
.btn-adotar:active {
|
| 202 |
+
transform: translateY(0) !important;
|
| 203 |
+
box-shadow: 0 2px 4px rgba(76, 175, 80, 0.3) !important;
|
| 204 |
}
|
| 205 |
|
| 206 |
/* Checkbox para marcar/desmarcar todos */
|