Spaces:
Running
Running
Update src/streamlit_app.py
Browse files- src/streamlit_app.py +61 -36
src/streamlit_app.py
CHANGED
@@ -1,40 +1,65 @@
|
|
1 |
-
import altair as alt
|
2 |
-
import numpy as np
|
3 |
-
import pandas as pd
|
4 |
import streamlit as st
|
5 |
|
6 |
-
|
7 |
-
|
8 |
|
9 |
-
|
10 |
-
|
11 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
12 |
|
13 |
-
|
14 |
-
"""
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
x = radius * np.cos(theta)
|
24 |
-
y = radius * np.sin(theta)
|
25 |
-
|
26 |
-
df = pd.DataFrame({
|
27 |
-
"x": x,
|
28 |
-
"y": y,
|
29 |
-
"idx": indices,
|
30 |
-
"rand": np.random.randn(num_points),
|
31 |
-
})
|
32 |
-
|
33 |
-
st.altair_chart(alt.Chart(df, height=700, width=700)
|
34 |
-
.mark_point(filled=True)
|
35 |
-
.encode(
|
36 |
-
x=alt.X("x", axis=None),
|
37 |
-
y=alt.Y("y", axis=None),
|
38 |
-
color=alt.Color("idx", legend=None, scale=alt.Scale()),
|
39 |
-
size=alt.Size("rand", legend=None, scale=alt.Scale(range=[1, 150])),
|
40 |
-
))
|
|
|
|
|
|
|
|
|
1 |
import streamlit as st
|
2 |
|
3 |
+
# Page config with icon and wide layout for more space
|
4 |
+
st.set_page_config(page_title="App Maintenance - Available Here", page_icon="🛠️", layout="centered")
|
5 |
|
6 |
+
# Hide default Streamlit style elements for cleaner look
|
7 |
+
st.markdown("""
|
8 |
+
<style>
|
9 |
+
#MainMenu {visibility: hidden;}
|
10 |
+
footer {visibility: hidden;}
|
11 |
+
header {visibility: hidden;}
|
12 |
+
body {
|
13 |
+
background: linear-gradient(135deg, #74ebd5 0%, #ACB6E5 100%);
|
14 |
+
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
15 |
+
}
|
16 |
+
.container {
|
17 |
+
text-align: center;
|
18 |
+
padding: 80px 20px;
|
19 |
+
border-radius: 15px;
|
20 |
+
background-color: rgba(255,255,255,0.9);
|
21 |
+
box-shadow: 0 8px 24px rgba(0,0,0,0.2);
|
22 |
+
max-width: 600px;
|
23 |
+
margin: auto;
|
24 |
+
}
|
25 |
+
.title {
|
26 |
+
font-size: 56px;
|
27 |
+
font-weight: 700;
|
28 |
+
color: #003366;
|
29 |
+
margin-bottom: 10px;
|
30 |
+
}
|
31 |
+
.subtitle {
|
32 |
+
font-size: 22px;
|
33 |
+
color: #555555;
|
34 |
+
margin-bottom: 40px;
|
35 |
+
}
|
36 |
+
.btn-primary {
|
37 |
+
background-color: #0066cc;
|
38 |
+
color: white !important;
|
39 |
+
padding: 18px 36px;
|
40 |
+
font-size: 20px;
|
41 |
+
font-weight: 600;
|
42 |
+
border-radius: 10px;
|
43 |
+
text-decoration: none;
|
44 |
+
box-shadow: 0 4px 12px rgba(0,102,204,0.3);
|
45 |
+
transition: all 0.3s ease;
|
46 |
+
display: inline-block;
|
47 |
+
}
|
48 |
+
.btn-primary:hover {
|
49 |
+
background-color: #004a99;
|
50 |
+
box-shadow: 0 6px 20px rgba(0,75,153,0.4);
|
51 |
+
color: #e0e0e0 !important;
|
52 |
+
}
|
53 |
+
</style>
|
54 |
+
""", unsafe_allow_html=True)
|
55 |
|
56 |
+
# Main container content
|
57 |
+
st.markdown("""
|
58 |
+
<div class="container">
|
59 |
+
<div class="title">🛠️ We're Improving Your Experience</div>
|
60 |
+
<div class="subtitle">
|
61 |
+
Our app is undergoing scheduled maintenance, but don't worry, <br>you can still explore!
|
62 |
+
</div>
|
63 |
+
<a class="btn-primary" href="https://kind-bream-informed.ngrok-free.app/" target="_blank">Live App</a>
|
64 |
+
</div>
|
65 |
+
""", unsafe_allow_html=True)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|