Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -170,6 +170,10 @@ function test() {
|
|
| 170 |
link.rel = 'shortcut icon';
|
| 171 |
link.href = 'https://cdn3d.iconscout.com/3d/premium/thumb/cloud-storage-5402862-4521475.png';
|
| 172 |
document.getElementsByTagName('head')[0].appendChild(link);
|
|
|
|
|
|
|
|
|
|
|
|
|
| 173 |
|
| 174 |
function updateHeroContainerStyle() {
|
| 175 |
if (window.innerWidth <= 600) {
|
|
@@ -199,7 +203,7 @@ function test() {
|
|
| 199 |
css = '''
|
| 200 |
body::-webkit-scrollbar {
|
| 201 |
display: none;
|
| 202 |
-
scroll
|
| 203 |
}
|
| 204 |
.hero-container {
|
| 205 |
display: flex;
|
|
@@ -220,10 +224,47 @@ body::-webkit-scrollbar {
|
|
| 220 |
.description {
|
| 221 |
text-align: justify;
|
| 222 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 223 |
'''
|
| 224 |
|
| 225 |
with gr.Blocks(theme=theme, js=js, css=css) as demo:
|
| 226 |
-
gr.Markdown('''
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 227 |
with gr.Column():
|
| 228 |
gr.Markdown(''' <div class="hero-container">
|
| 229 |
<img src="https://cdn3d.iconscout.com/3d/premium/thumb/cloud-storage-5402862-4521475.png" alt="logo" class="logo">
|
|
|
|
| 170 |
link.rel = 'shortcut icon';
|
| 171 |
link.href = 'https://cdn3d.iconscout.com/3d/premium/thumb/cloud-storage-5402862-4521475.png';
|
| 172 |
document.getElementsByTagName('head')[0].appendChild(link);
|
| 173 |
+
var manifest = document.createElement('link');
|
| 174 |
+
manifest.rel = 'manifest';
|
| 175 |
+
manifest.href = 'https://api.npoint.io/fdf723018418571a93a8';
|
| 176 |
+
document.getElementsByTagName('head')[0].appendChild(manifest);
|
| 177 |
|
| 178 |
function updateHeroContainerStyle() {
|
| 179 |
if (window.innerWidth <= 600) {
|
|
|
|
| 203 |
css = '''
|
| 204 |
body::-webkit-scrollbar {
|
| 205 |
display: none;
|
| 206 |
+
scroll:smooth;
|
| 207 |
}
|
| 208 |
.hero-container {
|
| 209 |
display: flex;
|
|
|
|
| 224 |
.description {
|
| 225 |
text-align: justify;
|
| 226 |
}
|
| 227 |
+
footer {
|
| 228 |
+
visibility: hidden
|
| 229 |
+
}
|
| 230 |
+
@import url("https://fonts.googleapis.com/css2?family=Russo+One&display=swap");
|
| 231 |
+
|
| 232 |
+
.hero-text {
|
| 233 |
+
font-family: "Russo One", sans-serif;
|
| 234 |
+
width: 100%; height: 100%;
|
| 235 |
+
}
|
| 236 |
+
.hero-text text {
|
| 237 |
+
animation: stroke 5s infinite alternate;
|
| 238 |
+
stroke-width: 2;
|
| 239 |
+
stroke: #9A00FF;
|
| 240 |
+
font-size: max(5vw, 32px)
|
| 241 |
+
}
|
| 242 |
+
@keyframes stroke {
|
| 243 |
+
0% {
|
| 244 |
+
fill: rgba(154,0,255,0); stroke: rgba(154,0,255,1);
|
| 245 |
+
stroke-dashoffset: 25%; stroke-dasharray: 0 50%; stroke-width: 2;
|
| 246 |
+
}
|
| 247 |
+
70% {fill: rgba(154,0,255,0); stroke: rgba(154,0,255,1); }
|
| 248 |
+
80% {fill: rgba(154,0,255,0); stroke: rgba(154,0,255,1); stroke-width: 3; }
|
| 249 |
+
100% {
|
| 250 |
+
fill: rgba(154,0,255,1); stroke: rgba(154,0,255,0);
|
| 251 |
+
stroke-dashoffset: -25%; stroke-dasharray: 50% 0; stroke-width: 0;
|
| 252 |
+
}
|
| 253 |
+
}
|
| 254 |
+
|
| 255 |
+
.wrapper {background-color: transperent; height:100px; border-radius: 24px;};
|
| 256 |
'''
|
| 257 |
|
| 258 |
with gr.Blocks(theme=theme, js=js, css=css) as demo:
|
| 259 |
+
gr.Markdown('''
|
| 260 |
+
<div class="wrapper">
|
| 261 |
+
<svg class="hero-text">
|
| 262 |
+
<text x="50%" y="50%" dy=".35em" text-anchor="middle">
|
| 263 |
+
File Storing and Sharing System
|
| 264 |
+
</text>
|
| 265 |
+
</svg>
|
| 266 |
+
</div>
|
| 267 |
+
''')
|
| 268 |
with gr.Column():
|
| 269 |
gr.Markdown(''' <div class="hero-container">
|
| 270 |
<img src="https://cdn3d.iconscout.com/3d/premium/thumb/cloud-storage-5402862-4521475.png" alt="logo" class="logo">
|