Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,117 +1,123 @@
|
|
1 |
-
import streamlit as st
|
2 |
-
|
3 |
-
# --- PAGE CONFIGURATION ---
|
4 |
-
st.set_page_config(
|
5 |
-
page_title="EdTech & Career Counselling",
|
6 |
-
page_icon="π",
|
7 |
-
layout="wide"
|
8 |
-
)
|
9 |
-
|
10 |
-
# --- STYLING (CUSTOM CSS) ---
|
11 |
-
st.markdown("""
|
12 |
-
<style>
|
13 |
-
body {
|
14 |
-
background-color: #f4f6f9;
|
15 |
-
}
|
16 |
-
.main-title {
|
17 |
-
font-size: 40px;
|
18 |
-
font-weight: bold;
|
19 |
-
color: #2c3e50;
|
20 |
-
text-align: center;
|
21 |
-
}
|
22 |
-
.sub-title {
|
23 |
-
font-size: 22px;
|
24 |
-
font-weight: 500;
|
25 |
-
color: #34495e;
|
26 |
-
text-align: center;
|
27 |
-
}
|
28 |
-
.custom-button {
|
29 |
-
background-color: #3498db;
|
30 |
-
color: white;
|
31 |
-
padding: 10px;
|
32 |
-
border-radius: 5px;
|
33 |
-
text-align: center;
|
34 |
-
font-size: 18px;
|
35 |
-
width: 100%;
|
36 |
-
cursor: pointer;
|
37 |
-
}
|
38 |
-
.custom-button:hover {
|
39 |
-
background-color: #2980b9;
|
40 |
-
}
|
41 |
-
.box {
|
42 |
-
background-color: white;
|
43 |
-
padding: 20px;
|
44 |
-
border-radius: 10px;
|
45 |
-
box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
|
46 |
-
margin-bottom: 20px;
|
47 |
-
}
|
48 |
-
</style>
|
49 |
-
""", unsafe_allow_html=True)
|
50 |
-
|
51 |
-
# --- SIDEBAR NAVIGATION ---
|
52 |
-
# st.sidebar.image("https://cdn-icons-png.flaticon.com/512/2944/2944397.png", width=150)
|
53 |
-
st.sidebar.title("π EdTech & Counselling")
|
54 |
-
menu = st.sidebar.radio("Navigate", [
|
55 |
-
"Home", "Mock Interview", "AI Counsellor",
|
56 |
-
"Progress Monitoring", "Recruitment"
|
57 |
-
])
|
58 |
-
|
59 |
-
# --- HOME PAGE ---
|
60 |
-
if menu == "Home":
|
61 |
-
st.markdown("<h1 class='main-title'>Welcome to EdTech & Career Counselling</h1>", unsafe_allow_html=True)
|
62 |
-
st.markdown("<p class='sub-title'>Empowering your learning and career journey with AI-powered guidance.</p>", unsafe_allow_html=True)
|
63 |
-
|
64 |
-
# Login Section
|
65 |
-
with st.container():
|
66 |
-
st.subheader("π Login to Access Your Dashboard")
|
67 |
-
col1, col2 = st.columns([1, 2])
|
68 |
-
with col1:
|
69 |
-
username = st.text_input("Username")
|
70 |
-
password = st.text_input("Password", type="password")
|
71 |
-
if st.button("Login", key="login_btn"):
|
72 |
-
st.success(f"Welcome, {username}!")
|
73 |
-
|
74 |
-
# Features Section
|
75 |
-
st.subheader("π Key Features")
|
76 |
-
col1, col2, col3 = st.columns(3)
|
77 |
-
with col1:
|
78 |
-
st.markdown("<div class='box'><h3>π Personalized Learning</h3><p>Get a custom learning plan tailored to your skills and goals.</p></div>", unsafe_allow_html=True)
|
79 |
-
with col2:
|
80 |
-
st.markdown("<div class='box'><h3>π AI-Powered Mock Interview</h3><p>Take tests to assess and improve your knowledge.</p></div>", unsafe_allow_html=True)
|
81 |
-
with col3:
|
82 |
-
st.markdown("<div class='box'><h3>π€ AI Career Counsellor</h3><p>Receive personalized career advice based on your skills.</p></div>", unsafe_allow_html=True)
|
83 |
-
|
84 |
-
st.markdown("<br>", unsafe_allow_html=True)
|
85 |
-
st.markdown("<div class='custom-button'>Explore Features</div>", unsafe_allow_html=True)
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
st.
|
91 |
-
|
92 |
-
st.components.v1.iframe(
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
st.
|
98 |
-
|
99 |
-
st.components.v1.iframe(
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
st.
|
105 |
-
|
106 |
-
st.
|
107 |
-
|
108 |
-
# ---
|
109 |
-
elif menu == "
|
110 |
-
st.title("
|
111 |
-
st.write("
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
st.
|
117 |
-
st.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import streamlit as st
|
2 |
+
|
3 |
+
# --- PAGE CONFIGURATION ---
|
4 |
+
st.set_page_config(
|
5 |
+
page_title="EdTech & Career Counselling",
|
6 |
+
page_icon="π",
|
7 |
+
layout="wide"
|
8 |
+
)
|
9 |
+
|
10 |
+
# --- STYLING (CUSTOM CSS) ---
|
11 |
+
st.markdown("""
|
12 |
+
<style>
|
13 |
+
body {
|
14 |
+
background-color: #f4f6f9;
|
15 |
+
}
|
16 |
+
.main-title {
|
17 |
+
font-size: 40px;
|
18 |
+
font-weight: bold;
|
19 |
+
color: #2c3e50;
|
20 |
+
text-align: center;
|
21 |
+
}
|
22 |
+
.sub-title {
|
23 |
+
font-size: 22px;
|
24 |
+
font-weight: 500;
|
25 |
+
color: #34495e;
|
26 |
+
text-align: center;
|
27 |
+
}
|
28 |
+
.custom-button {
|
29 |
+
background-color: #3498db;
|
30 |
+
color: white;
|
31 |
+
padding: 10px;
|
32 |
+
border-radius: 5px;
|
33 |
+
text-align: center;
|
34 |
+
font-size: 18px;
|
35 |
+
width: 100%;
|
36 |
+
cursor: pointer;
|
37 |
+
}
|
38 |
+
.custom-button:hover {
|
39 |
+
background-color: #2980b9;
|
40 |
+
}
|
41 |
+
.box {
|
42 |
+
background-color: white;
|
43 |
+
padding: 20px;
|
44 |
+
border-radius: 10px;
|
45 |
+
box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
|
46 |
+
margin-bottom: 20px;
|
47 |
+
}
|
48 |
+
</style>
|
49 |
+
""", unsafe_allow_html=True)
|
50 |
+
|
51 |
+
# --- SIDEBAR NAVIGATION ---
|
52 |
+
# st.sidebar.image("https://cdn-icons-png.flaticon.com/512/2944/2944397.png", width=150)
|
53 |
+
st.sidebar.title("π EdTech & Counselling")
|
54 |
+
menu = st.sidebar.radio("Navigate", [
|
55 |
+
"Home", "Mock Interview", "AI Counsellor",
|
56 |
+
"Progress Monitoring", "Recruitment"
|
57 |
+
])
|
58 |
+
|
59 |
+
# --- HOME PAGE ---
|
60 |
+
if menu == "Home":
|
61 |
+
st.markdown("<h1 class='main-title'>Welcome to EdTech & Career Counselling</h1>", unsafe_allow_html=True)
|
62 |
+
st.markdown("<p class='sub-title'>Empowering your learning and career journey with AI-powered guidance.</p>", unsafe_allow_html=True)
|
63 |
+
|
64 |
+
# Login Section
|
65 |
+
with st.container():
|
66 |
+
st.subheader("π Login to Access Your Dashboard")
|
67 |
+
col1, col2 = st.columns([1, 2])
|
68 |
+
with col1:
|
69 |
+
username = st.text_input("Username")
|
70 |
+
password = st.text_input("Password", type="password")
|
71 |
+
if st.button("Login", key="login_btn"):
|
72 |
+
st.success(f"Welcome, {username}!")
|
73 |
+
|
74 |
+
# Features Section
|
75 |
+
st.subheader("π Key Features")
|
76 |
+
col1, col2, col3 = st.columns(3)
|
77 |
+
with col1:
|
78 |
+
st.markdown("<div class='box'><h3>π Personalized Learning</h3><p>Get a custom learning plan tailored to your skills and goals.</p></div>", unsafe_allow_html=True)
|
79 |
+
with col2:
|
80 |
+
st.markdown("<div class='box'><h3>π AI-Powered Mock Interview</h3><p>Take tests to assess and improve your knowledge.</p></div>", unsafe_allow_html=True)
|
81 |
+
with col3:
|
82 |
+
st.markdown("<div class='box'><h3>π€ AI Career Counsellor</h3><p>Receive personalized career advice based on your skills.</p></div>", unsafe_allow_html=True)
|
83 |
+
|
84 |
+
st.markdown("<br>", unsafe_allow_html=True)
|
85 |
+
st.markdown("<div class='custom-button'>Explore Features</div>", unsafe_allow_html=True)
|
86 |
+
|
87 |
+
|
88 |
+
# --- AI COUNSELLOR ---
|
89 |
+
elif menu == "AI Counsellor":
|
90 |
+
st.title("π€ AI Career Counsellor")
|
91 |
+
hf_counsellor_url = "https://temo12-careergps.hf.space"
|
92 |
+
st.components.v1.iframe(hf_counsellor_url, width=1000, height=500, scrolling=True)
|
93 |
+
|
94 |
+
# --- COURSE RECOMMENDER ---
|
95 |
+
elif menu == "Course Recommender":
|
96 |
+
st.title("π Smart Course Recommender")
|
97 |
+
st.write("Find the course suitable for your needs.")
|
98 |
+
hf_space_url = "https://abhaykumar04-smart-course-search.hf.space"
|
99 |
+
st.components.v1.iframe(hf_space_url, width=1400, height=1000, scrolling=True)
|
100 |
+
|
101 |
+
# --- Mock Interview ---
|
102 |
+
elif menu == "Mock Interview":
|
103 |
+
st.title("π Mock Interview")
|
104 |
+
st.write("Take AI-powered assessments to evaluate your skills.")
|
105 |
+
hf_space_url = "https://bonbibi-mock-interview-questions.hf.space"
|
106 |
+
st.components.v1.iframe(hf_space_url, width=1200, height=1000, scrolling=True)
|
107 |
+
|
108 |
+
# --- PROGRESS MONITORING ---
|
109 |
+
elif menu == "Progress Monitoring":
|
110 |
+
st.title("π Progress Tracking")
|
111 |
+
st.write("View your test results and skill growth.")
|
112 |
+
st.line_chart([10, 20, 15, 30, 40, 35]) # Placeholder graph
|
113 |
+
|
114 |
+
# --- RECRUITMENT OPPORTUNITIES ---
|
115 |
+
elif menu == "Recruitment":
|
116 |
+
st.title("πΌ Recruitment Opportunities")
|
117 |
+
st.write("Find job openings that match your skills.")
|
118 |
+
hf_recruitment_url = "https://charulp2499-jobscrapper.hf.space"
|
119 |
+
st.components.v1.iframe(hf_recruitment_url, width=1400, height=1500, scrolling=True)
|
120 |
+
|
121 |
+
# --- FOOTER ---
|
122 |
+
st.sidebar.markdown("---")
|
123 |
+
st.sidebar.info("Β© 2025 Amdocs GenAI Participant")
|