Spaces:
Running
Running
Update index.html
Browse files- index.html +54 -18
index.html
CHANGED
|
@@ -171,30 +171,66 @@
|
|
| 171 |
#loading-placeholder { display: none; }
|
| 172 |
#result-container.loading #loading-placeholder { display: flex; animation: fadeIn 0.5s; justify-content: center; align-items: center; width: 100%; }
|
| 173 |
|
| 174 |
-
|
| 175 |
-
@keyframes pulse {
|
| 176 |
-
|
| 177 |
-
|
| 178 |
-
|
| 179 |
-
|
| 180 |
-
@keyframes
|
| 181 |
-
|
| 182 |
-
|
| 183 |
-
|
| 184 |
-
|
| 185 |
-
.
|
| 186 |
-
|
| 187 |
-
|
| 188 |
-
|
| 189 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 190 |
#result-grid { display: none; grid-template-columns: 1fr; gap: 1.5rem; width: 100%; justify-items: center; }
|
| 191 |
#result-container.has-content #result-grid { display: grid; }
|
| 192 |
#result-grid img { max-width: 100%; max-height: 400px; width: auto; height: auto; object-fit: contain; border-radius: var(--radius-input); cursor: pointer; transition: var(--transition-smooth); box-shadow: var(--shadow-md); border: 1px solid var(--panel-border); }
|
| 193 |
#result-grid img:hover { transform: scale(1.05); box-shadow: var(--shadow-lg); z-index: 10; position: relative; }
|
| 194 |
|
| 195 |
-
/* --- MODIFICATION: Updated error message style for validation --- */
|
| 196 |
#error-message {
|
| 197 |
-
color: var(--danger-color);
|
| 198 |
text-align: center;
|
| 199 |
margin-top: 1rem;
|
| 200 |
display: none;
|
|
|
|
| 171 |
#loading-placeholder { display: none; }
|
| 172 |
#result-container.loading #loading-placeholder { display: flex; animation: fadeIn 0.5s; justify-content: center; align-items: center; width: 100%; }
|
| 173 |
|
| 174 |
+
/* --- START: MODIFIED LOADING ANIMATION --- */
|
| 175 |
+
@keyframes simple-pulse {
|
| 176 |
+
0%, 100% { box-shadow: 0 0 20px rgba(74, 108, 250, 0.2); border-color: var(--accent-primary-glow); }
|
| 177 |
+
50% { box-shadow: 0 0 35px rgba(74, 108, 250, 0.4); border-color: var(--accent-primary); }
|
| 178 |
+
}
|
| 179 |
+
|
| 180 |
+
@keyframes loading-progress {
|
| 181 |
+
0% { background-position: 100% 0; }
|
| 182 |
+
100% { background-position: -100% 0; }
|
| 183 |
+
}
|
| 184 |
+
|
| 185 |
+
.generator-container {
|
| 186 |
+
position: relative;
|
| 187 |
+
width: 400px;
|
| 188 |
+
max-width: 100%;
|
| 189 |
+
height: 300px;
|
| 190 |
+
border: 2px solid var(--accent-primary-glow);
|
| 191 |
+
border-radius: 20px;
|
| 192 |
+
overflow: hidden;
|
| 193 |
+
background-color: #161b22;
|
| 194 |
+
color: #f0f6fc;
|
| 195 |
+
display: flex;
|
| 196 |
+
justify-content: center;
|
| 197 |
+
align-items: center;
|
| 198 |
+
animation: simple-pulse 2.5s infinite ease-in-out;
|
| 199 |
+
transition: all 0.3s ease;
|
| 200 |
+
}
|
| 201 |
+
|
| 202 |
+
/* Hide complex layers as they are not part of the simple animation */
|
| 203 |
+
.noise-layer, .sketch-layer, .building-layer, .pixel-grid, .particles {
|
| 204 |
+
display: none;
|
| 205 |
+
}
|
| 206 |
+
|
| 207 |
+
.text-overlay {
|
| 208 |
+
position: relative;
|
| 209 |
+
font-size: 22px;
|
| 210 |
+
font-weight: 600;
|
| 211 |
+
text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
|
| 212 |
+
font-family: var(--app-font);
|
| 213 |
+
}
|
| 214 |
+
|
| 215 |
+
.progress-bar {
|
| 216 |
+
position: absolute;
|
| 217 |
+
bottom: 0;
|
| 218 |
+
left: 0;
|
| 219 |
+
width: 100%;
|
| 220 |
+
height: 5px;
|
| 221 |
+
background: linear-gradient(90deg, var(--accent-primary) 25%, var(--accent-secondary) 50%, var(--accent-primary) 75%);
|
| 222 |
+
background-size: 200% 100%;
|
| 223 |
+
animation: loading-progress 1.5s linear infinite;
|
| 224 |
+
}
|
| 225 |
+
/* --- END: MODIFIED LOADING ANIMATION --- */
|
| 226 |
+
|
| 227 |
#result-grid { display: none; grid-template-columns: 1fr; gap: 1.5rem; width: 100%; justify-items: center; }
|
| 228 |
#result-container.has-content #result-grid { display: grid; }
|
| 229 |
#result-grid img { max-width: 100%; max-height: 400px; width: auto; height: auto; object-fit: contain; border-radius: var(--radius-input); cursor: pointer; transition: var(--transition-smooth); box-shadow: var(--shadow-md); border: 1px solid var(--panel-border); }
|
| 230 |
#result-grid img:hover { transform: scale(1.05); box-shadow: var(--shadow-lg); z-index: 10; position: relative; }
|
| 231 |
|
|
|
|
| 232 |
#error-message {
|
| 233 |
+
color: var(--danger-color);
|
| 234 |
text-align: center;
|
| 235 |
margin-top: 1rem;
|
| 236 |
display: none;
|