PUV_Generator_2G / styles.py
JeCabrera's picture
Update styles.py
62f8158 verified
raw
history blame
1.86 kB
import streamlit as st
def apply_styles():
st.markdown("""
<style>
/* Ajustes para el contenedor principal */
.block-container {
padding-top: 2rem !important;
padding-bottom: 2rem !important;
margin-top: 0 !important;
}
/* Estilos del título principal */
h1 {
color: #2C3E50;
font-family: 'Helvetica Neue', sans-serif;
font-size: 3.2rem !important;
font-weight: 700;
margin: 1rem 0 !important;
padding: 0 !important;
text-align: center;
}
/* Estilos del subtítulo */
h3 {
color: #34495E;
font-family: 'Helvetica Neue', sans-serif;
font-size: 1.3rem !important;
line-height: 1.6;
margin: 1rem auto !important;
padding: 0 !important;
max-width: 800px;
text-align: center;
}
/* Estilos del botón */
div.stButton > button {
background-color: #2ECC71;
color: white;
width: 90%;
height: 60px;
font-weight: bold;
font-size: 22px;
text-transform: uppercase;
border: none;
border-radius: 8px;
display: block;
margin: 0 auto;
transition: all 0.3s ease;
box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
div.stButton > button:hover {
background-color: #27AE60;
box-shadow: 0 6px 8px rgba(0,0,0,0.2);
transform: translateY(-2px);
}
</style>
""", unsafe_allow_html=True)
def format_story_output(story_text):
return f"""
<div class="story-output">
{story_text}
</div>
"""