bokula commited on
Commit
45d0740
·
verified ·
1 Parent(s): 1863a65

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +59 -19
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: #0a0a0a !important; }
106
  .gradio-container {
107
- background: #0a0a0a !important;
108
  font-family: 'DM Mono', monospace !important;
109
  max-width: 1100px !important;
110
  }
111
- .pg-header { padding: 28px 0 22px; border-bottom: 1px solid #1e1e1e; margin-bottom: 4px; }
112
- .pg-num { font-family: 'DM Mono', monospace; font-size: 10px; letter-spacing: 0.2em; color: #333; margin-bottom: 6px; display: block; }
113
- .pg-logo { font-family: 'Bebas Neue', sans-serif; font-size: 56px; letter-spacing: 0.1em; color: #f2efe8; line-height: 1; display: block; }
114
- .pg-logo .accent { color: #d4a912; }
115
- .pg-sub { font-family: 'DM Mono', monospace; font-size: 9px; letter-spacing: 0.22em; color: #f2efe8; text-transform: uppercase; margin-top: 8px; display: block; }
116
- .pg-rule { width: 100%; height: 1px; background: #1e1e1e; margin-top: 20px; }
117
- .gradio-container h2 { font-family: 'DM Mono', monospace !important; font-size: 9px !important; letter-spacing: 0.2em !important; color: #d4a912 !important; text-transform: uppercase !important; border-bottom: 1px solid #1e1e1e !important; padding-bottom: 6px !important; margin-top: 20px !important; font-weight: 400 !important; }
118
- button.primary { background: #d4a912 !important; color: #0a0a0a !important; border: none !important; border-radius: 0 !important; font-family: 'DM Mono', monospace !important; text-transform: uppercase !important; letter-spacing: 0.1em !important; font-size: 0.7rem !important; font-weight: 500 !important; }
119
- button.secondary { background: transparent !important; color: #555 !important; border: 1px solid #2a2a2a !important; border-radius: 0 !important; font-family: 'DM Mono', monospace !important; text-transform: uppercase !important; letter-spacing: 0.1em !important; font-size: 0.7rem !important; }
120
- button:hover { opacity: 0.85 !important; }
121
- label span { font-family: 'DM Mono', monospace !important; font-size: 10px !important; letter-spacing: 0.1em !important; color: #666 !important; text-transform: uppercase !important; }
122
- input[type=range] { accent-color: #d4a912 !important; }
123
- input[type=checkbox] { accent-color: #d4a912 !important; }
124
- textarea { background: #0d0d0d !important; border: 1px solid #1e1e1e !important; color: #888 !important; font-family: 'DM Mono', monospace !important; font-size: 12px !important; border-radius: 0 !important; }
125
- .guide { font-family: 'DM Mono', monospace; font-size: 11px; line-height: 1.9; color: #555; margin-top: 16px; }
126
- .guide strong { color: #888; font-weight: 500; }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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>