Spaces:
Running
Running
Update flare-ui/src/app/components/chat/realtime-chat.component.scss
Browse files
flare-ui/src/app/components/chat/realtime-chat.component.scss
CHANGED
@@ -39,30 +39,53 @@ mat-card-header {
|
|
39 |
}
|
40 |
|
41 |
.transcription-area {
|
42 |
-
background: #
|
43 |
padding: 16px;
|
44 |
border-radius: 8px;
|
45 |
margin-bottom: 16px;
|
46 |
min-height: 60px;
|
47 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
48 |
}
|
49 |
|
50 |
@keyframes pulse {
|
51 |
-
0% { opacity: 1; }
|
52 |
-
50% { opacity: 0.
|
53 |
-
100% { opacity: 1; }
|
54 |
-
}
|
55 |
-
|
56 |
-
.transcription-label {
|
57 |
-
font-size: 12px;
|
58 |
-
color: #666;
|
59 |
-
margin-bottom: 4px;
|
60 |
}
|
61 |
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
}
|
67 |
|
68 |
.chat-messages {
|
@@ -155,31 +178,35 @@ mat-card-header {
|
|
155 |
.audio-visualizer {
|
156 |
width: 100%;
|
157 |
height: 100px;
|
158 |
-
background: #
|
159 |
border-radius: 8px;
|
160 |
margin-top: 16px;
|
161 |
-
opacity: 0.
|
162 |
transition: all 0.3s ease;
|
|
|
|
|
163 |
|
164 |
&.active {
|
165 |
opacity: 1;
|
166 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
167 |
}
|
168 |
}
|
169 |
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
-
border-radius: 8px;
|
174 |
-
margin-bottom: 16px;
|
175 |
-
min-height: 60px;
|
176 |
-
animation: pulse 2s infinite;
|
177 |
-
border: 2px solid #4caf50;
|
178 |
-
|
179 |
-
&:empty::after {
|
180 |
-
content: '...';
|
181 |
-
color: #999;
|
182 |
-
}
|
183 |
}
|
184 |
|
185 |
@keyframes visualizerPulse {
|
|
|
39 |
}
|
40 |
|
41 |
.transcription-area {
|
42 |
+
background: #e8f5e9;
|
43 |
padding: 16px;
|
44 |
border-radius: 8px;
|
45 |
margin-bottom: 16px;
|
46 |
min-height: 60px;
|
47 |
+
border: 2px solid #4caf50;
|
48 |
+
transition: all 0.3s ease;
|
49 |
+
|
50 |
+
.transcription-label {
|
51 |
+
font-size: 12px;
|
52 |
+
color: #2e7d32;
|
53 |
+
margin-bottom: 8px;
|
54 |
+
display: flex;
|
55 |
+
align-items: center;
|
56 |
+
gap: 8px;
|
57 |
+
|
58 |
+
.pulse-icon {
|
59 |
+
font-size: 16px;
|
60 |
+
animation: pulse 1.5s infinite;
|
61 |
+
color: #4caf50;
|
62 |
+
}
|
63 |
+
}
|
64 |
+
|
65 |
+
.transcription-text {
|
66 |
+
font-size: 16px;
|
67 |
+
color: #1b5e20;
|
68 |
+
min-height: 24px;
|
69 |
+
font-weight: 500;
|
70 |
+
|
71 |
+
&:empty::after {
|
72 |
+
content: '...';
|
73 |
+
color: #81c784;
|
74 |
+
animation: dots 1.5s infinite;
|
75 |
+
}
|
76 |
+
}
|
77 |
}
|
78 |
|
79 |
@keyframes pulse {
|
80 |
+
0% { transform: scale(1); opacity: 1; }
|
81 |
+
50% { transform: scale(1.1); opacity: 0.8; }
|
82 |
+
100% { transform: scale(1); opacity: 1; }
|
|
|
|
|
|
|
|
|
|
|
|
|
83 |
}
|
84 |
|
85 |
+
@keyframes dots {
|
86 |
+
0%, 20% { content: '.'; }
|
87 |
+
40% { content: '..'; }
|
88 |
+
60%, 100% { content: '...'; }
|
89 |
}
|
90 |
|
91 |
.chat-messages {
|
|
|
178 |
.audio-visualizer {
|
179 |
width: 100%;
|
180 |
height: 100px;
|
181 |
+
background: #212121;
|
182 |
border-radius: 8px;
|
183 |
margin-top: 16px;
|
184 |
+
opacity: 0.5;
|
185 |
transition: all 0.3s ease;
|
186 |
+
position: relative;
|
187 |
+
overflow: hidden;
|
188 |
|
189 |
&.active {
|
190 |
opacity: 1;
|
191 |
+
background: #1a1a1a;
|
192 |
+
box-shadow: 0 0 30px rgba(76, 175, 80, 0.4);
|
193 |
+
|
194 |
+
&::before {
|
195 |
+
content: '';
|
196 |
+
position: absolute;
|
197 |
+
top: 0;
|
198 |
+
left: 0;
|
199 |
+
right: 0;
|
200 |
+
bottom: 0;
|
201 |
+
background: linear-gradient(90deg, transparent, rgba(76, 175, 80, 0.1), transparent);
|
202 |
+
animation: scan 2s linear infinite;
|
203 |
+
}
|
204 |
}
|
205 |
}
|
206 |
|
207 |
+
@keyframes scan {
|
208 |
+
0% { transform: translateX(-100%); }
|
209 |
+
100% { transform: translateX(100%); }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
210 |
}
|
211 |
|
212 |
@keyframes visualizerPulse {
|