salso commited on
Commit
72afb79
1 Parent(s): 9ce1a1a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +152 -56
app.py CHANGED
@@ -281,67 +281,163 @@ class Stage(Enum):
281
  FULL = "full"
282
 
283
  css="""#disp_image {
284
- text-align: center; /* Horizontally center the content */
285
  }
286
- #share-btn-container {padding-left: 0.5rem !important; padding-right: 0.5rem !important; background-color: #000000; justify-content: center; align-items: center; border-radius: 9999px !important; max-width: 13rem; margin-left: auto;}
287
- div#share-btn-container > div {flex-direction: row;background: black;align-items: center}
288
- #share-btn-container:hover {background-color: #060606}
289
- #share-btn {all: initial; color: #ffffff;font-weight: 600; cursor:pointer; font-family: 'IBM Plex Sans', sans-serif; margin-left: 0.5rem !important; padding-top: 0.5rem !important; padding-bottom: 0.5rem !important;right:0;}
290
- #share-btn * {all: unset}
291
- #share-btn-container div:nth-child(-n+2){width: auto !important;min-height: 0px !important;}
292
- #share-btn-container .wrap {display: none !important}
293
- #share-btn-container.hidden {display: none!important}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
294
  #duplicate-button {
295
  margin-left: auto;
296
  color: #fff;
297
  background: #1565c0;
298
- }
299
- body {
300
- font-family: Arial, sans-serif;
301
- background-color: #f4f4f9;
302
- margin: 0;
303
- padding: 0;
304
- display: flex;
305
- justify-content: center;
306
- align-items: center;
307
- height: 100vh;
308
- color: #333;
309
- }
310
- .custom-button {
311
- background: linear-gradient(271.15deg, #00C7E2 0.27%, #00CC6A 48.52%, #70FF00 102.07%);
312
- font-size: 30px; /* Adjust this value to make the text size larger or smaller */
313
- color: white; /* Optional: Change text color for better visibility */
314
- padding: 10px 20px; /* Optional: Adjust padding for better button size */
315
- border: none; /* Optional: Remove border */
316
- border-radius: 5px; /* Optional: Rounded corners */
317
- cursor: pointer; /* Change cursor to pointer */
318
- }
319
- .custom-title {
320
- font-size: 36px; /* Adjust the font size as needed */
321
- background: linear-gradient(271.15deg, #00C7E2 0.27%, #12C06D 102.07%);
322
- -webkit-background-clip: text;
323
- -webkit-text-fill-color: transparent;
324
- font-weight: bold; /* Optional: Make the text bold */
325
- text-align: center; /* Optional: Center the text */
326
- margin-bottom: 20px; /* Optional: Adjust margin */
327
- }
328
- .custom-button:hover {
329
- opacity: 0.8; /* Optional: Add hover effect */
330
- }
331
- h1 {
332
- color: #222222;
333
- }
334
- a {
335
- color: #4a90e2;
336
- text-decoration: none;
337
- font-weight: bold;
338
- }
339
- a:hover {
340
- text-decoration: underline;
341
- }
342
- .emoji {
343
- font-size: 1.5em;
344
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
345
  """
346
  block = gr.Blocks(css=css, title="## F.ai Fuzer").queue()
347
  with block:
 
281
  FULL = "full"
282
 
283
  css="""#disp_image {
284
+ text-align: center;
285
  }
286
+
287
+ #share-btn-container {
288
+ padding-left: 0.5rem !important;
289
+ padding-right: 0.5rem !important;
290
+ background-color: #000000;
291
+ justify-content: center;
292
+ align-items: center;
293
+ border-radius: 9999px !important;
294
+ max-width: 13rem;
295
+ margin-left: auto;
296
+ }
297
+
298
+ #share-btn-container > div {
299
+ flex-direction: row;
300
+ background: black;
301
+ align-items: center;
302
+ }
303
+
304
+ #share-btn-container:hover {
305
+ background-color: #060606;
306
+ }
307
+
308
+ #share-btn {
309
+ all: initial;
310
+ color: #ffffff;
311
+ font-weight: 600;
312
+ cursor: pointer;
313
+ font-family: 'IBM Plex Sans', sans-serif;
314
+ margin-left: 0.5rem !important;
315
+ padding-top: 0.5rem !important;
316
+ padding-bottom: 0.5rem !important;
317
+ right: 0;
318
+ }
319
+
320
+ #share-btn * {
321
+ all: unset;
322
+ }
323
+
324
+ #share-btn-container div:nth-child(-n+2) {
325
+ width: auto !important;
326
+ min-height: 0px !important;
327
+ }
328
+
329
+ #share-btn-container .wrap {
330
+ display: none !important;
331
+ }
332
+
333
+ #share-btn-container.hidden {
334
+ display: none !important;
335
+ }
336
+
337
  #duplicate-button {
338
  margin-left: auto;
339
  color: #fff;
340
  background: #1565c0;
341
+ }
342
+
343
+ body {
344
+ font-family: Arial, sans-serif;
345
+ background-color: #f4f4f9;
346
+ margin: 0;
347
+ padding: 0;
348
+ display: flex;
349
+ flex-direction: column;
350
+ justify-content: center;
351
+ align-items: center;
352
+ min-height: 100vh;
353
+ color: #333;
354
+ }
355
+
356
+ .custom-button {
357
+ background: linear-gradient(271.15deg, #00C7E2 0.27%, #00CC6A 48.52%, #70FF00 102.07%);
358
+ font-size: 30px;
359
+ color: white;
360
+ padding: 10px 20px;
361
+ border: none;
362
+ border-radius: 5px;
363
+ cursor: pointer;
364
+ transition: opacity 0.3s ease;
365
+ }
366
+
367
+ .custom-button:hover {
368
+ opacity: 0.8;
369
+ }
370
+
371
+ .custom-title {
372
+ font-size: 36px;
373
+ background: linear-gradient(271.15deg, #00C7E2 0.27%, #12C06D 102.07%);
374
+ -webkit-background-clip: text;
375
+ -webkit-text-fill-color: transparent;
376
+ font-weight: bold;
377
+ text-align: center;
378
+ margin-bottom: 20px;
379
+ }
380
+
381
+ h1 {
382
+ color: #222222;
383
+ }
384
+
385
+ a {
386
+ color: #4a90e2;
387
+ text-decoration: none;
388
+ font-weight: bold;
389
+ }
390
+
391
+ a:hover {
392
+ text-decoration: underline;
393
+ }
394
+
395
+ .emoji {
396
+ font-size: 1.5em;
397
+ }
398
+
399
+ @media (max-width: 768px) {
400
+ .custom-button {
401
+ font-size: 20px;
402
+ padding: 8px 16px;
403
+ }
404
+
405
+ .custom-title {
406
+ font-size: 28px;
407
+ }
408
+
409
+ #disp_image, .container {
410
+ padding: 0 1rem;
411
+ }
412
+
413
+ h1 {
414
+ font-size: 24px;
415
+ }
416
+ }
417
+
418
+ @media (max-width: 480px) {
419
+ .custom-button {
420
+ font-size: 16px;
421
+ padding: 6px 12px;
422
+ }
423
+
424
+ .custom-title {
425
+ font-size: 22px;
426
+ }
427
+
428
+ .container {
429
+ padding: 0 0.5rem;
430
+ }
431
+
432
+ h1 {
433
+ font-size: 20px;
434
+ }
435
+
436
+ #share-btn-container {
437
+ max-width: 100%;
438
+ padding: 0.5rem;
439
+ }
440
+ }
441
  """
442
  block = gr.Blocks(css=css, title="## F.ai Fuzer").queue()
443
  with block: