Tapas_Dashboard_Demo / src /streamlit_app.py
MBG0903's picture
Rename src/app.py to src/streamlit_app.py
6ae219b verified
import streamlit as st
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
# =============================
# Branding Colors
# =============================
PRIMARY_COLOR = "#0F2C59" # Procelevate navy
ACCENT_COLOR = "#FFD700" # Gold highlight
BG_COLOR = "#F5F5F5" # Light background
# =============================
# Page Config
# =============================
st.set_page_config(
page_title="Unified School AI Platform - Procelevate",
page_icon="🏫",
layout="wide"
)
# =============================
# Sidebar Branding
# =============================
st.sidebar.image("src/procelevate_logo.png", width=180)
st.sidebar.markdown(
f"""
<h2 style='color:{PRIMARY_COLOR};'>🚀 Procelevate Academy</h2>
<p style='font-size:16px;'>One platform for Schools: Inquiry, Finance, Admin, Facilities, Teachers, Dashboard.</p>
""",
unsafe_allow_html=True
)
# =============================
# Tabs
# =============================
tab1, tab2, tab3, tab4, tab5, tab6 = st.tabs(
["📥 Inquiries", "💰 Finance", "🗂 Admin", "🏢 Facilities", "👩‍🏫 Teachers", "📊 Dashboard"]
)
# --- Inquiries ---
with tab1:
st.header("📥 Inquiry Management")
st.write("Track student/parent inquiries easily.")
st.dataframe(pd.DataFrame({
"Name": ["Arjun", "Sneha", "Rahul"],
"Grade Applied": [6, 9, 4],
"Status": ["Pending", "Follow-up", "Closed"]
}))
# --- Finance ---
with tab2:
st.header("💰 Finance")
st.write("Manage fees, collections, and dues.")
finance_data = pd.DataFrame({
"Month": ["June", "July", "August"],
"Collected": [250000, 270000, 300000],
"Pending": [20000, 15000, 10000]
})
st.bar_chart(finance_data.set_index("Month"))
# --- Admin ---
with tab3:
st.header("🗂 Administration")
st.write("Maintain staff, student records, and compliance.")
st.dataframe(pd.DataFrame({
"Staff": ["John", "Meera", "Kavya"],
"Role": ["Principal", "Admin Head", "Clerk"],
"Status": ["Active", "Active", "On Leave"]
}))
# --- Facilities ---
with tab4:
st.header("🏢 Facilities")
st.write("Track school assets and maintenance schedules.")
st.dataframe(pd.DataFrame({
"Facility": ["Classroom A1", "Lab 1", "Playground"],
"Condition": ["Good", "Needs Repair", "Excellent"],
"Next Maintenance": ["Oct 2025", "Sep 2025", "Nov 2025"]
}))
# --- Teachers ---
with tab5:
st.header("👩‍🏫 Teacher Management")
st.write("Monitor teacher workloads and availability.")
st.dataframe(pd.DataFrame({
"Teacher": ["Anita", "Rajesh", "Fatima"],
"Subject": ["Math", "Science", "English"],
"Load %": [75, 60, 80]
}))
# --- Dashboard ---
with tab6:
st.header("📊 Management Dashboard")
st.write("School snapshot for founders and management.")
col1, col2, col3 = st.columns(3)
with col1:
st.metric("Total Students", "1,200", "+50 since last month")
with col2:
st.metric("Fee Collection", "₹30,00,000", "+10% growth")
with col3:
st.metric("Teachers", "80", "2 new hires")
st.subheader("Enrollment Trend")
enrollment = pd.DataFrame({
"Month": ["June", "July", "August", "September"],
"Students": [1150, 1175, 1190, 1200]
})
st.line_chart(enrollment.set_index("Month"))
st.markdown(
f"""
<hr>
<p style='text-align:center; color:{PRIMARY_COLOR}; font-size:14px;'>
© 2025 Procelevate Consulting | Elevating Education with AI 🚀
</p>
""",
unsafe_allow_html=True
)