File size: 1,422 Bytes
40171d1
 
7872a50
f4226ad
7872a50
 
3dc5e82
7872a50
 
3dc5e82
 
7872a50
3dc5e82
7872a50
 
 
3dc5e82
361a316
0291fa3
 
 
7872a50
361a316
0291fa3
 
40171d1
3dc5e82
f4226ad
fe3a6dc
0291fa3
 
7872a50
 
 
fe3a6dc
3dc5e82
 
 
0291fa3
f4226ad
3dc5e82
 
 
 
fe3a6dc
 
3dc5e82
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
import streamlit as st
import pandas as pd

# 1. Page Config
st.set_page_config(page_title="VISION-LINK OS", layout="wide")

# 2. CSS don ya zama professional kuma ya cika allon waya
st.markdown("""
    <style>
    .stApp { background-color: #f5f6f8; width: 100%; }
    .main { width: 100% !important; padding-top: 0rem; }
    div[data-testid="stSidebar"] { background-color: #ffffff; border-right: 1px solid #e0e0e0; }
    h1 { color: #1e1e1e; }
    </style>
""", unsafe_allow_html=True)

# 3. Sidebar Navigation
with st.sidebar:
    st.title("🛡️ SECURITY OPS")
    menu = st.radio("Navigation", [
        "Operations Overview", "Camera Feeds", "Location Risk", 
        "Incident Log", "Dispatch Center", "Live Detection"
    ])
    st.markdown("---")
    st.write("Status: System Active 🟢")

# 4. Main UI Rendering
st.header(f"Dashboard: {menu}")

if menu == "Operations Overview":
    st.write("Welcome to the Command Center.")
    col1, col2 = st.columns(2)
    col1.metric("Active Threats", "0")
    col2.metric("Camera Status", "Online")

elif menu == "Camera Feeds":
    st.info("System initializing camera array...")

elif menu == "Live Detection":
    st.warning("Live AI Model: System Initializing...")
    st.info("Waiting for video stream input...")

elif menu == "Location Risk":
    st.success("GPS Location Tracking - ACTIVE")

else:
    st.write(f"Section {menu} is currently under construction.")