Nina.Konovalova commited on
Commit
0dd9a31
Β·
1 Parent(s): 25073a7

css for hint airi

Browse files
Files changed (1) hide show
  1. app.py +40 -10
app.py CHANGED
@@ -169,6 +169,31 @@ css2 = """
169
  .prompt label {
170
  font-size: 20px !important;
171
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
172
  """
173
 
174
  def get_demo():
@@ -200,11 +225,12 @@ def get_demo():
200
  btn8 = gr.Button("", icon=info["image"].format("armchair"), elem_classes=["my-custom-button"])
201
 
202
  # prod_desc = gr.Markdown(value="""<div style="font-size: 20px;">Choose the product you want to showcase </div"> πŸ •""", visible=True)
203
- prod_desc = gr.Markdown(
204
- '<div style="font-size: 20px; text-align: center;">'
205
- '<span>Choose the product you want to showcase πŸ •</span>'
206
- '</div>'
207
- )
 
208
 
209
  input_image = gr.Image(label="Chosen product", type="pil", height=300, width=300, visible=False, interactive=False, container=True, elem_classes=["input_image_container"])
210
  descr = gr.Markdown(value=temaplte.format(""), visible=False)
@@ -236,12 +262,16 @@ def get_demo():
236
  # <div>Made by FusionBrainLab, AIRI</div><img src="https://static.tildacdn.com/tild3633-6662-4437-a333-646631346335/Airinet.png" style="width: 70px; height: auto;">
237
  # </div>
238
  # ''')
 
 
 
 
 
 
239
  gr.Markdown(
240
- '<div style="display: flex; align-items: center; gap: 10px; font-size: 20px; text-align: center; margin-left: 200px;">'
241
- '<span>Made by FusionBrainLab, AIRI</span>'
242
- '<img src="https://static.tildacdn.com/tild3633-6662-4437-a333-646631346335/Airinet.png" style="width: 70px; height: auto;">'
243
- '</div>'
244
- )
245
 
246
  btn_generate.click(
247
  fn=generate_image,
 
169
  .prompt label {
170
  font-size: 20px !important;
171
  }
172
+
173
+ .hint {
174
+ font-size: 20px !important;
175
+ text-align: center;
176
+ --text-md: 20px;
177
+ }
178
+
179
+ .airi-content {
180
+ display: inline-flex;
181
+ align-items: center;
182
+ gap: 10px;
183
+ white-space: nowrap;
184
+ }
185
+ .airi {
186
+ font-size: 20px;
187
+ text-align: center;
188
+ --text-md: 20px;
189
+ width: 100%;
190
+ padding: 10px 0;
191
+ }
192
+ .airi img {
193
+ vertical-align: middle;
194
+ max-height: 1.2em;
195
+ margin-left: 5px;
196
+ }
197
  """
198
 
199
  def get_demo():
 
225
  btn8 = gr.Button("", icon=info["image"].format("armchair"), elem_classes=["my-custom-button"])
226
 
227
  # prod_desc = gr.Markdown(value="""<div style="font-size: 20px;">Choose the product you want to showcase </div"> πŸ •""", visible=True)
228
+ # prod_desc = gr.Markdown(
229
+ # '<div style="font-size: 20px; text-align: center;">'
230
+ # '<span>Choose the product you want to showcase πŸ •</span>'
231
+ # '</div>'
232
+ # )
233
+ prod_desc = gr.Markdown("Choose the product you want to showcase πŸ •", elem_classes=["hint"])
234
 
235
  input_image = gr.Image(label="Chosen product", type="pil", height=300, width=300, visible=False, interactive=False, container=True, elem_classes=["input_image_container"])
236
  descr = gr.Markdown(value=temaplte.format(""), visible=False)
 
262
  # <div>Made by FusionBrainLab, AIRI</div><img src="https://static.tildacdn.com/tild3633-6662-4437-a333-646631346335/Airinet.png" style="width: 70px; height: auto;">
263
  # </div>
264
  # ''')
265
+ # gr.Markdown(
266
+ # '<div style="display: flex; align-items: center; gap: 10px; font-size: 20px; text-align: center; margin-left: 200px;">'
267
+ # '<span>Made by FusionBrainLab, AIRI</span>'
268
+ # '<img src="https://static.tildacdn.com/tild3633-6662-4437-a333-646631346335/Airinet.png" style="width: 70px; height: auto;">'
269
+ # '</div>'
270
+ # )
271
  gr.Markdown(
272
+ '<span class="airi-content">Made by FusionBrainLab, AIRI <img src="https://static.tildacdn.com/tild3633-6662-4437-a333-646631346335/Airinet.png" style="width: 70px; height: auto;"></span>',
273
+ elem_classes=["airi"]
274
+ )
 
 
275
 
276
  btn_generate.click(
277
  fn=generate_image,