Pointf5ive commited on
Commit
3c0529c
·
1 Parent(s): 5b9bb0f

Style intake cards to match mock with branded Excel/Word headers

Browse files
Files changed (1) hide show
  1. app.py +90 -15
app.py CHANGED
@@ -604,37 +604,90 @@ TOTEM_CSS = """
604
  #totem-intake-mount #intake-row {
605
  display: grid !important;
606
  grid-template-columns: repeat(2, minmax(280px, 1fr));
607
- gap: 14px;
608
  margin: 0;
609
  }
610
 
611
  #totem-intake-mount #intake-row > .gr-column {
612
- border: 1px solid rgba(205, 123, 255, 0.42);
613
- border-radius: 14px;
614
  background:
615
- radial-gradient(600px 180px at 100% 0%, rgba(125, 68, 209, 0.24), transparent 62%),
616
- linear-gradient(180deg, rgba(13, 22, 58, 0.95), rgba(8, 14, 40, 0.95));
617
- box-shadow: inset 0 0 0 1px rgba(255, 216, 126, 0.12);
618
- padding: 10px 12px 12px !important;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
619
  }
620
 
621
- #totem-intake-mount #intake-row .gr-markdown p {
622
- margin: 2px 0 8px !important;
623
- color: #f8e6b7 !important;
 
 
 
 
 
 
 
 
 
624
  letter-spacing: 0.02em;
625
  }
626
 
 
 
 
 
 
 
 
 
 
 
 
 
627
  #totem-intake-mount #intake-row .gr-file {
628
- border: 1px dashed rgba(202, 125, 255, 0.45) !important;
629
  border-radius: 12px !important;
630
- background: rgba(10, 19, 52, 0.82) !important;
631
- min-height: 102px;
 
 
632
  }
633
 
634
  #totem-intake-mount #intake-row button {
635
  border-radius: 10px !important;
636
  }
637
 
 
 
 
 
638
  @media (max-width: 1080px) {
639
  #totem-intake-mount #intake-row {
640
  grid-template-columns: 1fr;
@@ -3072,11 +3125,22 @@ with gr.Blocks(title="TOTEM Studio") as demo:
3072
  gr.Markdown("### Intake Windows")
3073
  with gr.Row(elem_id="intake-row"):
3074
  with gr.Column(scale=1, elem_id="workbook-intake-panel"):
3075
- gr.Markdown("**Workbook Upload**")
 
 
 
 
 
 
 
 
 
 
3076
  dashboard_workbook_file = gr.File(
3077
  label="Workbook (.xlsx or .xlsm)",
3078
  file_types=[".xlsx", ".xlsm"],
3079
  type="filepath",
 
3080
  )
3081
  dashboard_set_workbook = gr.Button("Set Active Workbook", variant="primary")
3082
  workbook_home_display = gr.Textbox(
@@ -3086,11 +3150,22 @@ with gr.Blocks(title="TOTEM Studio") as demo:
3086
  )
3087
 
3088
  with gr.Column(scale=1, elem_id="codex-panel"):
3089
- gr.Markdown("**Manuscript Upload**")
 
 
 
 
 
 
 
 
 
 
3090
  dashboard_manuscript_file = gr.File(
3091
  label="Manuscript (.txt, .docx, or .pdf)",
3092
  file_types=[".txt", ".docx", ".pdf"],
3093
  type="filepath",
 
3094
  )
3095
  dashboard_manuscript_analyze = gr.Button(
3096
  "Analyze Manuscript (No Auto-Score)",
 
604
  #totem-intake-mount #intake-row {
605
  display: grid !important;
606
  grid-template-columns: repeat(2, minmax(280px, 1fr));
607
+ gap: 16px;
608
  margin: 0;
609
  }
610
 
611
  #totem-intake-mount #intake-row > .gr-column {
612
+ border: 1px solid rgba(236, 130, 214, 0.48);
613
+ border-radius: 16px;
614
  background:
615
+ radial-gradient(520px 190px at 100% 0%, rgba(126, 72, 196, 0.32), transparent 70%),
616
+ radial-gradient(420px 220px at 0% 100%, rgba(43, 69, 154, 0.22), transparent 72%),
617
+ linear-gradient(180deg, rgba(17, 20, 63, 0.96), rgba(10, 14, 42, 0.96));
618
+ box-shadow:
619
+ inset 0 0 0 1px rgba(255, 212, 123, 0.16),
620
+ 0 8px 22px rgba(4, 6, 22, 0.48);
621
+ padding: 12px 14px 14px !important;
622
+ min-height: 172px;
623
+ }
624
+
625
+ #totem-intake-mount #intake-row .intake-card-head {
626
+ display: flex;
627
+ align-items: center;
628
+ justify-content: space-between;
629
+ gap: 10px;
630
+ margin-bottom: 10px;
631
+ }
632
+
633
+ #totem-intake-mount #intake-row .intake-brand {
634
+ display: flex;
635
+ align-items: center;
636
+ gap: 10px;
637
+ }
638
+
639
+ #totem-intake-mount #intake-row .intake-brand img {
640
+ width: 40px;
641
+ height: 40px;
642
+ border-radius: 10px;
643
+ object-fit: cover;
644
+ box-shadow: 0 0 0 1px rgba(255, 220, 170, 0.14);
645
  }
646
 
647
+ #totem-intake-mount #intake-row .intake-brand strong {
648
+ display: block;
649
+ color: #f4ece2;
650
+ font-size: 34px;
651
+ line-height: 1.05;
652
+ margin-bottom: 2px;
653
+ }
654
+
655
+ #totem-intake-mount #intake-row .intake-brand span {
656
+ display: block;
657
+ color: rgba(215, 223, 243, 0.88);
658
+ font-size: 20px;
659
  letter-spacing: 0.02em;
660
  }
661
 
662
+ #totem-intake-mount #intake-row .intake-cloud {
663
+ width: 56px;
664
+ height: 56px;
665
+ border-radius: 50%;
666
+ border: 1px solid rgba(206, 136, 254, 0.42);
667
+ display: grid;
668
+ place-items: center;
669
+ font-size: 26px;
670
+ color: #d7b6ff;
671
+ background: rgba(31, 33, 79, 0.45);
672
+ }
673
+
674
  #totem-intake-mount #intake-row .gr-file {
675
+ border: 1px dashed rgba(205, 135, 255, 0.5) !important;
676
  border-radius: 12px !important;
677
+ background: rgba(8, 15, 44, 0.62) !important;
678
+ min-height: 56px;
679
+ max-height: 56px;
680
+ overflow: hidden;
681
  }
682
 
683
  #totem-intake-mount #intake-row button {
684
  border-radius: 10px !important;
685
  }
686
 
687
+ #totem-intake-mount #intake-row .gr-file .wrap {
688
+ min-height: 56px !important;
689
+ }
690
+
691
  @media (max-width: 1080px) {
692
  #totem-intake-mount #intake-row {
693
  grid-template-columns: 1fr;
 
3125
  gr.Markdown("### Intake Windows")
3126
  with gr.Row(elem_id="intake-row"):
3127
  with gr.Column(scale=1, elem_id="workbook-intake-panel"):
3128
+ gr.HTML(
3129
+ """
3130
+ <div class="intake-card-head">
3131
+ <div class="intake-brand">
3132
+ <img src="/gradio_api/file=assets/Brand/excel.png" alt="Excel" />
3133
+ <div><strong>Workbook</strong><span>Drop .xlsx</span></div>
3134
+ </div>
3135
+ <div class="intake-cloud">☁</div>
3136
+ </div>
3137
+ """
3138
+ )
3139
  dashboard_workbook_file = gr.File(
3140
  label="Workbook (.xlsx or .xlsm)",
3141
  file_types=[".xlsx", ".xlsm"],
3142
  type="filepath",
3143
+ show_label=False,
3144
  )
3145
  dashboard_set_workbook = gr.Button("Set Active Workbook", variant="primary")
3146
  workbook_home_display = gr.Textbox(
 
3150
  )
3151
 
3152
  with gr.Column(scale=1, elem_id="codex-panel"):
3153
+ gr.HTML(
3154
+ """
3155
+ <div class="intake-card-head">
3156
+ <div class="intake-brand">
3157
+ <img src="/gradio_api/file=assets/Brand/word.png" alt="Word" />
3158
+ <div><strong>Manuscript</strong><span>Drop .docx</span></div>
3159
+ </div>
3160
+ <div class="intake-cloud">☁</div>
3161
+ </div>
3162
+ """
3163
+ )
3164
  dashboard_manuscript_file = gr.File(
3165
  label="Manuscript (.txt, .docx, or .pdf)",
3166
  file_types=[".txt", ".docx", ".pdf"],
3167
  type="filepath",
3168
+ show_label=False,
3169
  )
3170
  dashboard_manuscript_analyze = gr.Button(
3171
  "Analyze Manuscript (No Auto-Score)",