thinh-vu's picture
Upload 12 files
021d91d verified
Raw
History Blame Contribute Delete
1.63 kB
import streamlit as st
def set_page_config():
"""
Thiết lập cấu hình trang Streamlit
"""
st.set_page_config(
page_title="Phân tích Cổ phiếu Việt Nam",
page_icon="📈",
layout="wide",
initial_sidebar_state="expanded"
)
def set_custom_css():
"""
Thiết lập CSS tùy chỉnh cho ứng dụng
"""
st.markdown("""
<style>
.main-header {
color: #8C52FF;
text-align: center;
font-size: 2.5rem;
font-weight: bold;
margin-bottom: 2rem;
}
.metric-card {
background: linear-gradient(135deg, #4CAF50, #8C52FF);
padding: 1rem;
border-radius: 10px;
color: white;
text-align: center;
margin: 0.5rem 0;
}
.tab-content {
padding: 1rem 0;
}
.sidebar .sidebar-content {
background-color: #f0f2f6;
}
.stSelectbox > div > div {
background-color: #4CAF50;
color: white;
}
</style>
""", unsafe_allow_html=True)
def display_header():
"""
Hiển thị tiêu đề ứng dụng
"""
st.markdown('<h1 class="main-header">📈 Phân tích C�� phiếu Việt Nam</h1>', unsafe_allow_html=True)
def display_footer():
"""
Hiển thị footer ứng dụng
"""
st.markdown("---")
st.markdown(
"🔥 **Phát triển bởi Vnstock API** | "
"⚠️ *Thông tin chỉ mang tính chất tham khảo, không phải lời khuyên đầu tư*"
)