Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -17,193 +17,37 @@ from data_integration import scrape_all_pages
|
|
17 |
|
18 |
|
19 |
page_bg_img = f"""
|
20 |
-
<style>
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
|
|
|
|
|
|
|
|
25 |
}
|
26 |
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
display: flex;
|
32 |
-
position: absolute;
|
33 |
-
top: 0;
|
34 |
-
left: 0;
|
35 |
-
justify-content: center;
|
36 |
-
align-items: center;
|
37 |
-
font-size: 96px;
|
38 |
-
color: white;
|
39 |
-
opacity: 0.8;
|
40 |
-
user-select: none;
|
41 |
-
text-shadow: 1px 1px rgba(0,0,0,0.1);
|
42 |
}
|
43 |
-
|
44 |
-
:
|
45 |
-
|
46 |
-
|
47 |
-
--color1: 18, 113, 255;
|
48 |
-
--color2: 221, 74, 255;
|
49 |
-
--color3: 100, 220, 255;
|
50 |
-
--color4: 200, 50, 50;
|
51 |
-
--color5: 180, 180, 50;
|
52 |
-
--color-interactive: 140, 100, 255;
|
53 |
-
--circle-size: 80%;
|
54 |
-
--blending: hard-light;
|
55 |
}
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
}
|
61 |
-
50% {
|
62 |
-
transform: rotate(180deg);
|
63 |
-
}
|
64 |
-
100% {
|
65 |
-
transform: rotate(360deg);
|
66 |
-
}
|
67 |
}
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
}
|
73 |
-
50% {
|
74 |
-
transform: translateY(50%);
|
75 |
-
}
|
76 |
-
100% {
|
77 |
-
transform: translateY(-50%);
|
78 |
-
}
|
79 |
-
}
|
80 |
-
|
81 |
-
@keyframes moveHorizontal {
|
82 |
-
0% {
|
83 |
-
transform: translateX(-50%) translateY(-10%);
|
84 |
-
}
|
85 |
-
50% {
|
86 |
-
transform: translateX(50%) translateY(10%);
|
87 |
-
}
|
88 |
-
100% {
|
89 |
-
transform: translateX(-50%) translateY(-10%);
|
90 |
-
}
|
91 |
}
|
92 |
-
|
93 |
-
|
94 |
-
.gradient-bg {
|
95 |
-
width: 100vw;
|
96 |
-
height: 100vh;
|
97 |
-
position: relative;
|
98 |
-
overflow: hidden;
|
99 |
-
background: linear-gradient(40deg, var(--color-bg1), var(--color-bg2));
|
100 |
-
top: 0;
|
101 |
-
left: 0;
|
102 |
-
|
103 |
-
svg {
|
104 |
-
display: none;
|
105 |
-
}
|
106 |
-
|
107 |
-
|
108 |
-
.gradients-container {
|
109 |
-
filter: url(#goo) blur(40px) ;
|
110 |
-
width: 100%;
|
111 |
-
height: 100%;
|
112 |
-
}
|
113 |
-
|
114 |
-
.g1 {
|
115 |
-
position: absolute;
|
116 |
-
background: radial-gradient(circle at center, rgba(var(--color1), 0.8) 0, rgba(var(--color1), 0) 50%) no-repeat;
|
117 |
-
mix-blend-mode: var(--blending);
|
118 |
-
|
119 |
-
width: var(--circle-size);
|
120 |
-
height: var(--circle-size);
|
121 |
-
top: calc(50% - var(--circle-size) / 2);
|
122 |
-
left: calc(50% - var(--circle-size) / 2);
|
123 |
-
|
124 |
-
transform-origin: center center;
|
125 |
-
animation: moveVertical 30s ease infinite;
|
126 |
-
|
127 |
-
opacity: 1;
|
128 |
-
}
|
129 |
-
|
130 |
-
.g2 {
|
131 |
-
position: absolute;
|
132 |
-
background: radial-gradient(circle at center, rgba(var(--color2), 0.8) 0, rgba(var(--color2), 0) 50%) no-repeat;
|
133 |
-
mix-blend-mode: var(--blending);
|
134 |
-
|
135 |
-
width: var(--circle-size);
|
136 |
-
height: var(--circle-size);
|
137 |
-
top: calc(50% - var(--circle-size) / 2);
|
138 |
-
left: calc(50% - var(--circle-size) / 2);
|
139 |
-
|
140 |
-
transform-origin: calc(50% - 400px);
|
141 |
-
animation: moveInCircle 20s reverse infinite;
|
142 |
-
|
143 |
-
opacity: 1;
|
144 |
-
}
|
145 |
-
|
146 |
-
.g3 {
|
147 |
-
position: absolute;
|
148 |
-
background: radial-gradient(circle at center, rgba(var(--color3), 0.8) 0, rgba(var(--color3), 0) 50%) no-repeat;
|
149 |
-
mix-blend-mode: var(--blending);
|
150 |
-
|
151 |
-
width: var(--circle-size);
|
152 |
-
height: var(--circle-size);
|
153 |
-
top: calc(50% - var(--circle-size) / 2 + 200px);
|
154 |
-
left: calc(50% - var(--circle-size) / 2 - 500px);
|
155 |
-
|
156 |
-
transform-origin: calc(50% + 400px);
|
157 |
-
animation: moveInCircle 40s linear infinite;
|
158 |
-
|
159 |
-
opacity: 1;
|
160 |
-
}
|
161 |
-
|
162 |
-
.g4 {
|
163 |
-
position: absolute;
|
164 |
-
background: radial-gradient(circle at center, rgba(var(--color4), 0.8) 0, rgba(var(--color4), 0) 50%) no-repeat;
|
165 |
-
mix-blend-mode: var(--blending);
|
166 |
-
|
167 |
-
width: var(--circle-size);
|
168 |
-
height: var(--circle-size);
|
169 |
-
top: calc(50% - var(--circle-size) / 2);
|
170 |
-
left: calc(50% - var(--circle-size) / 2);
|
171 |
-
|
172 |
-
transform-origin: calc(50% - 200px);
|
173 |
-
animation: moveHorizontal 40s ease infinite;
|
174 |
-
|
175 |
-
opacity: 0.7;
|
176 |
-
}
|
177 |
-
|
178 |
-
.g5 {
|
179 |
-
position: absolute;
|
180 |
-
background: radial-gradient(circle at center, rgba(var(--color5), 0.8) 0, rgba(var(--color5), 0) 50%) no-repeat;
|
181 |
-
mix-blend-mode: var(--blending);
|
182 |
-
|
183 |
-
width: calc(var(--circle-size) * 2);
|
184 |
-
height: calc(var(--circle-size) * 2);
|
185 |
-
top: calc(50% - var(--circle-size));
|
186 |
-
left: calc(50% - var(--circle-size));
|
187 |
-
|
188 |
-
transform-origin: calc(50% - 800px) calc(50% + 200px);
|
189 |
-
animation: moveInCircle 20s ease infinite;
|
190 |
-
|
191 |
-
opacity: 1;
|
192 |
-
}
|
193 |
-
|
194 |
-
.interactive {
|
195 |
-
position: absolute;
|
196 |
-
background: radial-gradient(circle at center, rgba(var(--color-interactive), 0.8) 0, rgba(var(--color-interactive), 0) 50%) no-repeat;
|
197 |
-
mix-blend-mode: var(--blending);
|
198 |
-
|
199 |
-
width: 100%;
|
200 |
-
height: 100%;
|
201 |
-
top: -50%;
|
202 |
-
left: -50%;
|
203 |
-
|
204 |
-
opacity: 0.7;
|
205 |
-
}
|
206 |
-
}}
|
207 |
</style>
|
208 |
"""
|
209 |
st.markdown(page_bg_img, unsafe_allow_html=True)
|
|
|
17 |
|
18 |
|
19 |
page_bg_img = f"""
|
20 |
+
<style>
|
21 |
+
.css-selector {
|
22 |
+
background: linear-gradient(135deg, #00ffbd, #005fff, #9800ff);
|
23 |
+
background-size: 600% 600%;
|
24 |
+
|
25 |
+
-webkit-animation: AnimationName 59s ease infinite;
|
26 |
+
-moz-animation: AnimationName 59s ease infinite;
|
27 |
+
-o-animation: AnimationName 59s ease infinite;
|
28 |
+
animation: AnimationName 59s ease infinite;
|
29 |
}
|
30 |
|
31 |
+
@-webkit-keyframes AnimationName {
|
32 |
+
0%{background-position:0% 10%}
|
33 |
+
50%{background-position:100% 91%}
|
34 |
+
100%{background-position:0% 10%}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
35 |
}
|
36 |
+
@-moz-keyframes AnimationName {
|
37 |
+
0%{background-position:0% 10%}
|
38 |
+
50%{background-position:100% 91%}
|
39 |
+
100%{background-position:0% 10%}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
40 |
}
|
41 |
+
@-o-keyframes AnimationName {
|
42 |
+
0%{background-position:0% 10%}
|
43 |
+
50%{background-position:100% 91%}
|
44 |
+
100%{background-position:0% 10%}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
45 |
}
|
46 |
+
@keyframes AnimationName {
|
47 |
+
0%{background-position:0% 10%}
|
48 |
+
50%{background-position:100% 91%}
|
49 |
+
100%{background-position:0% 10%}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
50 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
51 |
</style>
|
52 |
"""
|
53 |
st.markdown(page_bg_img, unsafe_allow_html=True)
|