-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstreamlit_app.py
70 lines (54 loc) · 1.31 KB
/
streamlit_app.py
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
import streamlit as st
# --- PAGE SETUP ---
home_page = st.Page(
"views/home.py",
title="Home",
icon="🏠",
default=True,
)
about_page = st.Page(
"views/about_me.py",
title="About and Contact",
icon="👨🏻🦱",
# default=True,
)
resume_page = st.Page(
"views/resume.py",
title="Resume",
icon="📄",
)
project_2_page = st.Page(
"views/chatbot.py",
title="Chat Bot",
icon="🤖",
)
certificate_page = st.Page(
"views/certificate.py",
title="Certificates",
icon="🪪",
)
project_page=st.Page(
"views/project.py",
title="Projects",
icon="💼",
)
# --- NAVIGATION SETUP [WITHOUT SECTIONS] ---
# pg = st.navigation(pages=[about_page, project_1_page, project_2_page])
# --- NAVIGATION SETUP [WITH SECTIONS]---
pg = st.navigation(
{
"Basic Info": [home_page,about_page,resume_page],
"Projects and Certificates": [project_page, project_2_page,certificate_page],
}
)
# --- SHARED ON ALL PAGES ---
st.logo("Pictures/Logo.png")
# icon_image="©️",
# )
# --- RUN NAVIGATION ---
pg.run()
st.markdown("""
<div style='text-align: center; font-size: 20px; margin-top: 50px;'>
© Copyright 2024 . All rights reserved.
</div>
""", unsafe_allow_html=True)