-
Notifications
You must be signed in to change notification settings - Fork 0
/
portfolio.py
110 lines (90 loc) · 3.76 KB
/
portfolio.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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
import streamlit as st
import info
import pandas as pd
#About Me
def about_me_section():
st.header("♡ About Me ♡")
st.image(info.profile_picture, width = 200, clamp = True, output_format="JPEG")
st.write(info.about_me)
st.write("--")
about_me_section()
#Sidebar Links
def links_section():
st.sidebar.header("⌨️Links")
st.sidebar.text("Connect with me on LinkedIn")
linkedin_link=f'<a href="{info.my_linkedin_url}"><img src="{info.linkedin_image_url}" alt="Linkedin" width="75" height="75"></a>'
st.sidebar.markdown(linkedin_link,unsafe_allow_html=True)
st.sidebar.text("Checkout my work")
github_link = f'<a href="{info.my_github_url}"><img src="{info.github_image_url}" alt = "Github" width = "65" height = "65"></a>'
st.sidebar.markdown(github_link, unsafe_allow_html=True)
st.sidebar.text("Or email me!")
email_html = f'<a href = "mailto:{info.my_email_address}"><img src = "{info.email_image_url}" alt = "Email" width = "75" height = "75"></a>'
st.sidebar.markdown(email_html, unsafe_allow_html=True)
links_section()
#Education
def education_section(education_data, course_data):
st.header("📖Education")
st.subheader(f"**{education_data['Institution']}**")
st.write(f"**Degree:**{education_data['Degree']}")
st.write(f"**Graduation Data:**{education_data['Graduation Date']}")
st.write(f"**GPA:**{education_data['GPA']}")
st.write("**Relevant Coursework:**")
coursework = pd.DataFrame(course_data)
st.dataframe(coursework, column_config={
"code": "Course Code",
"names": "Course Names",
"semester_taken": "Semester Taken",
"skills": "What I Learned"},
hide_index=True,
)
st.write("--")
education_section(info.education_data, info.course_data)
#Professional Experience
def experience_section(experience_data):
st.header("💼Professional Experience")
for job_title, (job_description,image) in experience_data.items():
expander = st.expander(f"{job_title}")
expander.image(image, width=250)
for bullet in job_description:
expander.write(bullet)
st.write("--")
experience_section(info.experience_data)
#Projects
def project_section(projects_data):
st.header("👩💻Movie Project")
for project_name, project_description in projects_data.items():
expander = st.expander(f"{project_name}")
expander.write(project_description)
st.write("--")
project_section(info.projects_data)
#Skills
def skills_section(programming_data, spoken_data):
st.header("✍️Skills")
st.subheader("Programming Languages")
for skill, percentage in programming_data.items():
st.write(f"{skill}{info.programming_icons.get(skill, '')}")
st.progress(percentage)
st.subheader("Spoken Languages")
for spoken, proficiency in spoken_data.items():
st.write(f"{spoken}{info.spoken_icons.get(spoken, '')}:{proficiency}")
st.write("--")
skills_section(info.programming_data, info.spoken_data)
#Activities
def activities_section(leadership_data, activity_data):
st.header("🩰Activities")
tab1, tab2 = st.tabs(["Leadership", "Community Service"])
with tab1:
st.subheader("Leadership")
for title, (details,image) in leadership_data.items():
expander = st.expander(f"{title}")
expander.image(image, width=250)
for bullet in details:
expander.write(bullet)
with tab2:
st.subheader("Community Service")
for title, (details,image) in activity_data.items():
expander = st.expander(f"{title}")
for bullet in details:
expander.write(bullet)
st.write("--")
activities_section(info.leadership_data, info.activity_data)