Files
web-test/app.py
T
2026-08-10 04:48:07 +02:00

38 lines
1.2 KiB
Python
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import streamlit as st
st.set_page_config(
page_title="Web Test Portal",
page_icon="🚀",
layout="wide"
)
# ---------------------------------------------------------
# 1. SAYFALARIN TANIMLANMASI
# ---------------------------------------------------------
home_page = st.Page("views/home.py", title="Ana Sayfa", icon="🏠", default=True)
settings_page = st.Page("views/settings.py", title="Ayarlar", icon="⚙️")
# ---------------------------------------------------------
# 2. NAVİGASYON HİYERARŞİSİ VEYA GRUPLAMA
# ---------------------------------------------------------
# İsterseniz sayfaları gruplayabilirsiniz de:
pg = st.navigation(
{
"Genel": [home_page],
"Yönetim": [settings_page]
}
)
# ---------------------------------------------------------
# 3. TÜM SAYFALARDA ORTAK ÇALIŞACAK ALANLAR (Header/Sidebar)
# ---------------------------------------------------------
with st.sidebar:
st.caption("🚀 **Web-Test v1.0**")
st.write("Gitea & Coolify Otomatik Yayın Sistemi")
st.divider()
# ---------------------------------------------------------
# 4. SEÇİLİ SAYFAYI ÇALIŞTIRMA
# ---------------------------------------------------------
pg.run()