Spaces:
Runtime error
Runtime error
Commit
·
cfbb886
1
Parent(s):
00cd97e
CSS Color
Browse files
app.py
CHANGED
@@ -244,20 +244,55 @@ css = """
|
|
244 |
body {
|
245 |
background-color: #1b1b1b;
|
246 |
font-family: 'Cinzel', serif;
|
247 |
-
color: #f4a261;
|
248 |
background-image: url('https://www.transparenttextures.com/patterns/dark-matter.png');
|
249 |
}
|
250 |
#col-container {
|
251 |
margin: 0 auto;
|
252 |
max-width: 550px;
|
253 |
padding: 15px;
|
254 |
-
border: 4px solid #8b4513;
|
255 |
-
background: linear-gradient(145deg, #2e2b2a, #3a3433);
|
256 |
border-radius: 15px;
|
257 |
box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
|
258 |
}
|
259 |
-
"""
|
260 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
261 |
# Interface
|
262 |
with gr.Blocks(css=css) as demo:
|
263 |
with gr.Column(elem_id="col-container"):
|
@@ -277,7 +312,7 @@ with gr.Blocks(css=css) as demo:
|
|
277 |
prompt = gr.Textbox(
|
278 |
label="🎲 Describe Your Vision:",
|
279 |
lines=3,
|
280 |
-
placeholder="Describe your hero, monster, or legendary landscape..."
|
281 |
)
|
282 |
style = gr.Dropdown(
|
283 |
label="🎨 Select a Style",
|
@@ -343,4 +378,4 @@ with gr.Blocks(css=css) as demo:
|
|
343 |
)
|
344 |
|
345 |
# Launch the demo
|
346 |
-
demo.launch()
|
|
|
244 |
body {
|
245 |
background-color: #1b1b1b;
|
246 |
font-family: 'Cinzel', serif;
|
247 |
+
color: #f4a261; /* Updated font color */
|
248 |
background-image: url('https://www.transparenttextures.com/patterns/dark-matter.png');
|
249 |
}
|
250 |
#col-container {
|
251 |
margin: 0 auto;
|
252 |
max-width: 550px;
|
253 |
padding: 15px;
|
254 |
+
border: 4px solid #8b4513; /* A deep brown border for a medieval feel */
|
255 |
+
background: linear-gradient(145deg, #2e2b2a, #3a3433); /* Subtle texture effect */
|
256 |
border-radius: 15px;
|
257 |
box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
|
258 |
}
|
|
|
259 |
|
260 |
+
h1, h2, h3 {
|
261 |
+
color: #f4a261; /* Ensure headers also use this color */
|
262 |
+
text-align: center;
|
263 |
+
font-family: 'Cinzel', serif;
|
264 |
+
}
|
265 |
+
|
266 |
+
button, .gr-button {
|
267 |
+
background-color: #3a3433;
|
268 |
+
color: #f4a261; /* Matches the overall theme */
|
269 |
+
border: 2px solid #8b4513;
|
270 |
+
border-radius: 10px;
|
271 |
+
padding: 10px;
|
272 |
+
font-family: 'Cinzel', serif;
|
273 |
+
font-weight: bold;
|
274 |
+
box-shadow: 0 4px 15px rgba(139, 69, 19, 0.5);
|
275 |
+
}
|
276 |
+
|
277 |
+
button:hover, .gr-button:hover {
|
278 |
+
background-color: #8b4513; /* Deep brown hover effect */
|
279 |
+
color: #1b1b1b;
|
280 |
+
}
|
281 |
+
|
282 |
+
label {
|
283 |
+
color: #f4a261; /* Form labels use the same themed color */
|
284 |
+
font-family: 'Cinzel', serif;
|
285 |
+
}
|
286 |
+
|
287 |
+
textarea, input, select {
|
288 |
+
background-color: #2e2b2a; /* Matches the overall form styling */
|
289 |
+
color: #f4a261;
|
290 |
+
border: 1px solid #8b4513;
|
291 |
+
border-radius: 5px;
|
292 |
+
font-family: 'Cinzel', serif;
|
293 |
+
padding: 8px;
|
294 |
+
}
|
295 |
+
"""
|
296 |
# Interface
|
297 |
with gr.Blocks(css=css) as demo:
|
298 |
with gr.Column(elem_id="col-container"):
|
|
|
312 |
prompt = gr.Textbox(
|
313 |
label="🎲 Describe Your Vision:",
|
314 |
lines=3,
|
315 |
+
placeholder="Describe your hero, monster, or legendary landscape...",
|
316 |
)
|
317 |
style = gr.Dropdown(
|
318 |
label="🎨 Select a Style",
|
|
|
378 |
)
|
379 |
|
380 |
# Launch the demo
|
381 |
+
demo.launch()
|