-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmain.py
More file actions
54 lines (45 loc) · 999 Bytes
/
main.py
File metadata and controls
54 lines (45 loc) · 999 Bytes
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
48
49
50
51
52
53
54
import streamlit as st
# --- PAGE SETUP ---
st.set_page_config(
layout="wide",
page_title="EcoSnap",
page_icon=":earth_africa:",
)
#Define pages
about_page = st.Page(
"ch/home.py",
title="Home",
icon="🏠",
default=True,
)
project_1_page = st.Page(
"ch/EcoSnap.py",
title="EcoSnap",
icon="📸",
)
project_2_page = st.Page(
"ch/EcoAlt.py",
title="EcoAlt",
icon="🌱",
)
project_3_page = st.Page(
"ch/EcoTalk.py",
title="EcoTalk",
icon="🗣️",
)
# --- NAVIGATION SETUP [WITH SECTIONS] ---
pg = st.navigation(
{
"Info": [about_page],
"Projects": [project_1_page, project_2_page, project_3_page],
}
)
# --- SHARED ON ALL PAGES ---
st.sidebar.markdown(
'''
Created by Aadish ✨<br>
<img src="https://img.shields.io/badge/EcoSnap-%F0%9F%8C%BF-32CD32?labelColor=2F4F4F" alt="EcoSnap">
</a>
''', unsafe_allow_html=True
)
pg.run() # Run navigation outside of the sidebar context