Update app.py
Browse files
app.py
CHANGED
|
@@ -37,6 +37,32 @@ st.set_page_config(
|
|
| 37 |
initial_sidebar_state="collapsed",
|
| 38 |
)
|
| 39 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 40 |
# βββ CSS ββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 41 |
st.markdown("""
|
| 42 |
<link rel="preconnect" href="https://fonts.googleapis.com">
|
|
|
|
| 37 |
initial_sidebar_state="collapsed",
|
| 38 |
)
|
| 39 |
|
| 40 |
+
# Add at top of file (if not already):
|
| 41 |
+
import streamlit.components.v1 as components
|
| 42 |
+
|
| 43 |
+
# Replace the large st.markdown(...) CSS block with this:
|
| 44 |
+
_css_html = r"""
|
| 45 |
+
<link rel="preconnect" href="https://fonts.googleapis.com">
|
| 46 |
+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
| 47 |
+
<link href="https://fonts.googleapis.com/css2?family=Source+Serif+4:ital,wght@0,300;0,600;0,700;1,400&family=IBM+Plex+Mono:wght@400;500&family=Outfit:wght@300;400;500;600&display=swap" rel="stylesheet">
|
| 48 |
+
<style>
|
| 49 |
+
/* ββ hide streamlit chrome ββ */
|
| 50 |
+
#MainMenu, footer, header { visibility: hidden; }
|
| 51 |
+
.stDeployButton, [data-testid="stToolbar"] { display: none; }
|
| 52 |
+
[data-testid="collapsedControl"] { display: none !important; }
|
| 53 |
+
section[data-testid="stSidebar"] { display: none !important; }
|
| 54 |
+
|
| 55 |
+
/* (rest of your CSS here β copy exactly) */
|
| 56 |
+
:root {
|
| 57 |
+
--bg: #090E1A;
|
| 58 |
+
/* ... all variables and rules ... */
|
| 59 |
+
}
|
| 60 |
+
... (paste the entire CSS block exactly) ...
|
| 61 |
+
</style>
|
| 62 |
+
"""
|
| 63 |
+
# Use components.html to ensure raw HTML/CSS is interpreted:
|
| 64 |
+
components.html(_css_html, height=0, scrolling=False)
|
| 65 |
+
|
| 66 |
# βββ CSS ββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 67 |
st.markdown("""
|
| 68 |
<link rel="preconnect" href="https://fonts.googleapis.com">
|