You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
motief/Home.py

53 lines
1.5 KiB

"""StemAtlas — home page.
Entry point for the Streamlit multi-page app. Shows a landing page with
brief descriptions of and links to the two sub-pages.
"""
import streamlit as st
st.set_page_config(
page_title="StemAtlas",
page_icon="🗺",
layout="centered",
initial_sidebar_state="expanded",
)
def main() -> None:
st.title("🗺 StemAtlas")
st.markdown(
"**StemAtlas** brengt de Nederlandse Tweede Kamer in kaart op basis van "
"echte stemmingen over moties. Gebruik de Stemwijzer om te ontdekken welke "
"partij het beste bij jouw standpunten past, of verken de politieke ruimte "
"zelf in de Explorer."
)
st.divider()
col1, col2 = st.columns(2)
with col1:
st.subheader("🗳 Stemwijzer")
st.markdown(
"Stem op echte Tweede Kamer moties en zie welke partij het "
"dichtst bij jouw keuzes staat."
)
st.page_link("pages/1_Stemwijzer.py", label="Open Stemwijzer", icon="🗳")
with col2:
st.subheader("🔭 Politiek Explorer")
st.markdown(
"Verken het politieke kompas, partijtrajecten door de tijd, "
"en zoek vergelijkbare moties op in het archief."
)
st.page_link("pages/2_Explorer.py", label="Open Explorer", icon="🔭")
st.divider()
st.caption(
"Data: Tweede Kamer API · Embeddings: QWEN (via OpenRouter) · "
"Gemaakt door [Sven Geboers](https://sgeboers.nl)"
)
main()