Spaces:
Running
Running
Update html_template.html
Browse files- html_template.html +57 -9
html_template.html
CHANGED
@@ -10,118 +10,143 @@
|
|
10 |
padding: 0;
|
11 |
transition: background 0.3s, color 0.3s;
|
12 |
}
|
|
|
13 |
/* Dark Mode (Default) */
|
14 |
body.dark-mode {
|
15 |
background: linear-gradient(to bottom right, #1A252F, #2C3E50);
|
16 |
color: #E0E6ED;
|
17 |
}
|
|
|
18 |
body.dark-mode .input-section,
|
19 |
body.dark-mode .markdown-section,
|
20 |
body.dark-mode .preview-section {
|
21 |
-
background: #
|
22 |
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
|
23 |
}
|
|
|
24 |
body.dark-mode input[type="text"],
|
25 |
body.dark-mode input[type="file"] {
|
26 |
background: #3A5063;
|
27 |
color: #FFFFFF;
|
28 |
border: 1px solid #4A6FA5;
|
29 |
}
|
|
|
30 |
body.dark-mode input[type="text"]:focus,
|
31 |
body.dark-mode input[type="file"]:focus {
|
32 |
border-color: #A66F3A;
|
33 |
}
|
|
|
34 |
body.dark-mode button {
|
35 |
background: linear-gradient(to right, #3498DB, #2C7DB2);
|
36 |
box-shadow: inset 0 0 5px rgba(52, 152, 219, 0.3);
|
37 |
}
|
|
|
38 |
body.dark-mode button:hover {
|
39 |
background: linear-gradient(to right, #2C7DB2, #3498DB);
|
40 |
box-shadow: inset 0 0 8px rgba(52, 152, 219, 0.5);
|
41 |
}
|
|
|
42 |
body.dark-mode #downloadBtn {
|
43 |
background: linear-gradient(to right, #8B5A2B, #7F4D1A);
|
44 |
box-shadow: inset 0 0 5px rgba(139, 90, 43, 0.3);
|
45 |
}
|
|
|
46 |
body.dark-mode #downloadBtn:hover {
|
47 |
background: linear-gradient(to right, #7F4D1A, #8B5A2B);
|
48 |
box-shadow: inset 0 0 8px rgba(139, 90, 43, 0.5);
|
49 |
}
|
|
|
50 |
body.dark-mode textarea {
|
51 |
background: #3A5063;
|
52 |
color: #FFFFFF;
|
53 |
border: 1px solid #4A6FA5;
|
54 |
}
|
|
|
55 |
body.dark-mode #output {
|
56 |
background: #3A5063;
|
57 |
}
|
|
|
58 |
body.dark-mode #output h1, body.dark-mode #output h2, body.dark-mode #output h3 {
|
59 |
color: #FFFFFF;
|
60 |
font-weight: 500;
|
61 |
letter-spacing: 0.5px;
|
62 |
}
|
|
|
63 |
body.dark-mode #output code,
|
64 |
body.dark-mode #output pre {
|
65 |
background: #2C3E50;
|
66 |
}
|
|
|
67 |
body.dark-mode .spinner {
|
68 |
border: 4px solid #2F4054;
|
69 |
border-top: 4px solid #E0E6ED;
|
70 |
}
|
71 |
-
|
72 |
/* Light Mode */
|
73 |
body.light-mode {
|
74 |
background: linear-gradient(to bottom right, #f0f4f8, #d9e2ec);
|
75 |
color: #333;
|
76 |
}
|
|
|
77 |
body.light-mode .input-section,
|
78 |
body.light-mode .markdown-section,
|
79 |
body.light-mode .preview-section {
|
80 |
background: white;
|
81 |
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
82 |
}
|
|
|
83 |
body.light-mode input[type="text"],
|
84 |
body.light-mode input[type="file"] {
|
85 |
background: white;
|
86 |
color: #333;
|
87 |
border: 1px solid #ccc;
|
88 |
}
|
|
|
89 |
body.light-mode input[type="text"]:focus,
|
90 |
body.light-mode input[type="file"]:focus {
|
91 |
border-color: #4CAF50;
|
92 |
}
|
|
|
93 |
body.light-mode button {
|
94 |
background: linear-gradient(to right, #4CAF50, #45a049);
|
95 |
}
|
|
|
96 |
body.light-mode button:hover {
|
97 |
background: linear-gradient(to right, #45a049, #4CAF50);
|
98 |
}
|
|
|
99 |
body.light-mode #downloadBtn {
|
100 |
background: linear-gradient(to right, #3498db, #2980b9);
|
101 |
}
|
|
|
102 |
body.light-mode #downloadBtn:hover {
|
103 |
background: linear-gradient(to right, #2980b9, #3498db);
|
104 |
}
|
|
|
105 |
body.light-mode textarea {
|
106 |
background: white;
|
107 |
color: #333;
|
108 |
border: 1px solid #ccc;
|
109 |
}
|
|
|
110 |
body.light-mode #output {
|
111 |
background: white;
|
112 |
}
|
|
|
113 |
body.light-mode #output h1, body.light-mode #output h2, body.light-mode #output h3 {
|
114 |
color: #333;
|
115 |
}
|
|
|
116 |
body.light-mode #output code,
|
117 |
body.light-mode #output pre {
|
118 |
background: #f4f4f4;
|
119 |
}
|
|
|
120 |
body.light-mode .spinner {
|
121 |
border: 4px solid #f3f3f3;
|
122 |
border-top: 4px solid #3498db;
|
123 |
}
|
124 |
-
|
125 |
/* Common Styles */
|
126 |
.container {
|
127 |
max-width: 1200px;
|
@@ -129,20 +154,23 @@
|
|
129 |
padding: 20px;
|
130 |
position: relative;
|
131 |
}
|
|
|
132 |
.input-section, .markdown-section, .preview-section {
|
133 |
border-radius: 10px;
|
134 |
padding: 20px;
|
135 |
margin-bottom: 20px;
|
136 |
transition: background 0.3s, box-shadow 0.3s;
|
137 |
}
|
|
|
138 |
input[type="text"], input[type="file"] {
|
139 |
-
width:
|
140 |
padding: 10px;
|
141 |
-
margin: 10px;
|
142 |
border-radius: 5px;
|
143 |
box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
|
144 |
transition: border-color 0.3s;
|
145 |
}
|
|
|
146 |
button {
|
147 |
padding: 10px 20px;
|
148 |
color: white;
|
@@ -152,10 +180,12 @@
|
|
152 |
margin: 5px;
|
153 |
transition: background 0.3s, transform 0.1s, box-shadow 0.3s;
|
154 |
}
|
|
|
155 |
button:active {
|
156 |
transform: scale(0.97) translateY(2px);
|
157 |
box-shadow: none;
|
158 |
}
|
|
|
159 |
.spinner {
|
160 |
display: none;
|
161 |
border-radius: 50%;
|
@@ -164,22 +194,26 @@
|
|
164 |
animation: spin 1s linear infinite;
|
165 |
margin: 20px auto;
|
166 |
}
|
|
|
167 |
@keyframes spin {
|
168 |
0% { transform: rotate(0deg); }
|
169 |
100% { transform: rotate(360deg); }
|
170 |
}
|
|
|
171 |
.output-container {
|
172 |
display: flex;
|
173 |
flex-wrap: wrap;
|
174 |
gap: 20px;
|
175 |
}
|
|
|
176 |
.markdown-section, .preview-section {
|
177 |
flex: 1;
|
178 |
min-width: 300px;
|
179 |
}
|
|
|
180 |
textarea {
|
181 |
-
width:
|
182 |
-
height: 400px;
|
183 |
margin-top: 10px;
|
184 |
padding: 10px;
|
185 |
border-radius: 5px;
|
@@ -188,6 +222,7 @@
|
|
188 |
resize: vertical;
|
189 |
transition: background 0.3s, color 0.3s, border 0.3s;
|
190 |
}
|
|
|
191 |
#output {
|
192 |
margin-top: 10px;
|
193 |
padding: 10px;
|
@@ -197,23 +232,27 @@
|
|
197 |
border: 1px solid #4A6FA5;
|
198 |
transition: background 0.3s, border 0.3s;
|
199 |
}
|
|
|
200 |
#output code {
|
201 |
padding: 2px 4px;
|
202 |
border-radius: 3px;
|
203 |
}
|
|
|
204 |
#output pre {
|
205 |
padding: 10px;
|
206 |
border-radius: 5px;
|
207 |
overflow-x: auto;
|
208 |
}
|
|
|
209 |
.fade-in {
|
210 |
animation: fadeIn 0.5s ease-in;
|
211 |
}
|
|
|
212 |
@keyframes fadeIn {
|
213 |
from { opacity: 0; transform: scale(0.98); }
|
214 |
to { opacity: 1; transform: scale(1.02); }
|
215 |
}
|
216 |
-
|
217 |
/* Toggle Switch */
|
218 |
.mode-toggle {
|
219 |
position: absolute;
|
@@ -222,22 +261,26 @@
|
|
222 |
display: flex;
|
223 |
align-items: center;
|
224 |
}
|
|
|
225 |
.mode-toggle label {
|
226 |
margin-left: 10px;
|
227 |
font-size: 14px;
|
228 |
color: #E0E6ED;
|
229 |
}
|
|
|
230 |
.switch {
|
231 |
position: relative;
|
232 |
display: inline-block;
|
233 |
width: 50px;
|
234 |
height: 24px;
|
235 |
}
|
|
|
236 |
.switch input {
|
237 |
opacity: 0;
|
238 |
width: 0;
|
239 |
height: 0;
|
240 |
}
|
|
|
241 |
.slider {
|
242 |
position: absolute;
|
243 |
cursor: pointer;
|
@@ -249,6 +292,7 @@
|
|
249 |
transition: 0.3s;
|
250 |
border-radius: 24px;
|
251 |
}
|
|
|
252 |
.slider:before {
|
253 |
position: absolute;
|
254 |
content: "";
|
@@ -260,13 +304,15 @@
|
|
260 |
transition: 0.3s;
|
261 |
border-radius: 50%;
|
262 |
}
|
|
|
263 |
input:checked + .slider {
|
264 |
background: #4CAF50;
|
265 |
}
|
|
|
266 |
input:checked + .slider:before {
|
267 |
transform: translateX(26px);
|
268 |
}
|
269 |
-
|
270 |
/* Copy Button */
|
271 |
.copy-button {
|
272 |
padding: 8px 16px;
|
@@ -278,9 +324,11 @@
|
|
278 |
margin-left: 10px;
|
279 |
transition: background 0.3s, transform 0.1s;
|
280 |
}
|
|
|
281 |
.copy-button:hover {
|
282 |
background: #2C7DB2;
|
283 |
}
|
|
|
284 |
.copy-button:active {
|
285 |
transform: scale(0.97) translateY(2px);
|
286 |
}
|
|
|
10 |
padding: 0;
|
11 |
transition: background 0.3s, color 0.3s;
|
12 |
}
|
13 |
+
|
14 |
/* Dark Mode (Default) */
|
15 |
body.dark-mode {
|
16 |
background: linear-gradient(to bottom right, #1A252F, #2C3E50);
|
17 |
color: #E0E6ED;
|
18 |
}
|
19 |
+
|
20 |
body.dark-mode .input-section,
|
21 |
body.dark-mode .markdown-section,
|
22 |
body.dark-mode .preview-section {
|
23 |
+
background: #2F4054;
|
24 |
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
|
25 |
}
|
26 |
+
|
27 |
body.dark-mode input[type="text"],
|
28 |
body.dark-mode input[type="file"] {
|
29 |
background: #3A5063;
|
30 |
color: #FFFFFF;
|
31 |
border: 1px solid #4A6FA5;
|
32 |
}
|
33 |
+
|
34 |
body.dark-mode input[type="text"]:focus,
|
35 |
body.dark-mode input[type="file"]:focus {
|
36 |
border-color: #A66F3A;
|
37 |
}
|
38 |
+
|
39 |
body.dark-mode button {
|
40 |
background: linear-gradient(to right, #3498DB, #2C7DB2);
|
41 |
box-shadow: inset 0 0 5px rgba(52, 152, 219, 0.3);
|
42 |
}
|
43 |
+
|
44 |
body.dark-mode button:hover {
|
45 |
background: linear-gradient(to right, #2C7DB2, #3498DB);
|
46 |
box-shadow: inset 0 0 8px rgba(52, 152, 219, 0.5);
|
47 |
}
|
48 |
+
|
49 |
body.dark-mode #downloadBtn {
|
50 |
background: linear-gradient(to right, #8B5A2B, #7F4D1A);
|
51 |
box-shadow: inset 0 0 5px rgba(139, 90, 43, 0.3);
|
52 |
}
|
53 |
+
|
54 |
body.dark-mode #downloadBtn:hover {
|
55 |
background: linear-gradient(to right, #7F4D1A, #8B5A2B);
|
56 |
box-shadow: inset 0 0 8px rgba(139, 90, 43, 0.5);
|
57 |
}
|
58 |
+
|
59 |
body.dark-mode textarea {
|
60 |
background: #3A5063;
|
61 |
color: #FFFFFF;
|
62 |
border: 1px solid #4A6FA5;
|
63 |
}
|
64 |
+
|
65 |
body.dark-mode #output {
|
66 |
background: #3A5063;
|
67 |
}
|
68 |
+
|
69 |
body.dark-mode #output h1, body.dark-mode #output h2, body.dark-mode #output h3 {
|
70 |
color: #FFFFFF;
|
71 |
font-weight: 500;
|
72 |
letter-spacing: 0.5px;
|
73 |
}
|
74 |
+
|
75 |
body.dark-mode #output code,
|
76 |
body.dark-mode #output pre {
|
77 |
background: #2C3E50;
|
78 |
}
|
79 |
+
|
80 |
body.dark-mode .spinner {
|
81 |
border: 4px solid #2F4054;
|
82 |
border-top: 4px solid #E0E6ED;
|
83 |
}
|
84 |
+
|
85 |
/* Light Mode */
|
86 |
body.light-mode {
|
87 |
background: linear-gradient(to bottom right, #f0f4f8, #d9e2ec);
|
88 |
color: #333;
|
89 |
}
|
90 |
+
|
91 |
body.light-mode .input-section,
|
92 |
body.light-mode .markdown-section,
|
93 |
body.light-mode .preview-section {
|
94 |
background: white;
|
95 |
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
96 |
}
|
97 |
+
|
98 |
body.light-mode input[type="text"],
|
99 |
body.light-mode input[type="file"] {
|
100 |
background: white;
|
101 |
color: #333;
|
102 |
border: 1px solid #ccc;
|
103 |
}
|
104 |
+
|
105 |
body.light-mode input[type="text"]:focus,
|
106 |
body.light-mode input[type="file"]:focus {
|
107 |
border-color: #4CAF50;
|
108 |
}
|
109 |
+
|
110 |
body.light-mode button {
|
111 |
background: linear-gradient(to right, #4CAF50, #45a049);
|
112 |
}
|
113 |
+
|
114 |
body.light-mode button:hover {
|
115 |
background: linear-gradient(to right, #45a049, #4CAF50);
|
116 |
}
|
117 |
+
|
118 |
body.light-mode #downloadBtn {
|
119 |
background: linear-gradient(to right, #3498db, #2980b9);
|
120 |
}
|
121 |
+
|
122 |
body.light-mode #downloadBtn:hover {
|
123 |
background: linear-gradient(to right, #2980b9, #3498db);
|
124 |
}
|
125 |
+
|
126 |
body.light-mode textarea {
|
127 |
background: white;
|
128 |
color: #333;
|
129 |
border: 1px solid #ccc;
|
130 |
}
|
131 |
+
|
132 |
body.light-mode #output {
|
133 |
background: white;
|
134 |
}
|
135 |
+
|
136 |
body.light-mode #output h1, body.light-mode #output h2, body.light-mode #output h3 {
|
137 |
color: #333;
|
138 |
}
|
139 |
+
|
140 |
body.light-mode #output code,
|
141 |
body.light-mode #output pre {
|
142 |
background: #f4f4f4;
|
143 |
}
|
144 |
+
|
145 |
body.light-mode .spinner {
|
146 |
border: 4px solid #f3f3f3;
|
147 |
border-top: 4px solid #3498db;
|
148 |
}
|
149 |
+
|
150 |
/* Common Styles */
|
151 |
.container {
|
152 |
max-width: 1200px;
|
|
|
154 |
padding: 20px;
|
155 |
position: relative;
|
156 |
}
|
157 |
+
|
158 |
.input-section, .markdown-section, .preview-section {
|
159 |
border-radius: 10px;
|
160 |
padding: 20px;
|
161 |
margin-bottom: 20px;
|
162 |
transition: background 0.3s, box-shadow 0.3s;
|
163 |
}
|
164 |
+
|
165 |
input[type="text"], input[type="file"] {
|
166 |
+
width: 100%;
|
167 |
padding: 10px;
|
168 |
+
margin: 10px 0;
|
169 |
border-radius: 5px;
|
170 |
box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
|
171 |
transition: border-color 0.3s;
|
172 |
}
|
173 |
+
|
174 |
button {
|
175 |
padding: 10px 20px;
|
176 |
color: white;
|
|
|
180 |
margin: 5px;
|
181 |
transition: background 0.3s, transform 0.1s, box-shadow 0.3s;
|
182 |
}
|
183 |
+
|
184 |
button:active {
|
185 |
transform: scale(0.97) translateY(2px);
|
186 |
box-shadow: none;
|
187 |
}
|
188 |
+
|
189 |
.spinner {
|
190 |
display: none;
|
191 |
border-radius: 50%;
|
|
|
194 |
animation: spin 1s linear infinite;
|
195 |
margin: 20px auto;
|
196 |
}
|
197 |
+
|
198 |
@keyframes spin {
|
199 |
0% { transform: rotate(0deg); }
|
200 |
100% { transform: rotate(360deg); }
|
201 |
}
|
202 |
+
|
203 |
.output-container {
|
204 |
display: flex;
|
205 |
flex-wrap: wrap;
|
206 |
gap: 20px;
|
207 |
}
|
208 |
+
|
209 |
.markdown-section, .preview-section {
|
210 |
flex: 1;
|
211 |
min-width: 300px;
|
212 |
}
|
213 |
+
|
214 |
textarea {
|
215 |
+
width: 100%;
|
216 |
+
height: 400px; /* This will be dynamically adjusted by JavaScript */
|
217 |
margin-top: 10px;
|
218 |
padding: 10px;
|
219 |
border-radius: 5px;
|
|
|
222 |
resize: vertical;
|
223 |
transition: background 0.3s, color 0.3s, border 0.3s;
|
224 |
}
|
225 |
+
|
226 |
#output {
|
227 |
margin-top: 10px;
|
228 |
padding: 10px;
|
|
|
232 |
border: 1px solid #4A6FA5;
|
233 |
transition: background 0.3s, border 0.3s;
|
234 |
}
|
235 |
+
|
236 |
#output code {
|
237 |
padding: 2px 4px;
|
238 |
border-radius: 3px;
|
239 |
}
|
240 |
+
|
241 |
#output pre {
|
242 |
padding: 10px;
|
243 |
border-radius: 5px;
|
244 |
overflow-x: auto;
|
245 |
}
|
246 |
+
|
247 |
.fade-in {
|
248 |
animation: fadeIn 0.5s ease-in;
|
249 |
}
|
250 |
+
|
251 |
@keyframes fadeIn {
|
252 |
from { opacity: 0; transform: scale(0.98); }
|
253 |
to { opacity: 1; transform: scale(1.02); }
|
254 |
}
|
255 |
+
|
256 |
/* Toggle Switch */
|
257 |
.mode-toggle {
|
258 |
position: absolute;
|
|
|
261 |
display: flex;
|
262 |
align-items: center;
|
263 |
}
|
264 |
+
|
265 |
.mode-toggle label {
|
266 |
margin-left: 10px;
|
267 |
font-size: 14px;
|
268 |
color: #E0E6ED;
|
269 |
}
|
270 |
+
|
271 |
.switch {
|
272 |
position: relative;
|
273 |
display: inline-block;
|
274 |
width: 50px;
|
275 |
height: 24px;
|
276 |
}
|
277 |
+
|
278 |
.switch input {
|
279 |
opacity: 0;
|
280 |
width: 0;
|
281 |
height: 0;
|
282 |
}
|
283 |
+
|
284 |
.slider {
|
285 |
position: absolute;
|
286 |
cursor: pointer;
|
|
|
292 |
transition: 0.3s;
|
293 |
border-radius: 24px;
|
294 |
}
|
295 |
+
|
296 |
.slider:before {
|
297 |
position: absolute;
|
298 |
content: "";
|
|
|
304 |
transition: 0.3s;
|
305 |
border-radius: 50%;
|
306 |
}
|
307 |
+
|
308 |
input:checked + .slider {
|
309 |
background: #4CAF50;
|
310 |
}
|
311 |
+
|
312 |
input:checked + .slider:before {
|
313 |
transform: translateX(26px);
|
314 |
}
|
315 |
+
|
316 |
/* Copy Button */
|
317 |
.copy-button {
|
318 |
padding: 8px 16px;
|
|
|
324 |
margin-left: 10px;
|
325 |
transition: background 0.3s, transform 0.1s;
|
326 |
}
|
327 |
+
|
328 |
.copy-button:hover {
|
329 |
background: #2C7DB2;
|
330 |
}
|
331 |
+
|
332 |
.copy-button:active {
|
333 |
transform: scale(0.97) translateY(2px);
|
334 |
}
|