Spaces:
Sleeping
Sleeping
File size: 1,627 Bytes
021d91d | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 | 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ư*"
) |