Spaces:
Running
Running
Video Background
Browse files
app.py
CHANGED
@@ -37,17 +37,33 @@ if not st.session_state.cleanup_done:
|
|
37 |
if not os.path.exists(UPLOAD_DIR):
|
38 |
os.makedirs(UPLOAD_DIR, exist_ok=True)
|
39 |
|
40 |
-
# Custom CSS for Xailor.ai-like theme with background
|
41 |
st.markdown(
|
42 |
"""
|
43 |
<style>
|
44 |
body {
|
45 |
-
|
46 |
-
|
47 |
font-family: 'Arial', sans-serif;
|
48 |
-
|
49 |
-
|
50 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
51 |
}
|
52 |
.stButton button {
|
53 |
background-color: #1F6FEB;
|
@@ -94,6 +110,18 @@ st.markdown(
|
|
94 |
unsafe_allow_html=True
|
95 |
)
|
96 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
97 |
# Xailor.ai-like header without logo
|
98 |
st.markdown(
|
99 |
"""
|
|
|
37 |
if not os.path.exists(UPLOAD_DIR):
|
38 |
os.makedirs(UPLOAD_DIR, exist_ok=True)
|
39 |
|
40 |
+
# Custom CSS for Xailor.ai-like theme with video background
|
41 |
st.markdown(
|
42 |
"""
|
43 |
<style>
|
44 |
body {
|
45 |
+
margin: 0;
|
46 |
+
padding: 0;
|
47 |
font-family: 'Arial', sans-serif;
|
48 |
+
color: #C9D1D9;
|
49 |
+
}
|
50 |
+
.main-bg {
|
51 |
+
position: fixed;
|
52 |
+
top: 0;
|
53 |
+
left: 0;
|
54 |
+
width: 100%;
|
55 |
+
height: 100%;
|
56 |
+
z-index: -1;
|
57 |
+
overflow: hidden;
|
58 |
+
}
|
59 |
+
.main-bg video {
|
60 |
+
position: absolute;
|
61 |
+
top: 50%;
|
62 |
+
left: 50%;
|
63 |
+
transform: translate(-50%, -50%);
|
64 |
+
width: 100%;
|
65 |
+
height: 100%;
|
66 |
+
object-fit: cover;
|
67 |
}
|
68 |
.stButton button {
|
69 |
background-color: #1F6FEB;
|
|
|
110 |
unsafe_allow_html=True
|
111 |
)
|
112 |
|
113 |
+
# HTML for video background
|
114 |
+
st.markdown(
|
115 |
+
"""
|
116 |
+
<div class="main-bg">
|
117 |
+
<video autoplay loop muted>
|
118 |
+
<source src="https://vimeo.com/464431550" type="video/mp4">
|
119 |
+
</video>
|
120 |
+
</div>
|
121 |
+
""",
|
122 |
+
unsafe_allow_html=True
|
123 |
+
)
|
124 |
+
|
125 |
# Xailor.ai-like header without logo
|
126 |
st.markdown(
|
127 |
"""
|