# app.py import streamlit as st from streamlit_option_menu import option_menu from utils.functions import get_phone_info, simple_checks, analyze_message, init_stats_file, update_stats import os # Inicjalizacja pliku statystyk init_stats_file() # Konfiguracja strony st.set_page_config(page_title="📱 Detektor Fałszywych Wiadomości SMS", page_icon="📱", layout="wide") # Tworzenie poziomego menu selected = option_menu( menu_title=None, # Brak tytułu menu options=["Analiza SMS", "O Projekcie", "Edukacja", "Statystyki", "Kontakt"], icons=["house", "info-circle", "book", "bar-chart", "envelope"], menu_icon="cast", default_index=0, orientation="horizontal", styles={ "container": {"padding": "0!important", "background-color": "#fafafa"}, "icon": {"color": "black", "font-size": "18px"}, "nav-link": {"font-size": "16px", "text-align": "left", "margin":"0px", "--hover-color": "#eee"}, "nav-link-selected": {"background-color": "#02ab21"}, } ) # Importowanie modułów dla każdej zakładki if selected == "Analiza SMS": from pages.Analysis import show_analysis show_analysis() elif selected == "O Projekcie": from pages.About import main as show_about show_about() elif selected == "Edukacja": from pages.Education import main as show_education show_education() elif selected == "Statystyki": from pages.Statistics import main as show_statistics show_statistics() elif selected == "Kontakt": from pages.Contact import main as show_contact show_contact()