Spaces:
Sleeping
Sleeping
Commit
·
fbec511
1
Parent(s):
dbf912a
css
Browse files
app.py
CHANGED
@@ -11,7 +11,81 @@ custom_html = """
|
|
11 |
<meta charset="UTF-8">
|
12 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
13 |
<title>D&D Themed Gradio Space</title>
|
14 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
15 |
</head>
|
16 |
<body>
|
17 |
<div class="gradio-container">
|
|
|
11 |
<meta charset="UTF-8">
|
12 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
13 |
<title>D&D Themed Gradio Space</title>
|
14 |
+
<style>
|
15 |
+
body {
|
16 |
+
background-color: #231f20;
|
17 |
+
color: #f5f5f5;
|
18 |
+
font-family: 'Arial', sans-serif;
|
19 |
+
}
|
20 |
+
|
21 |
+
.gradio-container {
|
22 |
+
max-width: 800px;
|
23 |
+
margin: 0 auto;
|
24 |
+
padding: 20px;
|
25 |
+
background-color: #3c2f2f;
|
26 |
+
border: 2px solid #8b4513;
|
27 |
+
border-radius: 10px;
|
28 |
+
box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
|
29 |
+
}
|
30 |
+
|
31 |
+
h1, h2, h3, h4, h5, h6 {
|
32 |
+
color: #ffd700;
|
33 |
+
text-align: center;
|
34 |
+
}
|
35 |
+
|
36 |
+
button {
|
37 |
+
background-color: #8b4513;
|
38 |
+
color: #f5f5f5;
|
39 |
+
border: none;
|
40 |
+
padding: 10px 20px;
|
41 |
+
border-radius: 5px;
|
42 |
+
cursor: pointer;
|
43 |
+
transition: background-color 0.3s;
|
44 |
+
}
|
45 |
+
|
46 |
+
button:hover {
|
47 |
+
background-color: #a0522d;
|
48 |
+
}
|
49 |
+
|
50 |
+
input[type="text"], input[type="file"], textarea {
|
51 |
+
background-color: #3c2f2f;
|
52 |
+
color: #f5f5f5;
|
53 |
+
border: 1px solid #8b4513;
|
54 |
+
border-radius: 5px;
|
55 |
+
padding: 10px;
|
56 |
+
width: 100%;
|
57 |
+
box-sizing: border-box;
|
58 |
+
margin-bottom: 10px;
|
59 |
+
}
|
60 |
+
|
61 |
+
input[type="text"]:focus, input[type="file"]:focus, textarea:focus {
|
62 |
+
border-color: #ffd700;
|
63 |
+
}
|
64 |
+
|
65 |
+
label {
|
66 |
+
color: #ffd700;
|
67 |
+
}
|
68 |
+
|
69 |
+
.gradio-output {
|
70 |
+
background-color: #3c2f2f;
|
71 |
+
border: 1px solid #8b4513;
|
72 |
+
border-radius: 5px;
|
73 |
+
padding: 20px;
|
74 |
+
margin-top: 20px;
|
75 |
+
text-align: center;
|
76 |
+
}
|
77 |
+
|
78 |
+
.gradio-output img {
|
79 |
+
max-width: 100%;
|
80 |
+
border-radius: 10px;
|
81 |
+
}
|
82 |
+
|
83 |
+
.footer {
|
84 |
+
text-align: center;
|
85 |
+
margin-top: 20px;
|
86 |
+
color: #ffd700;
|
87 |
+
}
|
88 |
+
</style>
|
89 |
</head>
|
90 |
<body>
|
91 |
<div class="gradio-container">
|