Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -43,43 +43,31 @@ section[data-testid="stSidebar"] {
|
|
| 43 |
position:absolute!important;
|
| 44 |
}
|
| 45 |
|
| 46 |
-
/*
|
| 47 |
html, body {
|
| 48 |
margin:0 !important;
|
| 49 |
padding:0 !important;
|
| 50 |
width:100% !important;
|
| 51 |
-
height:100% !important;
|
| 52 |
background:#07070f !important;
|
| 53 |
font-family:'DM Sans', sans-serif !important;
|
| 54 |
overflow-x: hidden !important;
|
| 55 |
overflow-y: auto !important;
|
| 56 |
-
position: relative !important;
|
| 57 |
}
|
| 58 |
|
| 59 |
.stApp {
|
| 60 |
background:#07070f !important;
|
| 61 |
min-height: 100vh !important;
|
| 62 |
-
height: auto !important;
|
| 63 |
-
overflow: visible !important;
|
| 64 |
}
|
| 65 |
|
| 66 |
[data-testid="stAppViewContainer"] {
|
| 67 |
background:#07070f !important;
|
| 68 |
-
padding:0 !important;
|
| 69 |
-
margin:0 !important;
|
| 70 |
width:100% !important;
|
| 71 |
min-height: 100vh !important;
|
| 72 |
-
height: auto !important;
|
| 73 |
-
overflow: visible !important;
|
| 74 |
-
position: relative !important;
|
| 75 |
}
|
| 76 |
|
| 77 |
[data-testid="stAppViewContainer"] > section {
|
| 78 |
padding:0 !important;
|
| 79 |
width:100% !important;
|
| 80 |
-
min-height: 100vh !important;
|
| 81 |
-
height: auto !important;
|
| 82 |
-
overflow: visible !important;
|
| 83 |
}
|
| 84 |
|
| 85 |
[data-testid="stAppViewContainer"] > section > div.block-container {
|
|
@@ -87,28 +75,11 @@ html, body {
|
|
| 87 |
margin:0 !important;
|
| 88 |
max-width:100% !important;
|
| 89 |
width:100% !important;
|
| 90 |
-
height: auto !important;
|
| 91 |
-
overflow: visible !important;
|
| 92 |
-
}
|
| 93 |
-
|
| 94 |
-
/* Allow normal scrolling */
|
| 95 |
-
.main .block-container {
|
| 96 |
-
padding:0 !important;
|
| 97 |
-
margin:0 !important;
|
| 98 |
-
height: auto !important;
|
| 99 |
-
overflow: visible !important;
|
| 100 |
}
|
| 101 |
|
| 102 |
-
/*
|
| 103 |
-
[data-testid="stVerticalBlock"] {
|
| 104 |
-
|
| 105 |
-
height: auto !important;
|
| 106 |
-
}
|
| 107 |
-
[data-testid="element-container"] {
|
| 108 |
-
margin:0 !important;
|
| 109 |
-
padding:0 !important;
|
| 110 |
-
height: auto !important;
|
| 111 |
-
}
|
| 112 |
|
| 113 |
/* Buttons */
|
| 114 |
.stButton > button {
|
|
@@ -174,23 +145,6 @@ div[data-baseweb="input"] input {
|
|
| 174 |
border-radius:10px !important;
|
| 175 |
font-size:0.88rem !important;
|
| 176 |
}
|
| 177 |
-
|
| 178 |
-
/* Auth card container - ensure it's scrollable */
|
| 179 |
-
.auth-card-container {
|
| 180 |
-
min-height: calc(100vh - 200px) !important;
|
| 181 |
-
height: auto !important;
|
| 182 |
-
display: flex !important;
|
| 183 |
-
align-items: center !important;
|
| 184 |
-
justify-content: center !important;
|
| 185 |
-
padding: 20px !important;
|
| 186 |
-
overflow: visible !important;
|
| 187 |
-
}
|
| 188 |
-
|
| 189 |
-
/* Fix for any absolute positioning that might cause issues */
|
| 190 |
-
[data-testid="column"] {
|
| 191 |
-
position: relative !important;
|
| 192 |
-
height: auto !important;
|
| 193 |
-
}
|
| 194 |
</style>
|
| 195 |
""", unsafe_allow_html=True)
|
| 196 |
|
|
@@ -282,7 +236,7 @@ if mode == "landing":
|
|
| 282 |
</div>
|
| 283 |
""", unsafe_allow_html=True)
|
| 284 |
|
| 285 |
-
# CTA buttons
|
| 286 |
_, cta_l, cta_r, _ = st.columns([2, 1.2, 1.2, 2])
|
| 287 |
with cta_l:
|
| 288 |
if st.button("β‘ Start for Free", key="hero_start", use_container_width=True):
|
|
@@ -326,10 +280,10 @@ if mode == "landing":
|
|
| 326 |
st.markdown("<div style='height:60px'></div>", unsafe_allow_html=True)
|
| 327 |
|
| 328 |
# ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 329 |
-
# AUTH PAGES
|
| 330 |
# ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 331 |
else:
|
| 332 |
-
# Simple header
|
| 333 |
st.markdown("""
|
| 334 |
<div style="padding:20px 40px 16px;border-bottom:1px solid rgba(99,102,241,0.10);
|
| 335 |
background:#07070f">
|
|
@@ -340,8 +294,8 @@ else:
|
|
| 340 |
</span>
|
| 341 |
</div>
|
| 342 |
""", unsafe_allow_html=True)
|
| 343 |
-
|
| 344 |
-
# Background with
|
| 345 |
st.markdown("""
|
| 346 |
<div style="
|
| 347 |
background:
|
|
@@ -349,19 +303,12 @@ else:
|
|
| 349 |
radial-gradient(ellipse 45% 40% at 85% 75%,rgba(139,92,246,0.08) 0%,transparent 55%),
|
| 350 |
radial-gradient(circle,rgba(255,255,255,0.025) 1px,transparent 1px) 0 0/30px 30px,
|
| 351 |
#07070f;
|
| 352 |
-
min-height: calc(100vh - 65px);
|
| 353 |
-
height: auto;
|
| 354 |
width: 100%;
|
| 355 |
-
position: relative;
|
| 356 |
-
overflow: visible;
|
| 357 |
padding: 40px 24px;
|
| 358 |
-
display: flex;
|
| 359 |
-
align-items: flex-start;
|
| 360 |
-
justify-content: center;
|
| 361 |
">
|
| 362 |
""", unsafe_allow_html=True)
|
| 363 |
-
|
| 364 |
-
# Centered card
|
| 365 |
_, mid, _ = st.columns([1, 1.4, 1])
|
| 366 |
with mid:
|
| 367 |
# Back home button
|
|
@@ -369,11 +316,12 @@ else:
|
|
| 369 |
with back_col:
|
| 370 |
if st.button("β Home", key="back_home"):
|
| 371 |
st.session_state.mode = "landing"; st.rerun()
|
| 372 |
-
|
|
|
|
| 373 |
st.markdown("""
|
| 374 |
<div style="background:rgba(10,10,20,0.97);
|
| 375 |
border:1px solid rgba(99,102,241,0.30);border-radius:20px;
|
| 376 |
-
padding:36px 40px 32px;position:relative;
|
| 377 |
box-shadow:0 32px 80px rgba(0,0,0,0.60),0 0 0 1px rgba(99,102,241,0.06);
|
| 378 |
margin: 20px 0;">
|
| 379 |
<div style="position:absolute;top:0;left:0;right:0;height:2px;
|
|
@@ -512,7 +460,6 @@ else:
|
|
| 512 |
if st.button("Sign in β", key="to_login", use_container_width=True):
|
| 513 |
st.session_state.mode = "login"; st.rerun()
|
| 514 |
|
| 515 |
-
st.markdown("</div>", unsafe_allow_html=True)
|
| 516 |
|
| 517 |
-
#
|
| 518 |
-
st.markdown("</div>", unsafe_allow_html=True)
|
|
|
|
| 43 |
position:absolute!important;
|
| 44 |
}
|
| 45 |
|
| 46 |
+
/* Natural document flow for auth pages */
|
| 47 |
html, body {
|
| 48 |
margin:0 !important;
|
| 49 |
padding:0 !important;
|
| 50 |
width:100% !important;
|
|
|
|
| 51 |
background:#07070f !important;
|
| 52 |
font-family:'DM Sans', sans-serif !important;
|
| 53 |
overflow-x: hidden !important;
|
| 54 |
overflow-y: auto !important;
|
|
|
|
| 55 |
}
|
| 56 |
|
| 57 |
.stApp {
|
| 58 |
background:#07070f !important;
|
| 59 |
min-height: 100vh !important;
|
|
|
|
|
|
|
| 60 |
}
|
| 61 |
|
| 62 |
[data-testid="stAppViewContainer"] {
|
| 63 |
background:#07070f !important;
|
|
|
|
|
|
|
| 64 |
width:100% !important;
|
| 65 |
min-height: 100vh !important;
|
|
|
|
|
|
|
|
|
|
| 66 |
}
|
| 67 |
|
| 68 |
[data-testid="stAppViewContainer"] > section {
|
| 69 |
padding:0 !important;
|
| 70 |
width:100% !important;
|
|
|
|
|
|
|
|
|
|
| 71 |
}
|
| 72 |
|
| 73 |
[data-testid="stAppViewContainer"] > section > div.block-container {
|
|
|
|
| 75 |
margin:0 !important;
|
| 76 |
max-width:100% !important;
|
| 77 |
width:100% !important;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 78 |
}
|
| 79 |
|
| 80 |
+
/* Remove all extra gaps */
|
| 81 |
+
[data-testid="stVerticalBlock"] { gap:0 !important; }
|
| 82 |
+
[data-testid="element-container"] { margin:0 !important; padding:0 !important; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 83 |
|
| 84 |
/* Buttons */
|
| 85 |
.stButton > button {
|
|
|
|
| 145 |
border-radius:10px !important;
|
| 146 |
font-size:0.88rem !important;
|
| 147 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 148 |
</style>
|
| 149 |
""", unsafe_allow_html=True)
|
| 150 |
|
|
|
|
| 236 |
</div>
|
| 237 |
""", unsafe_allow_html=True)
|
| 238 |
|
| 239 |
+
# CTA buttons
|
| 240 |
_, cta_l, cta_r, _ = st.columns([2, 1.2, 1.2, 2])
|
| 241 |
with cta_l:
|
| 242 |
if st.button("β‘ Start for Free", key="hero_start", use_container_width=True):
|
|
|
|
| 280 |
st.markdown("<div style='height:60px'></div>", unsafe_allow_html=True)
|
| 281 |
|
| 282 |
# ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 283 |
+
# AUTH PAGES (Login / Signup / OTP) β simplified natural flow
|
| 284 |
# ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 285 |
else:
|
| 286 |
+
# Simple header
|
| 287 |
st.markdown("""
|
| 288 |
<div style="padding:20px 40px 16px;border-bottom:1px solid rgba(99,102,241,0.10);
|
| 289 |
background:#07070f">
|
|
|
|
| 294 |
</span>
|
| 295 |
</div>
|
| 296 |
""", unsafe_allow_html=True)
|
| 297 |
+
|
| 298 |
+
# Background with subtle gradient (no flex, just padding)
|
| 299 |
st.markdown("""
|
| 300 |
<div style="
|
| 301 |
background:
|
|
|
|
| 303 |
radial-gradient(ellipse 45% 40% at 85% 75%,rgba(139,92,246,0.08) 0%,transparent 55%),
|
| 304 |
radial-gradient(circle,rgba(255,255,255,0.025) 1px,transparent 1px) 0 0/30px 30px,
|
| 305 |
#07070f;
|
|
|
|
|
|
|
| 306 |
width: 100%;
|
|
|
|
|
|
|
| 307 |
padding: 40px 24px;
|
|
|
|
|
|
|
|
|
|
| 308 |
">
|
| 309 |
""", unsafe_allow_html=True)
|
| 310 |
+
|
| 311 |
+
# Centered card using columns
|
| 312 |
_, mid, _ = st.columns([1, 1.4, 1])
|
| 313 |
with mid:
|
| 314 |
# Back home button
|
|
|
|
| 316 |
with back_col:
|
| 317 |
if st.button("β Home", key="back_home"):
|
| 318 |
st.session_state.mode = "landing"; st.rerun()
|
| 319 |
+
|
| 320 |
+
# Auth card
|
| 321 |
st.markdown("""
|
| 322 |
<div style="background:rgba(10,10,20,0.97);
|
| 323 |
border:1px solid rgba(99,102,241,0.30);border-radius:20px;
|
| 324 |
+
padding:36px 40px 32px;position:relative;
|
| 325 |
box-shadow:0 32px 80px rgba(0,0,0,0.60),0 0 0 1px rgba(99,102,241,0.06);
|
| 326 |
margin: 20px 0;">
|
| 327 |
<div style="position:absolute;top:0;left:0;right:0;height:2px;
|
|
|
|
| 460 |
if st.button("Sign in β", key="to_login", use_container_width=True):
|
| 461 |
st.session_state.mode = "login"; st.rerun()
|
| 462 |
|
| 463 |
+
st.markdown("</div>", unsafe_allow_html=True) # close auth card
|
| 464 |
|
| 465 |
+
st.markdown("</div>", unsafe_allow_html=True) # close background div
|
|
|