Spaces:
Running
Running
Upload app.py
Browse files
app.py
CHANGED
|
@@ -102,33 +102,73 @@ def toggle_custom(mode):
|
|
| 102 |
CSS = """
|
| 103 |
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Mono:ital,wght@0,400;0,500;1,400&display=swap');
|
| 104 |
|
| 105 |
-
body { background: #
|
| 106 |
.gradio-container {
|
| 107 |
-
background: #
|
| 108 |
font-family: 'DM Mono', monospace !important;
|
| 109 |
max-width: 1100px !important;
|
| 110 |
}
|
| 111 |
-
.pg-header { padding:
|
| 112 |
-
.pg-
|
| 113 |
-
.pg-logo
|
| 114 |
-
.pg-
|
| 115 |
-
.pg-
|
| 116 |
-
.
|
| 117 |
-
|
| 118 |
-
|
| 119 |
-
|
| 120 |
-
|
| 121 |
-
|
| 122 |
-
|
| 123 |
-
|
| 124 |
-
|
| 125 |
-
|
| 126 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 127 |
"""
|
| 128 |
|
| 129 |
HEADER_HTML = """
|
| 130 |
<div class="pg-header">
|
| 131 |
-
<span class="pg-num">02 / Pattern Ground</span>
|
| 132 |
<span class="pg-logo">Pattern <span class="accent">Ground</span></span>
|
| 133 |
<span class="pg-sub">Fabrication Topologies · Vectorealism × Dropcity · Design Week Milano 2026</span>
|
| 134 |
<div class="pg-rule"></div>
|
|
|
|
| 102 |
CSS = """
|
| 103 |
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Mono:ital,wght@0,400;0,500;1,400&display=swap');
|
| 104 |
|
| 105 |
+
body { background: #ffffff !important; }
|
| 106 |
.gradio-container {
|
| 107 |
+
background: #ffffff !important;
|
| 108 |
font-family: 'DM Mono', monospace !important;
|
| 109 |
max-width: 1100px !important;
|
| 110 |
}
|
| 111 |
+
.pg-header { padding: 24px 0 18px; border-bottom: 1px solid #e0ddd5; margin-bottom: 4px; }
|
| 112 |
+
.pg-logo { font-family: 'Bebas Neue', sans-serif; font-size: 56px; letter-spacing: 0.1em; color: #1a1a1a; line-height: 1; display: block; }
|
| 113 |
+
.pg-logo .accent { color: #b8860b; }
|
| 114 |
+
.pg-sub { font-family: 'DM Mono', monospace; font-size: 9px; letter-spacing: 0.22em; color: #1a1a1a; text-transform: uppercase; margin-top: 8px; display: block; }
|
| 115 |
+
.pg-rule { width: 100%; height: 1px; background: #e0ddd5; margin-top: 18px; }
|
| 116 |
+
.gradio-container h2 {
|
| 117 |
+
font-family: 'DM Mono', monospace !important;
|
| 118 |
+
font-size: 9px !important;
|
| 119 |
+
letter-spacing: 0.2em !important;
|
| 120 |
+
color: #b8860b !important;
|
| 121 |
+
text-transform: uppercase !important;
|
| 122 |
+
border-bottom: 1px solid #e0ddd5 !important;
|
| 123 |
+
padding-bottom: 6px !important;
|
| 124 |
+
margin-top: 20px !important;
|
| 125 |
+
font-weight: 400 !important;
|
| 126 |
+
}
|
| 127 |
+
button.primary {
|
| 128 |
+
background: #1a1a1a !important;
|
| 129 |
+
color: #fff !important;
|
| 130 |
+
border: none !important;
|
| 131 |
+
border-radius: 0 !important;
|
| 132 |
+
font-family: 'DM Mono', monospace !important;
|
| 133 |
+
text-transform: uppercase !important;
|
| 134 |
+
letter-spacing: 0.1em !important;
|
| 135 |
+
font-size: 0.7rem !important;
|
| 136 |
+
font-weight: 500 !important;
|
| 137 |
+
}
|
| 138 |
+
button.secondary {
|
| 139 |
+
background: transparent !important;
|
| 140 |
+
color: #888 !important;
|
| 141 |
+
border: 1px solid #ccc !important;
|
| 142 |
+
border-radius: 0 !important;
|
| 143 |
+
font-family: 'DM Mono', monospace !important;
|
| 144 |
+
text-transform: uppercase !important;
|
| 145 |
+
letter-spacing: 0.1em !important;
|
| 146 |
+
font-size: 0.7rem !important;
|
| 147 |
+
}
|
| 148 |
+
button:hover { opacity: 0.75 !important; }
|
| 149 |
+
label span {
|
| 150 |
+
font-family: 'DM Mono', monospace !important;
|
| 151 |
+
font-size: 10px !important;
|
| 152 |
+
letter-spacing: 0.1em !important;
|
| 153 |
+
color: #888 !important;
|
| 154 |
+
text-transform: uppercase !important;
|
| 155 |
+
}
|
| 156 |
+
input[type=range] { accent-color: #1a1a1a !important; }
|
| 157 |
+
input[type=checkbox] { accent-color: #1a1a1a !important; }
|
| 158 |
+
textarea {
|
| 159 |
+
background: #fafaf8 !important;
|
| 160 |
+
border: 1px solid #e0ddd5 !important;
|
| 161 |
+
color: #333 !important;
|
| 162 |
+
font-family: 'DM Mono', monospace !important;
|
| 163 |
+
font-size: 12px !important;
|
| 164 |
+
border-radius: 0 !important;
|
| 165 |
+
}
|
| 166 |
+
.guide { font-family: 'DM Mono', monospace; font-size: 11px; line-height: 1.9; color: #aaa; margin-top: 16px; }
|
| 167 |
+
.guide strong { color: #555; font-weight: 500; }
|
| 168 |
"""
|
| 169 |
|
| 170 |
HEADER_HTML = """
|
| 171 |
<div class="pg-header">
|
|
|
|
| 172 |
<span class="pg-logo">Pattern <span class="accent">Ground</span></span>
|
| 173 |
<span class="pg-sub">Fabrication Topologies · Vectorealism × Dropcity · Design Week Milano 2026</span>
|
| 174 |
<div class="pg-rule"></div>
|