Spaces:
Sleeping
Sleeping
Download web/static/css/style.css from zyx2026/speechbridge: direct link, hf CLI and curl.
- Browser
- Download file 16.8 kB
-
https://huggingface.co/spaces/zyx2026/speechbridge/resolve/main/web/static/css/style.css
- Command line
-
hf download hf://spaces/zyx2026/speechbridge/web/static/css/style.css
-
curl -L -o style.css https://huggingface.co/spaces/zyx2026/speechbridge/resolve/main/web/static/css/style.css
16.8 kB
| /* โโ ๅบ็ก โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ */ | |
| :root { | |
| --primary: #4f46e5; | |
| --primary-light: #818cf8; | |
| --success: #10b981; | |
| --danger: #ef4444; | |
| --warning: #f59e0b; | |
| --bg: #f8fafc; | |
| --card: #ffffff; | |
| --text: #1e293b; | |
| --text-light: #64748b; | |
| --border: #e2e8f0; | |
| --radius: 12px; | |
| --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06); | |
| } | |
| * { margin: 0; padding: 0; box-sizing: border-box; } | |
| body { | |
| font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; | |
| background: var(--bg); | |
| color: var(--text); | |
| line-height: 1.6; | |
| min-height: 100vh; | |
| display: flex; | |
| flex-direction: column; | |
| overflow-x: hidden; | |
| } | |
| .container { max-width: 1100px; margin: 0 auto; padding: 0 20px; } | |
| /* โโ ๅฏผ่ช โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ */ | |
| .navbar { | |
| background: var(--card); | |
| border-bottom: 1px solid var(--border); | |
| padding: 16px 0; | |
| position: sticky; | |
| top: 0; | |
| z-index: 100; | |
| backdrop-filter: blur(10px); | |
| } | |
| .navbar .container { display: flex; align-items: center; justify-content: space-between; } | |
| .logo { font-size: 1.3rem; font-weight: 700; color: var(--primary); text-decoration: none; } | |
| .nav-links a { | |
| color: var(--text-light); | |
| text-decoration: none; | |
| margin-left: 24px; | |
| font-weight: 500; | |
| transition: color 0.2s; | |
| } | |
| .nav-links a:hover { color: var(--primary); } | |
| /* โโ ไธปๅ ๅฎน โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ */ | |
| main { flex: 1; padding: 30px 20px; } | |
| /* โโ Hero โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ */ | |
| .hero { | |
| text-align: center; | |
| padding: 40px 0 30px; | |
| } | |
| .hero h1 { font-size: 2.2rem; margin-bottom: 8px; } | |
| .subtitle { color: var(--text-light); font-size: 1.1rem; } | |
| /* โโ ๅก็ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ */ | |
| .card { | |
| background: var(--card); | |
| border-radius: var(--radius); | |
| padding: 30px; | |
| box-shadow: var(--shadow); | |
| margin-bottom: 24px; | |
| } | |
| .card h2 { margin-bottom: 20px; font-size: 1.4rem; } | |
| /* โโ ่กจๅ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ */ | |
| .form-group { margin-bottom: 20px; } | |
| .form-group label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--text); } | |
| .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; } | |
| select, input[type="text"], input[type="password"], input[type="email"], input[type="number"] { | |
| width: 100%; | |
| padding: 10px 14px; | |
| border: 1px solid var(--border); | |
| border-radius: 8px; | |
| font-size: 1rem; | |
| background: var(--card); | |
| transition: border-color 0.2s; | |
| -webkit-appearance: none; | |
| appearance: none; | |
| } | |
| select:focus, input:focus { outline: none; border-color: var(--primary); } | |
| .hint { font-size: 0.85rem; color: var(--text-light); margin-top: 4px; } | |
| /* โโ ๅฝ้ณๅบ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ */ | |
| .record-section { text-align: center; margin-bottom: 24px; } | |
| .mic-area { padding: 20px 0; } | |
| .mic-btn { | |
| width: 100px; | |
| height: 100px; | |
| border-radius: 50%; | |
| border: 4px solid var(--primary); | |
| background: var(--card); | |
| cursor: pointer; | |
| transition: all 0.3s; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| margin: 0 auto 16px; | |
| box-shadow: 0 4px 15px rgba(79, 70, 229, 0.15); | |
| } | |
| .mic-btn:hover { transform: scale(1.05); box-shadow: 0 6px 20px rgba(79, 70, 229, 0.25); } | |
| .mic-btn.recording { | |
| border-color: var(--danger); | |
| background: #fee2e2; | |
| animation: pulse 1.5s infinite; | |
| } | |
| @keyframes pulse { | |
| 0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); } | |
| 50% { box-shadow: 0 0 0 15px rgba(239, 68, 68, 0); } | |
| } | |
| .mic-icon { font-size: 2.5rem; } | |
| .mic-status { font-size: 0.95rem; color: var(--text-light); margin-bottom: 8px; } | |
| .mic-timer { font-size: 1.8rem; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--danger); } | |
| /* ๆณขๅฝขๅจ็ป */ | |
| .waveform { | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| gap: 4px; | |
| height: 40px; | |
| margin-top: 12px; | |
| } | |
| .wave-bar { | |
| width: 6px; | |
| height: 4px; | |
| background: var(--primary); | |
| border-radius: 3px; | |
| transition: height 0.1s; | |
| } | |
| /* ้ณ้ข้ข่ง */ | |
| .audio-preview { | |
| margin: 16px 0; | |
| padding: 16px; | |
| background: var(--bg); | |
| border-radius: 8px; | |
| } | |
| .audio-preview audio { width: 100%; margin-bottom: 12px; } | |
| .preview-actions { text-align: center; } | |
| .divider { | |
| text-align: center; | |
| margin: 24px 0; | |
| position: relative; | |
| } | |
| .divider::before { | |
| content: ''; | |
| position: absolute; | |
| left: 0; right: 0; top: 50%; | |
| border-top: 1px solid var(--border); | |
| } | |
| .divider span { | |
| background: var(--card); | |
| padding: 0 16px; | |
| color: var(--text-light); | |
| font-size: 0.9rem; | |
| position: relative; | |
| } | |
| /* โโ ๆไปถๆๆฝๅบ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ */ | |
| .file-drop { | |
| border: 2px dashed var(--border); | |
| border-radius: var(--radius); | |
| padding: 30px; | |
| text-align: center; | |
| cursor: pointer; | |
| transition: all 0.3s; | |
| position: relative; | |
| } | |
| .file-drop:hover, .file-drop.dragover { | |
| border-color: var(--primary); | |
| background: #f0f0ff; | |
| } | |
| .file-drop input[type="file"] { | |
| position: absolute; | |
| inset: 0; | |
| opacity: 0; | |
| cursor: pointer; | |
| } | |
| .file-drop-content .icon { font-size: 2rem; display: block; margin-bottom: 8px; } | |
| .file-selected { | |
| display: flex; | |
| flex-direction: column; | |
| align-items: center; | |
| gap: 4px; | |
| } | |
| .file-selected .icon { font-size: 2rem; } | |
| .checkbox-label { | |
| display: flex ; | |
| align-items: center; | |
| gap: 8px; | |
| font-weight: 600; | |
| cursor: pointer; | |
| } | |
| .checkbox-label input { width: 18px; height: 18px; } | |
| /* โโ ๆ้ฎ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ */ | |
| .btn { | |
| display: inline-block; | |
| padding: 10px 24px; | |
| border-radius: 8px; | |
| font-size: 1rem; | |
| font-weight: 600; | |
| text-decoration: none; | |
| border: none; | |
| cursor: pointer; | |
| transition: all 0.2s; | |
| text-align: center; | |
| } | |
| .btn-primary { background: var(--primary); color: #fff; } | |
| .btn-primary:hover { background: #4338ca; } | |
| .btn-primary:disabled { background: #a5a5f5; cursor: not-allowed; } | |
| .btn-secondary { background: var(--bg); color: var(--text); border: 1px solid var(--border); } | |
| .btn-secondary:hover { background: #eef2ff; } | |
| .btn-danger { background: #fee2e2; color: var(--danger); } | |
| .btn-danger:hover { background: #fecaca; } | |
| .btn-block { display: block; width: 100%; padding: 14px; font-size: 1.1rem; } | |
| /* โโ ็นๆงๅก็ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ */ | |
| .features { | |
| display: grid; | |
| grid-template-columns: repeat(4, 1fr); | |
| gap: 16px; | |
| margin-top: 30px; | |
| } | |
| .feature-card { | |
| background: var(--card); | |
| border-radius: var(--radius); | |
| padding: 24px; | |
| text-align: center; | |
| box-shadow: var(--shadow); | |
| } | |
| .feature-card h3 { font-size: 1.1rem; margin-bottom: 8px; } | |
| .feature-card p { color: var(--text-light); font-size: 0.9rem; } | |
| /* โโ ็ปๆ้กต โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ */ | |
| .breadcrumb { | |
| display: flex; | |
| gap: 20px; | |
| margin-bottom: 20px; | |
| } | |
| .breadcrumb a { color: var(--primary); text-decoration: none; font-weight: 500; } | |
| .breadcrumb a:hover { text-decoration: underline; } | |
| .status-card h2 { margin-bottom: 16px; } | |
| .result-header { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; } | |
| .tag { | |
| display: inline-block; | |
| padding: 3px 10px; | |
| border-radius: 20px; | |
| font-size: 0.8rem; | |
| font-weight: 600; | |
| background: #eef2ff; | |
| color: var(--primary); | |
| max-width: 100%; | |
| overflow: hidden; | |
| text-overflow: ellipsis; | |
| white-space: nowrap; | |
| vertical-align: middle; | |
| } | |
| /* โโ ๅฏนๆฏๅบ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ */ | |
| .compare-box { | |
| display: grid; | |
| grid-template-columns: 1fr auto 1fr; | |
| gap: 16px; | |
| align-items: start; | |
| margin-bottom: 24px; | |
| } | |
| .compare-arrow { | |
| font-size: 2rem; | |
| color: var(--primary); | |
| align-self: center; | |
| padding-top: 20px; | |
| } | |
| .text-box { | |
| padding: 16px; | |
| border-radius: 8px; | |
| font-size: 1.05rem; | |
| line-height: 1.7; | |
| min-height: 80px; | |
| overflow-wrap: break-word; | |
| word-break: break-word; | |
| } | |
| .text-box.original { background: #fef3c7; border: 1px solid #fde68a; } | |
| .text-box.corrected { background: #d1fae5; border: 1px solid #6ee7b7; } | |
| .compare-item .meta { font-size: 0.8rem; color: var(--text-light); margin-top: 6px; overflow-wrap: break-word; } | |
| /* โโ TTS ๆญๆพๆ้ฎ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ */ | |
| .tts-buttons { display: flex; gap: 8px; margin-top: 12px; } | |
| .btn-tts { | |
| background: #eef2ff; | |
| color: var(--primary); | |
| border: 1px solid var(--primary-light); | |
| padding: 6px 14px; | |
| font-size: 0.85rem; | |
| border-radius: 20px; | |
| cursor: pointer; | |
| transition: all 0.2s; | |
| } | |
| .btn-tts:hover { background: var(--primary); color: #fff; } | |
| .btn-tts.playing { | |
| background: var(--primary); | |
| color: #fff; | |
| animation: pulse 1.5s infinite; | |
| } | |
| /* โโ ๆฐๆฎๅบ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ */ | |
| .section { margin-bottom: 24px; } | |
| .section h3 { margin-bottom: 12px; } | |
| .intent-text { | |
| padding: 12px 16px; | |
| background: #f0f0ff; | |
| border-radius: 8px; | |
| font-size: 1.05rem; | |
| overflow-wrap: break-word; | |
| word-break: break-word; | |
| } | |
| .data-table { | |
| width: 100%; | |
| border-collapse: collapse; | |
| } | |
| .data-table th, .data-table td { | |
| padding: 10px 14px; | |
| text-align: left; | |
| border-bottom: 1px solid var(--border); | |
| } | |
| .data-table th { background: var(--bg); font-weight: 600; font-size: 0.85rem; color: var(--text-light); } | |
| .data-table tr:hover { background: #f8fafc; } | |
| .text-red { color: var(--danger); } | |
| .text-green { color: var(--success); } | |
| .text-truncate { | |
| max-width: 200px; | |
| white-space: nowrap; | |
| overflow: hidden; | |
| text-overflow: ellipsis; | |
| } | |
| .action-list { padding-left: 20px; } | |
| .action-list li { padding: 6px 0; } | |
| .actions-bar { display: flex; gap: 12px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); } | |
| /* โโ ๅๅฒ่กจ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ */ | |
| .history-table { font-size: 0.9rem; } | |
| .clickable { cursor: pointer; } | |
| .clickable:hover { background: #f0f0ff ; } | |
| .status { font-size: 1.2rem; } | |
| .empty-state { text-align: center; padding: 40px; color: var(--text-light); } | |
| .empty-state p { font-size: 1.2rem; margin-bottom: 16px; } | |
| /* โโ Footer โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ */ | |
| .footer { | |
| text-align: center; | |
| padding: 20px; | |
| color: var(--text-light); | |
| font-size: 0.85rem; | |
| border-top: 1px solid var(--border); | |
| margin-top: 40px; | |
| } | |
| /* โโ ่ฎค่ฏ้กต โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ */ | |
| .auth-page { display: flex; justify-content: center; padding: 40px 0; } | |
| .auth-card { max-width: 420px; width: 100%; } | |
| .auth-card h2 { text-align: center; margin-bottom: 24px; } | |
| .auth-link { text-align: center; margin-top: 16px; color: var(--text-light); } | |
| .auth-link a { color: var(--primary); font-weight: 600; } | |
| /* ๅฏผ่ช็จๆท */ | |
| .nav-user { color: var(--text-light); font-size: 0.9rem; margin-left: 24px; } | |
| .lang-switch { | |
| display: inline-block; | |
| padding: 2px 10px; | |
| border: 1px solid var(--border); | |
| border-radius: 6px; | |
| font-size: 0.8rem; | |
| font-weight: 700; | |
| color: var(--primary); | |
| margin-left: 16px; | |
| text-decoration: none; | |
| transition: all 0.2s; | |
| } | |
| .lang-switch:hover { background: var(--primary); color: #fff; } | |
| /* ๆ็คบๆก */ | |
| .alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; font-size: 0.95rem; } | |
| .alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; } | |
| .alert-success { background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; } | |
| /* โโ ๅ ่ฝฝๅจ็ป โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ */ | |
| .loading-bar { | |
| width: 100%; | |
| height: 4px; | |
| background: var(--border); | |
| border-radius: 2px; | |
| margin: 16px 0; | |
| overflow: hidden; | |
| } | |
| .loading-bar-inner { | |
| width: 30%; | |
| height: 100%; | |
| background: var(--primary); | |
| border-radius: 2px; | |
| animation: loading-slide 1.5s ease-in-out infinite; | |
| } | |
| @keyframes loading-slide { | |
| 0% { transform: translateX(-100%); } | |
| 100% { transform: translateX(400%); } | |
| } | |
| /* โโ ๅๅบๅผ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ */ | |
| @media (max-width: 768px) { | |
| .container { padding: 0 16px; max-width: 100%; overflow-x: hidden; } | |
| main { padding: 16px; } | |
| /* ๅฏผ่ช๏ผๆนไธบ็บตๅๆๅ */ | |
| .navbar { padding: 12px 0; } | |
| .navbar .container { flex-wrap: wrap; gap: 8px; } | |
| .nav-links { | |
| display: flex; | |
| flex-wrap: wrap; | |
| gap: 4px 12px; | |
| width: 100%; | |
| justify-content: center; | |
| } | |
| .nav-links a { margin-left: 0; font-size: 0.85rem; } | |
| .nav-user { margin-left: 0; font-size: 0.85rem; } | |
| .lang-switch { margin-left: 0; } | |
| /* Hero */ | |
| .hero { padding: 24px 0 16px; } | |
| .hero h1 { font-size: 1.6rem; } | |
| .subtitle { font-size: 0.95rem; } | |
| /* ๅก็ */ | |
| .card { padding: 20px 16px; max-width: 100%; box-sizing: border-box; } | |
| .card h2 { font-size: 1.2rem; } | |
| /* ่กจๅ */ | |
| .form-row { grid-template-columns: 1fr; gap: 12px; } | |
| .form-group { margin-bottom: 16px; } | |
| /* ๅฝ้ณ */ | |
| .mic-btn { width: 80px; height: 80px; } | |
| .mic-icon { font-size: 2rem; } | |
| .mic-timer { font-size: 1.4rem; } | |
| /* ๆไปถๆๆฝ */ | |
| .file-drop { padding: 20px 16px; } | |
| /* ็นๆงๅก็ */ | |
| .features { grid-template-columns: 1fr 1fr; gap: 12px; } | |
| .feature-card { padding: 16px; } | |
| .feature-card h3 { font-size: 0.95rem; } | |
| .feature-card p { font-size: 0.8rem; } | |
| /* ็ปๆ้กต */ | |
| .result-header { gap: 6px; margin-bottom: 16px; } | |
| .result-header .tag { font-size: 0.7rem; max-width: 120px; } | |
| /* ๅฏนๆฏๅบ */ | |
| .compare-box { grid-template-columns: 1fr; gap: 12px; } | |
| .compare-arrow { transform: rotate(90deg); padding: 0; font-size: 1.5rem; } | |
| .compare-item { width: 100%; overflow: hidden; } | |
| .text-box { font-size: 0.95rem; padding: 12px; } | |
| .compare-item h3 { font-size: 0.95rem; } | |
| .compare-item .meta { font-size: 0.75rem; word-break: break-all; } | |
| /* ๆฐๆฎๅบ */ | |
| .section h3 { font-size: 1rem; } | |
| .intent-text { font-size: 0.95rem; padding: 10px 12px; } | |
| /* ๆฐๆฎ่กจๆ ผ๏ผๆจชๅๆปๅจ */ | |
| .data-table-wrap { | |
| width: 100%; | |
| overflow-x: auto; | |
| -webkit-overflow-scrolling: touch; | |
| margin: 0 -16px; | |
| padding: 0 16px; | |
| scrollbar-width: thin; | |
| } | |
| .data-table { width: 100%; min-width: 0; border-collapse: collapse; } | |
| .data-table th, .data-table td { padding: 6px 8px; font-size: 0.8rem; word-break: break-word; } | |
| /* ๅๅฒ่กจๆ ผ๏ผ้่ๆฌก่ฆๅ๏ผๅ็ผฉๅฎฝๅบฆ */ | |
| .history-table { font-size: 0.75rem; } | |
| .history-table th:nth-child(1), | |
| .history-table td:nth-child(1) { display: none; } | |
| .history-table th:nth-child(5), | |
| .history-table td:nth-child(5), | |
| .history-table th:nth-child(6), | |
| .history-table td:nth-child(6) { display: none; } | |
| .history-table td { max-width: 80px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } | |
| /* ่ฎค่ฏ้กต */ | |
| .auth-page { padding: 20px 0; } | |
| .auth-card { padding: 20px 16px; } | |
| /* ๆ้ฎ */ | |
| .btn-block { padding: 12px; font-size: 1rem; } | |
| /* ้ขๅ ๅฑ */ | |
| .breadcrumb { gap: 12px; font-size: 0.9rem; } | |
| /* ๆไฝๆ */ | |
| .actions-bar { flex-wrap: wrap; gap: 8px; } | |
| .actions-bar .btn { flex: 1; min-width: 100px; text-align: center; font-size: 0.9rem; padding: 10px 12px; } | |
| } | |
| /* ๅฐๅฑๆๆบ */ | |
| @media (max-width: 400px) { | |
| .features { grid-template-columns: 1fr; } | |
| .hero h1 { font-size: 1.4rem; } | |
| .mic-btn { width: 70px; height: 70px; } | |
| .mic-icon { font-size: 1.8rem; } | |
| } | |