SeaWolf-AI commited on
Commit
32c40dd
·
verified ·
1 Parent(s): e5e842f

fix: white bold text in dark banners (.chdk b) - threat/upsell/standards hero

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -135,7 +135,7 @@ def _metacards(meta, lang):
135
 
136
 
137
  def _upsell(lang):
138
- return ('<div style="background:linear-gradient(135deg,#6d28d9,#8b5cf6);border-radius:14px;padding:16px 18px;margin:16px 0">'
139
  '<div style="font-weight:800;font-size:15px;color:#fff">🔓 ' + _L("전사이트 정밀 리포트 — ② 도메인 인증 탭", "Full-site report — ② Domain Verification tab", lang) + '</div>'
140
  '<div style="font-size:13px;color:#f3e8ff;margin-top:6px">' + _L(
141
  "이 리포트는 <b>홈 1페이지</b> 기준입니다. 회사/조직 도메인 메일로 가입한 Hugging Face 계정으로 로그인하면 — <b>전사이트 페이지별 이슈 · 구조화데이터 커버리지 · 이메일 위조방지(SPF/DMARC) · 자기모순(주소·전화) 탐지 · 다운로드 리포트</b>까지 받습니다.",
@@ -607,7 +607,7 @@ def guideline_html(lang):
607
  svc = "Service: QuantID · Engine: CHITOS"
608
  html_out = (
609
  '<div style="font-family:sans-serif;max-width:900px;margin:0 auto;color:#0e1621">'
610
- '<div style="background:linear-gradient(135deg,#2e1065,#6d28d9);color:#fff;border-radius:14px;padding:18px 20px;margin-bottom:12px">'
611
  '<div style="font-size:12px;letter-spacing:4px;color:#d6bcff;font-weight:800">C H I T O S · ' + _L("준거 체계", "Standards", lang) + '</div>'
612
  '<div style="font-size:20px;font-weight:800;margin-top:6px;color:#fff">' + hero_t + '</div>'
613
  '<div style="color:#e9d5ff;font-size:12.5px;margin-top:4px">' + hero_s + '</div></div>'
@@ -647,7 +647,7 @@ def threat_banner(lang):
647
  t = ("⚠ <b>In 2026 the open-source AI hacking agent “ARTEX”</b> breached 7+ Korean banks, leaking ~<b>68,000 records</b> "
648
  "(entry point: <b>unpatched internal systems</b> · spread to 2,250 MS365 tenants and finance in Taiwan). "
649
  "Attacks are now automated by AI agents — so is defense. CHITOS diagnoses <b>web, infra, AI models and AI agents</b> together.")
650
- return ('<div style="background:#1b0f2e;border:1px solid #7c3aed;border-radius:12px;padding:12px 16px;margin:4px 0 2px;'
651
  'color:#f3e8ff;font-size:12.5px;line-height:1.55">' + t + '</div>')
652
 
653
 
@@ -672,7 +672,7 @@ def relang(label, last_scan, last_deep):
672
  area_help(lang), guideline_html(lang), footer_html(lang), o1u, o2u)
673
 
674
 
675
- CSS = "#title{text-align:center}.gradio-container{max-width:980px!important;margin:0 auto}"
676
  with gr.Blocks(title="CHITOS 인스턴트 스캔", css=CSS, theme=gr.themes.Soft(primary_hue="purple")) as demo:
677
  lang_state = gr.State("ko")
678
  last_scan = gr.State(None)
 
135
 
136
 
137
  def _upsell(lang):
138
+ return ('<div class="chdk" style="background:linear-gradient(135deg,#6d28d9,#8b5cf6);border-radius:14px;padding:16px 18px;margin:16px 0">'
139
  '<div style="font-weight:800;font-size:15px;color:#fff">🔓 ' + _L("전사이트 정밀 리포트 — ② 도메인 인증 탭", "Full-site report — ② Domain Verification tab", lang) + '</div>'
140
  '<div style="font-size:13px;color:#f3e8ff;margin-top:6px">' + _L(
141
  "이 리포트는 <b>홈 1페이지</b> 기준입니다. 회사/조직 도메인 메일로 가입한 Hugging Face 계정으로 로그인하면 — <b>전사이트 페이지별 이슈 · 구조화데이터 커버리지 · 이메일 위조방지(SPF/DMARC) · 자기모순(주소·전화) 탐지 · 다운로드 리포트</b>까지 받습니다.",
 
607
  svc = "Service: QuantID · Engine: CHITOS"
608
  html_out = (
609
  '<div style="font-family:sans-serif;max-width:900px;margin:0 auto;color:#0e1621">'
610
+ '<div class="chdk" style="background:linear-gradient(135deg,#2e1065,#6d28d9);color:#fff;border-radius:14px;padding:18px 20px;margin-bottom:12px">'
611
  '<div style="font-size:12px;letter-spacing:4px;color:#d6bcff;font-weight:800">C H I T O S · ' + _L("준거 체계", "Standards", lang) + '</div>'
612
  '<div style="font-size:20px;font-weight:800;margin-top:6px;color:#fff">' + hero_t + '</div>'
613
  '<div style="color:#e9d5ff;font-size:12.5px;margin-top:4px">' + hero_s + '</div></div>'
 
647
  t = ("⚠ <b>In 2026 the open-source AI hacking agent “ARTEX”</b> breached 7+ Korean banks, leaking ~<b>68,000 records</b> "
648
  "(entry point: <b>unpatched internal systems</b> · spread to 2,250 MS365 tenants and finance in Taiwan). "
649
  "Attacks are now automated by AI agents — so is defense. CHITOS diagnoses <b>web, infra, AI models and AI agents</b> together.")
650
+ return ('<div class="chdk" style="background:#1b0f2e;border:1px solid #7c3aed;border-radius:12px;padding:12px 16px;margin:4px 0 2px;'
651
  'color:#f3e8ff;font-size:12.5px;line-height:1.55">' + t + '</div>')
652
 
653
 
 
672
  area_help(lang), guideline_html(lang), footer_html(lang), o1u, o2u)
673
 
674
 
675
+ CSS = "#title{text-align:center}.gradio-container{max-width:980px!important;margin:0 auto}.chdk b,.chdk strong{color:#fff}"
676
  with gr.Blocks(title="CHITOS 인스턴트 스캔", css=CSS, theme=gr.themes.Soft(primary_hue="purple")) as demo:
677
  lang_state = gr.State("ko")
678
  last_scan = gr.State(None)