Skip to content

Add common sidebar and logo across pages

Venkat Sai Kanagani requested to merge fix-final-database-hero into main

Added a common reusable sidebar across all SpotIt pages.

Changes made:

  • Created sidebar_component.py for a shared sidebar layout.
  • Added the same sidebar to Home, Report Incident, Track Incident, Community Dashboard, and Safety Map pages.
  • Added project logo using assets/logo.png.
  • Removed default Streamlit page navigation/sidebar list.
  • Fixed sidebar logo display size and stopped logo animation.
  • Kept navigation buttons consistent across all pages.
  • Updated Report Incident page to use the shared sidebar and fixed broken CSS/syntax issues.
  • Ensured sidebar live overview shows report statistics from the database.

Files updated:

  • app.py
  • sidebar_component.py
  • pages/report_issue.py
  • pages/track_issue.py
  • pages/dashboard.py
  • pages/map_view.py
  • assets/logo.png

Merge request reports

Loading