Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -609,40 +609,40 @@ THEME = gr.themes.Base(
|
|
| 609 |
font=[gr.themes.GoogleFont("Instrument Sans"), "ui-sans-serif", "sans-serif"],
|
| 610 |
font_mono=[gr.themes.GoogleFont("JetBrains Mono"), "ui-monospace", "monospace"],
|
| 611 |
).set(
|
| 612 |
-
body_background_fill="#
|
| 613 |
-
body_background_fill_dark="#
|
| 614 |
-
body_text_color="#
|
| 615 |
-
body_text_color_dark="#
|
| 616 |
-
body_text_color_subdued="#
|
| 617 |
-
body_text_color_subdued_dark="#
|
| 618 |
-
background_fill_primary="#
|
| 619 |
-
background_fill_primary_dark="#
|
| 620 |
-
background_fill_secondary="#
|
| 621 |
-
background_fill_secondary_dark="#
|
| 622 |
-
block_background_fill="#
|
| 623 |
-
block_background_fill_dark="#
|
| 624 |
-
block_border_color="#
|
| 625 |
-
block_border_color_dark="#
|
| 626 |
block_border_width="1px",
|
| 627 |
-
block_label_text_color="#
|
| 628 |
-
block_label_text_color_dark="#
|
| 629 |
-
block_label_background_fill="#
|
| 630 |
-
block_label_background_fill_dark="#
|
| 631 |
-
block_title_text_color="#
|
| 632 |
-
block_title_text_color_dark="#
|
| 633 |
block_radius="3px",
|
| 634 |
-
input_background_fill="#
|
| 635 |
-
input_background_fill_dark="#
|
| 636 |
-
input_border_color="#
|
| 637 |
-
input_border_color_dark="#
|
| 638 |
input_border_color_focus="#FF5128",
|
| 639 |
input_border_color_focus_dark="#FF5128",
|
| 640 |
button_primary_background_fill="#FF5128",
|
| 641 |
button_primary_background_fill_dark="#FF5128",
|
| 642 |
-
button_primary_background_fill_hover="#
|
| 643 |
-
button_primary_background_fill_hover_dark="#
|
| 644 |
-
button_primary_text_color="#
|
| 645 |
-
button_primary_text_color_dark="#
|
| 646 |
button_primary_border_color="#FF5128",
|
| 647 |
button_primary_border_color_dark="#FF5128",
|
| 648 |
)
|
|
@@ -651,15 +651,18 @@ CSS = """
|
|
| 651 |
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,600;1,9..144,900&family=JetBrains+Mono:wght@400;600&display=swap');
|
| 652 |
|
| 653 |
.gradio-container {
|
| 654 |
-
max-width:
|
| 655 |
-
|
|
|
|
|
|
|
|
|
|
| 656 |
background:
|
| 657 |
-
radial-gradient(1100px 520px at
|
| 658 |
-
radial-gradient(820px 460px at -8% 112%, rgba(255,81,40,0.
|
| 659 |
}
|
| 660 |
|
| 661 |
/* Hero */
|
| 662 |
-
#hero { padding: 22px
|
| 663 |
#hero .kicker {
|
| 664 |
font-family: 'JetBrains Mono', monospace;
|
| 665 |
text-transform: uppercase; letter-spacing: 0.34em;
|
|
@@ -667,29 +670,29 @@ CSS = """
|
|
| 667 |
}
|
| 668 |
#hero h1 {
|
| 669 |
font-family: 'Fraunces', Georgia, serif;
|
| 670 |
-
font-weight: 900; font-size: clamp(56px, 11vw,
|
| 671 |
-
line-height: 0.84; letter-spacing: -0.035em; margin: 0; color: #
|
| 672 |
}
|
| 673 |
#hero h1 em { font-style: italic; color: #FF5128; }
|
| 674 |
#hero .tag {
|
| 675 |
font-family: 'JetBrains Mono', monospace;
|
| 676 |
font-size: 12px; line-height: 1.7; letter-spacing: 0.02em;
|
| 677 |
-
color: #
|
| 678 |
}
|
| 679 |
-
#hero .tag b { color: #
|
| 680 |
|
| 681 |
/* Section eyebrow labels */
|
| 682 |
.eyebrow {
|
| 683 |
font-family: 'JetBrains Mono', monospace !important;
|
| 684 |
text-transform: uppercase; letter-spacing: 0.22em;
|
| 685 |
-
font-size: 10px !important; color: #
|
| 686 |
}
|
| 687 |
|
| 688 |
/* Component labels in mono */
|
| 689 |
.gradio-container label span,
|
| 690 |
.gradio-container .gr-check-radio label span {
|
| 691 |
font-family: 'JetBrains Mono', monospace !important;
|
| 692 |
-
letter-spacing: 0.06em; font-size: 11px !important; color: #
|
| 693 |
}
|
| 694 |
|
| 695 |
/* Primary CTA */
|
|
@@ -701,7 +704,7 @@ CSS = """
|
|
| 701 |
font-size: 13px !important;
|
| 702 |
border-radius: 3px !important;
|
| 703 |
min-height: 52px !important;
|
| 704 |
-
box-shadow: 0
|
| 705 |
transition: transform .12s ease, box-shadow .2s ease !important;
|
| 706 |
}
|
| 707 |
.go-btn:hover { transform: translateY(-1px); }
|
|
@@ -710,13 +713,13 @@ CSS = """
|
|
| 710 |
.status-line { min-height: 22px; }
|
| 711 |
.status-line p {
|
| 712 |
font-family: 'JetBrains Mono', monospace !important;
|
| 713 |
-
font-size: 13px !important; color: #
|
| 714 |
}
|
| 715 |
.status-line code { color: #FF5128; background: transparent; }
|
| 716 |
.status-line .dot {
|
| 717 |
display: inline-block; width: 8px; height: 8px; border-radius: 50%;
|
| 718 |
background: #FF5128; margin-right: 8px;
|
| 719 |
-
box-shadow: 0 0 10px rgba(255,81,40,0.
|
| 720 |
}
|
| 721 |
|
| 722 |
footer { display: none !important; }
|
|
|
|
| 609 |
font=[gr.themes.GoogleFont("Instrument Sans"), "ui-sans-serif", "sans-serif"],
|
| 610 |
font_mono=[gr.themes.GoogleFont("JetBrains Mono"), "ui-monospace", "monospace"],
|
| 611 |
).set(
|
| 612 |
+
body_background_fill="#EFE9DD",
|
| 613 |
+
body_background_fill_dark="#EFE9DD",
|
| 614 |
+
body_text_color="#1A1815",
|
| 615 |
+
body_text_color_dark="#1A1815",
|
| 616 |
+
body_text_color_subdued="#6E6A60",
|
| 617 |
+
body_text_color_subdued_dark="#6E6A60",
|
| 618 |
+
background_fill_primary="#FAF6EE",
|
| 619 |
+
background_fill_primary_dark="#FAF6EE",
|
| 620 |
+
background_fill_secondary="#F1EBDF",
|
| 621 |
+
background_fill_secondary_dark="#F1EBDF",
|
| 622 |
+
block_background_fill="#FAF6EE",
|
| 623 |
+
block_background_fill_dark="#FAF6EE",
|
| 624 |
+
block_border_color="#DAD3C4",
|
| 625 |
+
block_border_color_dark="#DAD3C4",
|
| 626 |
block_border_width="1px",
|
| 627 |
+
block_label_text_color="#6E6A60",
|
| 628 |
+
block_label_text_color_dark="#6E6A60",
|
| 629 |
+
block_label_background_fill="#FAF6EE",
|
| 630 |
+
block_label_background_fill_dark="#FAF6EE",
|
| 631 |
+
block_title_text_color="#1A1815",
|
| 632 |
+
block_title_text_color_dark="#1A1815",
|
| 633 |
block_radius="3px",
|
| 634 |
+
input_background_fill="#FFFFFF",
|
| 635 |
+
input_background_fill_dark="#FFFFFF",
|
| 636 |
+
input_border_color="#DAD3C4",
|
| 637 |
+
input_border_color_dark="#DAD3C4",
|
| 638 |
input_border_color_focus="#FF5128",
|
| 639 |
input_border_color_focus_dark="#FF5128",
|
| 640 |
button_primary_background_fill="#FF5128",
|
| 641 |
button_primary_background_fill_dark="#FF5128",
|
| 642 |
+
button_primary_background_fill_hover="#E8431F",
|
| 643 |
+
button_primary_background_fill_hover_dark="#E8431F",
|
| 644 |
+
button_primary_text_color="#FFF7F0",
|
| 645 |
+
button_primary_text_color_dark="#FFF7F0",
|
| 646 |
button_primary_border_color="#FF5128",
|
| 647 |
button_primary_border_color_dark="#FF5128",
|
| 648 |
)
|
|
|
|
| 651 |
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,600;1,9..144,900&family=JetBrains+Mono:wght@400;600&display=swap');
|
| 652 |
|
| 653 |
.gradio-container {
|
| 654 |
+
max-width: 100% !important;
|
| 655 |
+
width: 100% !important;
|
| 656 |
+
margin: 0 !important;
|
| 657 |
+
padding-left: clamp(16px, 4vw, 56px) !important;
|
| 658 |
+
padding-right: clamp(16px, 4vw, 56px) !important;
|
| 659 |
background:
|
| 660 |
+
radial-gradient(1100px 520px at 92% -12%, rgba(255,81,40,0.10), transparent 60%),
|
| 661 |
+
radial-gradient(820px 460px at -8% 112%, rgba(255,81,40,0.05), transparent 55%) !important;
|
| 662 |
}
|
| 663 |
|
| 664 |
/* Hero */
|
| 665 |
+
#hero { padding: 22px 0 26px; border-bottom: 1px solid #DAD3C4; margin-bottom: 26px; }
|
| 666 |
#hero .kicker {
|
| 667 |
font-family: 'JetBrains Mono', monospace;
|
| 668 |
text-transform: uppercase; letter-spacing: 0.34em;
|
|
|
|
| 670 |
}
|
| 671 |
#hero h1 {
|
| 672 |
font-family: 'Fraunces', Georgia, serif;
|
| 673 |
+
font-weight: 900; font-size: clamp(56px, 11vw, 140px);
|
| 674 |
+
line-height: 0.84; letter-spacing: -0.035em; margin: 0; color: #1A1815;
|
| 675 |
}
|
| 676 |
#hero h1 em { font-style: italic; color: #FF5128; }
|
| 677 |
#hero .tag {
|
| 678 |
font-family: 'JetBrains Mono', monospace;
|
| 679 |
font-size: 12px; line-height: 1.7; letter-spacing: 0.02em;
|
| 680 |
+
color: #6E6A60; margin-top: 18px; max-width: 680px;
|
| 681 |
}
|
| 682 |
+
#hero .tag b { color: #1A1815; font-weight: 600; }
|
| 683 |
|
| 684 |
/* Section eyebrow labels */
|
| 685 |
.eyebrow {
|
| 686 |
font-family: 'JetBrains Mono', monospace !important;
|
| 687 |
text-transform: uppercase; letter-spacing: 0.22em;
|
| 688 |
+
font-size: 10px !important; color: #9A9486 !important; margin: 4px 0 2px !important;
|
| 689 |
}
|
| 690 |
|
| 691 |
/* Component labels in mono */
|
| 692 |
.gradio-container label span,
|
| 693 |
.gradio-container .gr-check-radio label span {
|
| 694 |
font-family: 'JetBrains Mono', monospace !important;
|
| 695 |
+
letter-spacing: 0.06em; font-size: 11px !important; color: #6E6A60 !important;
|
| 696 |
}
|
| 697 |
|
| 698 |
/* Primary CTA */
|
|
|
|
| 704 |
font-size: 13px !important;
|
| 705 |
border-radius: 3px !important;
|
| 706 |
min-height: 52px !important;
|
| 707 |
+
box-shadow: 0 10px 26px -12px rgba(255,81,40,0.7) !important;
|
| 708 |
transition: transform .12s ease, box-shadow .2s ease !important;
|
| 709 |
}
|
| 710 |
.go-btn:hover { transform: translateY(-1px); }
|
|
|
|
| 713 |
.status-line { min-height: 22px; }
|
| 714 |
.status-line p {
|
| 715 |
font-family: 'JetBrains Mono', monospace !important;
|
| 716 |
+
font-size: 13px !important; color: #1A1815 !important; margin: 0 !important;
|
| 717 |
}
|
| 718 |
.status-line code { color: #FF5128; background: transparent; }
|
| 719 |
.status-line .dot {
|
| 720 |
display: inline-block; width: 8px; height: 8px; border-radius: 50%;
|
| 721 |
background: #FF5128; margin-right: 8px;
|
| 722 |
+
box-shadow: 0 0 10px rgba(255,81,40,0.6);
|
| 723 |
}
|
| 724 |
|
| 725 |
footer { display: none !important; }
|