lanna_lalala;- commited on
Commit
e432420
Β·
1 Parent(s): a74c82c

lesson css try

Browse files
Files changed (2) hide show
  1. app.py +3 -7
  2. phase/welcome.py +11 -0
app.py CHANGED
@@ -12,6 +12,8 @@ from phase.Student_view import chatbot, lesson, quiz, game, teacherlink
12
  from phase.Teacher_view import classmanage,studentlist,contentmanage
13
  from phase.Student_view.games import profitpuzzle
14
  from utils import db,api
 
 
15
  import os, requests
16
 
17
  from utils.api import BACKEND
@@ -113,13 +115,7 @@ def main():
113
 
114
  # --- WELCOME PAGE ---
115
  if page == "Welcome":
116
- st.title("πŸ’Ή Welcome to FinEdu App")
117
- if st.session_state.user:
118
- st.success(f"Welcome back, {st.session_state.user['name']}! βœ…")
119
- st.write(
120
- "This app helps you improve your **financial education and numeracy skills**. \n"
121
- "πŸ‘‰ Use the sidebar to **Signup** or **Login** to get started."
122
- )
123
 
124
  # --- SIGNUP PAGE ---
125
  elif page == "Signup":
 
12
  from phase.Teacher_view import classmanage,studentlist,contentmanage
13
  from phase.Student_view.games import profitpuzzle
14
  from utils import db,api
15
+ from phase import Welcome
16
+
17
  import os, requests
18
 
19
  from utils.api import BACKEND
 
115
 
116
  # --- WELCOME PAGE ---
117
  if page == "Welcome":
118
+ Welcome.show_page()
 
 
 
 
 
 
119
 
120
  # --- SIGNUP PAGE ---
121
  elif page == "Signup":
phase/welcome.py ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # phase/Welcome.py
2
+ import streamlit as st
3
+
4
+ def show_page():
5
+ st.title("πŸ’Ή Welcome to FinEdu App")
6
+ if st.session_state.user:
7
+ st.success(f"Welcome back, {st.session_state.user['name']}! βœ…")
8
+ st.write(
9
+ "This app helps you improve your **financial education and numeracy skills**. \n"
10
+ "πŸ‘‰ Use the sidebar to **Signup** or **Login** to get started."
11
+ )