lanna_lalala;- commited on
Commit Β·
bfa8482
1
Parent(s): 78f9beb
welcome css try
Browse files- phase/welcome.py +17 -3
phase/welcome.py
CHANGED
|
@@ -57,6 +57,14 @@ def welcomeui():
|
|
| 57 |
border-radius: 10px;
|
| 58 |
font-weight: 600;
|
| 59 |
box-shadow: 2px 2px 8px rgba(0,0,0,0.1);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 60 |
}}
|
| 61 |
|
| 62 |
.card {{
|
|
@@ -66,6 +74,13 @@ def welcomeui():
|
|
| 66 |
margin-bottom: 2rem;
|
| 67 |
box-shadow: 0 5px 15px rgba(0,0,0,0.1);
|
| 68 |
text-align: center;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 69 |
}}
|
| 70 |
|
| 71 |
.card-icon {{
|
|
@@ -79,7 +94,7 @@ def welcomeui():
|
|
| 79 |
st.markdown(f"""
|
| 80 |
<div class="hero">
|
| 81 |
<img src="data:image/png;base64,{logo_base64}" width="120" style="margin-bottom:1rem;" />
|
| 82 |
-
<h1>Welcome to
|
| 83 |
<p style="font-size: 1.2rem; max-width: 700px; margin: auto;">
|
| 84 |
The fun and engaging platform that makes financial literacy accessible for students and easy to teach! β¨π
|
| 85 |
</p>
|
|
@@ -159,8 +174,7 @@ def welcomeui():
|
|
| 159 |
|
| 160 |
def show_page():
|
| 161 |
load_css(os.path.join("assets", "styles.css"))
|
| 162 |
-
|
| 163 |
-
st.title("πΉ Welcome to $mart Kids App")
|
| 164 |
|
| 165 |
# β
Only show this when user is logged in
|
| 166 |
if "user" in st.session_state and st.session_state.user:
|
|
|
|
| 57 |
border-radius: 10px;
|
| 58 |
font-weight: 600;
|
| 59 |
box-shadow: 2px 2px 8px rgba(0,0,0,0.1);
|
| 60 |
+
transition: all 0.3s ease;
|
| 61 |
+
}}
|
| 62 |
+
|
| 63 |
+
.badge:hover {{
|
| 64 |
+
background-color: #f0f0ff;
|
| 65 |
+
transform: scale(1.05);
|
| 66 |
+
box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.2);
|
| 67 |
+
cursor: pointer;
|
| 68 |
}}
|
| 69 |
|
| 70 |
.card {{
|
|
|
|
| 74 |
margin-bottom: 2rem;
|
| 75 |
box-shadow: 0 5px 15px rgba(0,0,0,0.1);
|
| 76 |
text-align: center;
|
| 77 |
+
transition: all 0.3s ease;
|
| 78 |
+
}}
|
| 79 |
+
|
| 80 |
+
.card:hover {{
|
| 81 |
+
transform: scale(1.02);
|
| 82 |
+
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
|
| 83 |
+
cursor: default;
|
| 84 |
}}
|
| 85 |
|
| 86 |
.card-icon {{
|
|
|
|
| 94 |
st.markdown(f"""
|
| 95 |
<div class="hero">
|
| 96 |
<img src="data:image/png;base64,{logo_base64}" width="120" style="margin-bottom:1rem;" />
|
| 97 |
+
<h1>Welcome to $martKid π</h1>
|
| 98 |
<p style="font-size: 1.2rem; max-width: 700px; margin: auto;">
|
| 99 |
The fun and engaging platform that makes financial literacy accessible for students and easy to teach! β¨π
|
| 100 |
</p>
|
|
|
|
| 174 |
|
| 175 |
def show_page():
|
| 176 |
load_css(os.path.join("assets", "styles.css"))
|
| 177 |
+
|
|
|
|
| 178 |
|
| 179 |
# β
Only show this when user is logged in
|
| 180 |
if "user" in st.session_state and st.session_state.user:
|