Spaces:
Sleeping
Sleeping
Download src/styles/RecordArea.css from Aya07/emotion-ui: direct link, hf CLI and curl.
- Browser
- Download file 6.53 kB
-
https://huggingface.co/spaces/Aya07/emotion-ui/resolve/main/src/styles/RecordArea.css
- Command line
-
hf download hf://spaces/Aya07/emotion-ui/src/styles/RecordArea.css
-
curl -L -o RecordArea.css https://huggingface.co/spaces/Aya07/emotion-ui/resolve/main/src/styles/RecordArea.css
6.53 kB
| /* ============================================ | |
| RECORD AREA COMPONENT | |
| ============================================ */ | |
| .record-area { | |
| background: var(--code-bg); | |
| border: 2px dashed var(--border); | |
| border-radius: 24px; | |
| padding: 32px 24px; | |
| text-align: center; | |
| transition: all 0.3s ease; | |
| margin-bottom: 24px; | |
| } | |
| .record-visualizer { | |
| position: relative; | |
| margin-bottom: 24px; | |
| min-height: 120px; | |
| display: flex; | |
| justify-content: center; | |
| align-items: center; | |
| } | |
| .record-icon { | |
| font-size: 56px; | |
| transition: all 0.3s ease; | |
| } | |
| .visualizer-bars { | |
| position: absolute; | |
| display: flex; | |
| gap: 6px; | |
| justify-content: center; | |
| align-items: center; | |
| height: 60px; | |
| } | |
| .visualizer-bars .bar { | |
| width: 4px; | |
| background: var(--cardinal); | |
| border-radius: 2px; | |
| animation: soundWave 0.8s ease-in-out infinite; | |
| } | |
| .visualizer-bars .bar:nth-child(1) { animation-delay: 0s; height: 15px; } | |
| .visualizer-bars .bar:nth-child(2) { animation-delay: 0.1s; height: 30px; } | |
| .visualizer-bars .bar:nth-child(3) { animation-delay: 0.2s; height: 45px; } | |
| .visualizer-bars .bar:nth-child(4) { animation-delay: 0.3s; height: 35px; } | |
| .visualizer-bars .bar:nth-child(5) { animation-delay: 0.4s; height: 25px; } | |
| .visualizer-bars .bar:nth-child(6) { animation-delay: 0.5s; height: 20px; } | |
| @keyframes soundWave { | |
| 0%, 100% { transform: scaleY(0.5); } | |
| 50% { transform: scaleY(1.5); } | |
| } | |
| .record-visualizer.active .record-icon { | |
| animation: pulseRecord 1.5s infinite; | |
| } | |
| @keyframes pulseRecord { | |
| 0%, 100% { transform: scale(1); opacity: 1; } | |
| 50% { transform: scale(1.1); opacity: 0.7; } | |
| } | |
| .record-controls { | |
| margin-bottom: 16px; | |
| } | |
| .record-btn { | |
| display: inline-flex; | |
| align-items: center; | |
| gap: 10px; | |
| padding: 14px 32px; | |
| border-radius: 40px; | |
| font-size: 16px; | |
| font-weight: 600; | |
| cursor: pointer; | |
| transition: all 0.3s ease; | |
| border: none; | |
| } | |
| .record-btn.start { | |
| background: var(--cardinal); | |
| color: white; | |
| } | |
| .record-btn.start:hover { | |
| transform: translateY(-2px); | |
| box-shadow: 0 8px 20px rgba(172, 22, 52, 0.3); | |
| } | |
| .record-btn.stop { | |
| background: var(--rustic-red); | |
| color: white; | |
| } | |
| .record-btn.stop:hover { | |
| transform: translateY(-2px); | |
| box-shadow: 0 8px 20px rgba(62, 0, 20, 0.3); | |
| } | |
| .recording-timer { | |
| font-size: 24px; | |
| font-weight: 700; | |
| font-family: var(--mono); | |
| color: var(--cardinal); | |
| margin-top: 16px; | |
| } | |
| .recorded-info { | |
| margin-top: 20px; | |
| padding: 16px; | |
| background: rgba(172, 22, 52, 0.1); | |
| border-radius: 16px; | |
| } | |
| .recorded-success { | |
| color: var(--cardinal); | |
| font-weight: 600; | |
| margin-bottom: 8px; | |
| } | |
| .recorded-filename { | |
| font-size: 12px; | |
| color: var(--text); | |
| margin-bottom: 12px; | |
| word-break: break-all; | |
| } | |
| .re-record-btn { | |
| background: transparent; | |
| border: 1px solid var(--border); | |
| padding: 8px 20px; | |
| border-radius: 30px; | |
| font-size: 13px; | |
| cursor: pointer; | |
| color: var(--text); | |
| transition: all 0.3s ease; | |
| } | |
| .re-record-btn:hover { | |
| background: var(--accent-bg); | |
| border-color: var(--cardinal); | |
| color: var(--cardinal); | |
| } | |
| /* ============================================ | |
| AUDIO PLAYER STYLES | |
| ============================================ */ | |
| .audio-player-container { | |
| margin: 20px 0; | |
| background: var(--bg); | |
| border-radius: 24px; | |
| border: 1px solid var(--border); | |
| overflow: hidden; | |
| transition: all 0.3s ease; | |
| } | |
| .audio-player-container:hover { | |
| border-color: var(--cardinal); | |
| box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1); | |
| } | |
| .audio-player-title { | |
| display: flex; | |
| align-items: center; | |
| gap: 12px; | |
| padding: 16px 16px 0 16px; | |
| margin-bottom: 8px; | |
| } | |
| .audio-player-title span:first-child { | |
| font-size: 20px; | |
| } | |
| .audio-player-title span:last-child { | |
| font-size: 13px; | |
| font-weight: 600; | |
| color: var(--cardinal); | |
| text-transform: uppercase; | |
| letter-spacing: 0.5px; | |
| } | |
| .audio-player { | |
| width: 100%; | |
| height: 50px; | |
| margin: 8px 0; | |
| padding: 0 8px; | |
| } | |
| /* Personnalisation du lecteur audio */ | |
| .audio-player::-webkit-media-controls-panel { | |
| background: var(--code-bg); | |
| border-radius: 30px; | |
| } | |
| .audio-player::-webkit-media-controls-play-button { | |
| background-color: var(--cardinal); | |
| border-radius: 50%; | |
| transition: transform 0.2s ease; | |
| } | |
| .audio-player::-webkit-media-controls-play-button:hover { | |
| background-color: var(--deep-blush); | |
| transform: scale(1.05); | |
| } | |
| .audio-player::-webkit-media-controls-current-time-display, | |
| .audio-player::-webkit-media-controls-time-remaining-display { | |
| color: var(--text-h); | |
| font-weight: 500; | |
| font-size: 11px; | |
| } | |
| .audio-player::-webkit-media-controls-timeline { | |
| background-color: var(--border); | |
| border-radius: 10px; | |
| height: 4px; | |
| } | |
| .audio-player::-webkit-media-controls-timeline::-webkit-slider-thumb { | |
| background-color: var(--cardinal); | |
| width: 12px; | |
| height: 12px; | |
| border-radius: 50%; | |
| } | |
| .audio-info { | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| flex-wrap: wrap; | |
| gap: 12px; | |
| padding: 12px 16px; | |
| background: rgba(172, 22, 52, 0.05); | |
| border-top: 1px solid var(--border); | |
| } | |
| .audio-info span { | |
| display: flex; | |
| align-items: center; | |
| gap: 6px; | |
| font-size: 11px; | |
| color: var(--text); | |
| font-weight: 500; | |
| } | |
| .audio-info span:first-child { | |
| color: var(--cardinal); | |
| } | |
| .download-audio-btn { | |
| background: linear-gradient(135deg, var(--cardinal), var(--deep-blush)); | |
| border: none; | |
| border-radius: 30px; | |
| padding: 6px 16px; | |
| font-size: 11px; | |
| font-weight: 600; | |
| color: white; | |
| cursor: pointer; | |
| transition: all 0.2s ease; | |
| display: flex; | |
| align-items: center; | |
| gap: 6px; | |
| } | |
| .download-audio-btn:hover { | |
| transform: translateY(-2px); | |
| box-shadow: 0 4px 12px rgba(172, 22, 52, 0.3); | |
| } | |
| /* RTL Support */ | |
| [dir="rtl"] .recorded-info { | |
| direction: rtl; | |
| } | |
| [dir="rtl"] .audio-player-title { | |
| flex-direction: row-reverse; | |
| } | |
| [dir="rtl"] .audio-info { | |
| flex-direction: row-reverse; | |
| } | |
| /* Responsive */ | |
| @media (max-width: 768px) { | |
| .recording-timer { | |
| font-size: 18px; | |
| } | |
| .record-btn { | |
| padding: 10px 24px; | |
| font-size: 13px; | |
| } | |
| .audio-player-container { | |
| margin: 16px 0; | |
| } | |
| .audio-player-title { | |
| padding: 12px 12px 0 12px; | |
| } | |
| .audio-player-title span:first-child { | |
| font-size: 18px; | |
| } | |
| .audio-player-title span:last-child { | |
| font-size: 11px; | |
| } | |
| .audio-player { | |
| height: 44px; | |
| } | |
| .audio-info { | |
| flex-direction: column; | |
| align-items: flex-start; | |
| } | |
| .download-audio-btn { | |
| width: 100%; | |
| justify-content: center; | |
| } | |
| } | |
| @media (max-width: 480px) { | |
| .audio-info span { | |
| font-size: 10px; | |
| } | |
| .audio-player { | |
| height: 40px; | |
| } | |
| } |