Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -26,18 +26,16 @@ CSS = """
|
|
| 26 |
--accent2: #7C5CFF;
|
| 27 |
}
|
| 28 |
|
|
|
|
| 29 |
body, .gradio-container{
|
| 30 |
-
background:
|
| 31 |
-
radial-gradient(900px 500px at 10% 0%, rgba(125,249,255,0.18), transparent 55%),
|
| 32 |
-
linear-gradient(180deg, #05060A 0%, #070A0F 100%) !important;
|
| 33 |
-
color: var(--text) !important;
|
| 34 |
}
|
| 35 |
|
| 36 |
/* Background image layer */
|
| 37 |
#bg-wrap{
|
| 38 |
position: fixed;
|
| 39 |
inset: 0;
|
| 40 |
-
z-index:
|
| 41 |
pointer-events: none;
|
| 42 |
overflow: hidden;
|
| 43 |
}
|
|
@@ -45,17 +43,23 @@ body, .gradio-container{
|
|
| 45 |
#bg-image{
|
| 46 |
position: absolute;
|
| 47 |
inset: 0;
|
| 48 |
-
background-image:
|
|
|
|
|
|
|
|
|
|
| 49 |
background-size: cover;
|
| 50 |
-
background-position:
|
| 51 |
-
|
| 52 |
-
|
|
|
|
|
|
|
| 53 |
}
|
| 54 |
|
|
|
|
| 55 |
#bg-overlay{
|
| 56 |
-
position:absolute;
|
| 57 |
-
inset:0;
|
| 58 |
-
background: rgba(0,0,0,0.
|
| 59 |
}
|
| 60 |
|
| 61 |
/* App container above background */
|
|
|
|
| 26 |
--accent2: #7C5CFF;
|
| 27 |
}
|
| 28 |
|
| 29 |
+
/* IMPORTANT: make the default Gradio background transparent so our image shows */
|
| 30 |
body, .gradio-container{
|
| 31 |
+
background: transparent !important;
|
|
|
|
|
|
|
|
|
|
| 32 |
}
|
| 33 |
|
| 34 |
/* Background image layer */
|
| 35 |
#bg-wrap{
|
| 36 |
position: fixed;
|
| 37 |
inset: 0;
|
| 38 |
+
z-index: -1; /* put behind everything */
|
| 39 |
pointer-events: none;
|
| 40 |
overflow: hidden;
|
| 41 |
}
|
|
|
|
| 43 |
#bg-image{
|
| 44 |
position: absolute;
|
| 45 |
inset: 0;
|
| 46 |
+
background-image:
|
| 47 |
+
radial-gradient(1200px 700px at 60% 25%, rgba(125,249,255,0.10), transparent 60%),
|
| 48 |
+
radial-gradient(900px 600px at 15% 10%, rgba(124,92,255,0.10), transparent 60%),
|
| 49 |
+
url("https://huggingface.co/spaces/LevyJonas/SurfaceChangePredictor/resolve/main/assets/bg.jpeg");
|
| 50 |
background-size: cover;
|
| 51 |
+
background-position: 65% 80%; /* pushes the Earth into view */
|
| 52 |
+
background-repeat: no-repeat;
|
| 53 |
+
|
| 54 |
+
opacity: 0.95;
|
| 55 |
+
filter: brightness(1.25) contrast(1.08) saturate(1.12);
|
| 56 |
}
|
| 57 |
|
| 58 |
+
/* Light vignette (not too dark) */
|
| 59 |
#bg-overlay{
|
| 60 |
+
position: absolute;
|
| 61 |
+
inset: 0;
|
| 62 |
+
background: radial-gradient(900px 700px at 50% 30%, rgba(0,0,0,0.05), rgba(0,0,0,0.35));
|
| 63 |
}
|
| 64 |
|
| 65 |
/* App container above background */
|