ai-english-tutor-poc/src/App.css
Late Night Defender 7fcb4784e3
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
switch to the new VN-style design
2025-05-16 16:27:50 +07:00

137 lines
2.2 KiB
CSS

* {
box-sizing: border-box;
}
:root {
}
body {
margin: 0;
padding: 0;
background: linear-gradient(to bottom, #bae6fd, #ffffff);
color: #1f2937;
height: 100vh;
overflow-x: hidden;
}
.app-container {
min-height: 100vh;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
padding: 1rem;
}
.scene-wrapper {
position: relative;
max-width: 640px;
width: 100%;
padding: 1rem;
}
.avatar {
position: absolute;
top: -80px;
left: 50%;
transform: translateX(-50%);
width: 128px;
height: 128px;
border-radius: 50%;
border: 4px solid white;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
object-fit: cover;
animation: popIn 0.4s ease;
}
.dialogue-box {
background: rgba(255, 255, 255, 0.9);
border: 1px solid #d1d5db;
border-radius: 1.5rem;
padding: 1.5rem;
margin-top: 6rem;
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
animation: fadeIn 0.5s ease-in-out;
}
.dialogue-text {
font-size: 1.125rem;
color: #374151;
margin-bottom: 1rem;
}
.dialogue-text strong {
color: #111827;
}
.control-button {
margin-top: 1.5rem;
padding: 0.75rem 1.5rem;
font-size: 1.125rem;
font-weight: 700;
color: white;
border: none;
border-radius: 9999px;
box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
transition: background 0.3s ease;
}
.control-button.recording {
background-color: #ef4444;
}
.control-button.idle {
background-color: #3b82f6;
}
.control-button.idle:hover {
background-color: #2563eb;
}
.recording-indicator {
color: red;
font-weight: bold;
margin-top: 1rem;
text-align: center;
animation: pulse 1s infinite;
}
.waveform-canvas {
width: 300px; /* same as element width */
height: 60px; /* same as element height */
background-color: #000;
border-radius: 8px;
margin: 10px auto;
display: block;
}
@keyframes pulse {
0% { opacity: 1; }
50% { opacity: 0.3; }
100% { opacity: 1; }
}
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes popIn {
0% {
transform: scale(0.8);
opacity: 0;
}
100% {
transform: scale(1);
opacity: 1;
}
}