Spaces:
Runtime error
Runtime error
Upload folder using huggingface_hub
Browse files- style.css +178 -0
- styles.css +56 -0
style.css
ADDED
@@ -0,0 +1,178 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/* Estilos generales */
|
2 |
+
body {
|
3 |
+
background-color: #f5f5f5;
|
4 |
+
font-family: Arial, sans-serif;
|
5 |
+
}
|
6 |
+
|
7 |
+
.container {
|
8 |
+
max-width: 1200px;
|
9 |
+
margin: 0 auto;
|
10 |
+
}
|
11 |
+
|
12 |
+
/* Estilos de la tarjeta */
|
13 |
+
.card {
|
14 |
+
border-radius: 15px;
|
15 |
+
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
16 |
+
}
|
17 |
+
|
18 |
+
.card-header {
|
19 |
+
border-radius: 15px 15px 0 0;
|
20 |
+
padding: 1rem;
|
21 |
+
}
|
22 |
+
|
23 |
+
/* Estilos de las pesta帽as */
|
24 |
+
.nav-tabs .nav-link {
|
25 |
+
border: none;
|
26 |
+
color: #fff;
|
27 |
+
padding: 0.5rem 1rem;
|
28 |
+
margin-right: 0.5rem;
|
29 |
+
border-radius: 5px;
|
30 |
+
transition: background-color 0.3s;
|
31 |
+
}
|
32 |
+
|
33 |
+
.nav-tabs .nav-link:hover {
|
34 |
+
background-color: rgba(255, 255, 255, 0.1);
|
35 |
+
}
|
36 |
+
|
37 |
+
.nav-tabs .nav-link.active {
|
38 |
+
background-color: rgba(255, 255, 255, 0.2);
|
39 |
+
border: none;
|
40 |
+
}
|
41 |
+
|
42 |
+
/* Estilos del chat */
|
43 |
+
.chat-box {
|
44 |
+
height: 400px;
|
45 |
+
overflow-y: auto;
|
46 |
+
padding: 1rem;
|
47 |
+
background-color: #fff;
|
48 |
+
border-radius: 5px;
|
49 |
+
margin-bottom: 1rem;
|
50 |
+
}
|
51 |
+
|
52 |
+
.message {
|
53 |
+
padding: 0.5rem 1rem;
|
54 |
+
margin-bottom: 0.5rem;
|
55 |
+
border-radius: 10px;
|
56 |
+
max-width: 80%;
|
57 |
+
}
|
58 |
+
|
59 |
+
.user-message {
|
60 |
+
background-color: #e3f2fd;
|
61 |
+
margin-left: auto;
|
62 |
+
}
|
63 |
+
|
64 |
+
.bot-message {
|
65 |
+
background-color: #f5f5f5;
|
66 |
+
margin-right: auto;
|
67 |
+
}
|
68 |
+
|
69 |
+
/* Estilos de los controles */
|
70 |
+
.input-group {
|
71 |
+
margin-top: 1rem;
|
72 |
+
}
|
73 |
+
|
74 |
+
.btn {
|
75 |
+
padding: 0.5rem 1rem;
|
76 |
+
border-radius: 5px;
|
77 |
+
transition: all 0.3s;
|
78 |
+
}
|
79 |
+
|
80 |
+
.btn i {
|
81 |
+
margin-right: 0.5rem;
|
82 |
+
}
|
83 |
+
|
84 |
+
.btn-primary {
|
85 |
+
background-color: #2196f3;
|
86 |
+
border-color: #2196f3;
|
87 |
+
}
|
88 |
+
|
89 |
+
.btn-primary:hover {
|
90 |
+
background-color: #1976d2;
|
91 |
+
border-color: #1976d2;
|
92 |
+
}
|
93 |
+
|
94 |
+
.btn-success {
|
95 |
+
background-color: #4caf50;
|
96 |
+
border-color: #4caf50;
|
97 |
+
}
|
98 |
+
|
99 |
+
.btn-success:hover {
|
100 |
+
background-color: #388e3c;
|
101 |
+
border-color: #388e3c;
|
102 |
+
}
|
103 |
+
|
104 |
+
/* Estilos para el bot贸n de grabaci贸n */
|
105 |
+
#startRecording {
|
106 |
+
position: relative;
|
107 |
+
transition: all 0.3s;
|
108 |
+
}
|
109 |
+
|
110 |
+
#startRecording.active {
|
111 |
+
background-color: #f44336;
|
112 |
+
border-color: #f44336;
|
113 |
+
}
|
114 |
+
|
115 |
+
#startRecording.active:hover {
|
116 |
+
background-color: #d32f2f;
|
117 |
+
border-color: #d32f2f;
|
118 |
+
}
|
119 |
+
|
120 |
+
/* Estilos para los selectores */
|
121 |
+
.form-select {
|
122 |
+
padding: 0.5rem;
|
123 |
+
border-radius: 5px;
|
124 |
+
border: 1px solid #ddd;
|
125 |
+
background-color: #fff;
|
126 |
+
}
|
127 |
+
|
128 |
+
/* Estilos para la configuraci贸n */
|
129 |
+
.form-label {
|
130 |
+
font-weight: bold;
|
131 |
+
color: #333;
|
132 |
+
}
|
133 |
+
|
134 |
+
.form-control {
|
135 |
+
border-radius: 5px;
|
136 |
+
border: 1px solid #ddd;
|
137 |
+
padding: 0.5rem;
|
138 |
+
}
|
139 |
+
|
140 |
+
/* Estilos para el estado */
|
141 |
+
#statusLabel {
|
142 |
+
font-size: 0.9rem;
|
143 |
+
color: #666;
|
144 |
+
margin-bottom: 1rem;
|
145 |
+
text-align: center;
|
146 |
+
}
|
147 |
+
|
148 |
+
/* Animaciones */
|
149 |
+
@keyframes pulse {
|
150 |
+
0% {
|
151 |
+
transform: scale(1);
|
152 |
+
}
|
153 |
+
50% {
|
154 |
+
transform: scale(1.05);
|
155 |
+
}
|
156 |
+
100% {
|
157 |
+
transform: scale(1);
|
158 |
+
}
|
159 |
+
}
|
160 |
+
|
161 |
+
.recording {
|
162 |
+
animation: pulse 1.5s infinite;
|
163 |
+
}
|
164 |
+
|
165 |
+
/* Responsive */
|
166 |
+
@media (max-width: 768px) {
|
167 |
+
.container {
|
168 |
+
padding: 0.5rem;
|
169 |
+
}
|
170 |
+
|
171 |
+
.message {
|
172 |
+
max-width: 90%;
|
173 |
+
}
|
174 |
+
|
175 |
+
.chat-box {
|
176 |
+
height: 300px;
|
177 |
+
}
|
178 |
+
}
|
styles.css
ADDED
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
.chat-container {
|
2 |
+
max-width: 800px;
|
3 |
+
margin: 20px auto;
|
4 |
+
padding: 20px;
|
5 |
+
border: 1px solid #ccc;
|
6 |
+
border-radius: 5px;
|
7 |
+
}
|
8 |
+
|
9 |
+
.chat-messages {
|
10 |
+
height: 400px;
|
11 |
+
overflow-y: auto;
|
12 |
+
padding: 10px;
|
13 |
+
margin-bottom: 20px;
|
14 |
+
border: 1px solid #eee;
|
15 |
+
}
|
16 |
+
|
17 |
+
.message {
|
18 |
+
margin: 10px 0;
|
19 |
+
padding: 10px;
|
20 |
+
border-radius: 5px;
|
21 |
+
}
|
22 |
+
|
23 |
+
.user-message {
|
24 |
+
background-color: #e3f2fd;
|
25 |
+
margin-left: 20%;
|
26 |
+
}
|
27 |
+
|
28 |
+
.bot-message {
|
29 |
+
background-color: #f5f5f5;
|
30 |
+
margin-right: 20%;
|
31 |
+
}
|
32 |
+
|
33 |
+
.chat-input {
|
34 |
+
display: flex;
|
35 |
+
gap: 10px;
|
36 |
+
}
|
37 |
+
|
38 |
+
#user-input {
|
39 |
+
flex: 1;
|
40 |
+
padding: 10px;
|
41 |
+
border: 1px solid #ccc;
|
42 |
+
border-radius: 5px;
|
43 |
+
}
|
44 |
+
|
45 |
+
#send-button {
|
46 |
+
padding: 10px 20px;
|
47 |
+
background-color: #2196f3;
|
48 |
+
color: white;
|
49 |
+
border: none;
|
50 |
+
border-radius: 5px;
|
51 |
+
cursor: pointer;
|
52 |
+
}
|
53 |
+
|
54 |
+
#send-button:hover {
|
55 |
+
background-color: #1976d2;
|
56 |
+
}
|