Skip to content

Commit

Permalink
Melhorando estilo dos resultados
Browse files Browse the repository at this point in the history
  • Loading branch information
camilamaia committed Nov 8, 2024
1 parent 8357cce commit 1075f71
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions curadoria_coletiva/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def _create_layout(df):
style={"margin-top": "30px"},
children=[
html.H2(
"Resultados da Busca",
"Resultados",
style={
"color": "#8B008B",
"margin-bottom": "20px",
Expand Down Expand Up @@ -214,7 +214,20 @@ def _create_filter_dropdowns(df):
def generate_result_layout(filtered_df):
result_layout = []
for _, row in filtered_df.iterrows():
result_layout.extend(_generate_result_for_row(row))
result_layout.append(
html.Div(
_generate_result_for_row(row),
style={
"border": "2px solid #E1BEE7", # Cor da borda
"border-radius": "10px", # Borda arredondada
"padding": "15px", # Espaçamento interno
"box-shadow": "0 4px 8px rgba(0, 0, 0, 0.1)", # Sombra para profundidade
"background-color": "#F9F9F9", # Cor de fundo
"margin-bottom": "20px", # Espaçamento entre os resultados
}
)
)

return result_layout


Expand Down

0 comments on commit 1075f71

Please sign in to comment.