-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathviagem.html
More file actions
549 lines (492 loc) · 34.6 KB
/
Copy pathviagem.html
File metadata and controls
549 lines (492 loc) · 34.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
<!DOCTYPE html>
<html lang="pt-BR">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Checklist Plantão PMTO</title>
<!-- Tailwind CSS -->
<script src="https://cdn.tailwindcss.com"></script>
<!-- React & ReactDOM -->
<script crossorigin src="https://unpkg.com/react@18/umd/react.production.min.js"></script>
<script crossorigin src="https://unpkg.com/react-dom@18/umd/react-dom.production.min.js"></script>
<!-- Babel for JSX -->
<script src="https://unpkg.com/@babel/standalone/babel.min.js"></script>
<!-- Lucide Icons -->
<script src="https://unpkg.com/lucide@latest"></script>
<style>
body { font-family: 'Inter', sans-serif; -webkit-tap-highlight-color: transparent; }
.slide-enter { opacity: 0; transform: translateY(10px); }
.slide-enter-active { opacity: 1; transform: translateY(0); transition: opacity 300ms, transform 300ms; }
</style>
</head>
<body class="bg-slate-900 text-slate-100">
<div id="root"></div>
<script type="text/babel">
const { useState, useEffect, useMemo } = React;
// --- Configurações Iniciais ---
const CATEGORIES = {
UNIFORME: 'Uniforme e Vestuário',
EQUIPAMENTO: 'Equipamentos e Tático',
ELETRONICOS: 'Eletrônicos',
PESSOAL: 'Higiene e Pessoal'
};
const INITIAL_ITEMS = [
{ id: 'camisetas', name: 'Camisetas PMTO', category: 'Uniforme e Vestuário', isDynamic: true, quantity: 1, icon: 'Shirt' },
{ id: 'meias', name: 'Pares de Meia (Coturno)', category: 'Uniforme e Vestuário', isDynamic: true, quantity: 1, icon: 'Footprints' },
{ id: 'shorts', name: 'Shorts Térmicos', category: 'Uniforme e Vestuário', isDynamic: true, quantity: 1, icon: 'Layers' },
{ id: 'farda', name: 'Farda Extra (Combat + Calça)', category: 'Uniforme e Vestuário', isDynamic: false, quantity: 1, icon: 'Shield' },
{ id: 'tenis', name: 'Tênis (Pé)', category: 'Uniforme e Vestuário', isDynamic: false, quantity: 1, icon: 'Activity' },
{ id: 'bornal', name: 'Bornal Dia a Dia', subtext: 'Kit costura, munição reserva, etc.', category: 'Equipamentos e Tático', isDynamic: false, quantity: 1, icon: 'Package' },
{ id: 'drone', name: 'Bolsa Drone (Mini 4 Pro)', category: 'Equipamentos e Tático', isDynamic: false, quantity: 1, icon: 'Plane' },
{ id: 'cabo_solteiro', name: 'Cabo Solteiro', category: 'Equipamentos e Tático', isDynamic: false, quantity: 1, icon: 'Anchor' },
{ id: 'guarda_chuva', name: 'Guarda-chuva', category: 'Equipamentos e Tático', isDynamic: false, quantity: 1, icon: 'Umbrella' },
{ id: 'kit_coturno', name: 'Kit Coturno', subtext: 'Graxa, meia p/ lustrar, esponja', category: 'Equipamentos e Tático', isDynamic: false, quantity: 1, icon: 'Sparkles' },
{ id: 'eletronicos_bornal', name: 'Power Bank & Fontes', subtext: 'No bornal', category: 'Eletrônicos', isDynamic: false, quantity: 1, icon: 'BatteryCharging' },
{ id: 'extensao', name: 'Mini Extensão Elétrica', category: 'Eletrônicos', isDynamic: false, quantity: 1, icon: 'Zap' },
{ id: 'fone', name: 'Fone Bluetooth', category: 'Eletrônicos', isDynamic: false, quantity: 1, icon: 'Headphones' },
{ id: 'higiene', name: 'Bolsa Kit Higiene', category: 'Higiene e Pessoal', isDynamic: false, quantity: 1, icon: 'BriefcaseMedical' },
{ id: 'desodorante', name: 'Desodorante Spray', category: 'Higiene e Pessoal', isDynamic: false, quantity: 1, icon: 'SprayCan' },
];
// Componente de Ícone Seguro (Corrigido)
const Icon = ({ name, size = 20, className = "" }) => {
const [svgContent, setSvgContent] = useState('');
useEffect(() => {
if (!window.lucide) return;
const iconName = name;
const iconNode = window.lucide.icons[iconName];
if (iconNode) {
try {
// FIX: Usa lucide.createElement para versões mais novas onde .toSvg não existe
if (typeof window.lucide.createElement === 'function') {
const element = window.lucide.createElement(iconNode, {
width: size,
height: size,
class: className
});
setSvgContent(element.outerHTML);
}
// Fallback legado
else if (typeof iconNode.toSvg === 'function') {
setSvgContent(iconNode.toSvg({ width: size, height: size, class: className }));
}
} catch (e) {
console.warn(`Erro ao renderizar ícone ${name}:`, e);
// Fallback de emergência
setSvgContent(`<svg width="${size}" height="${size}" class="${className}" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="12" cy="12" r="10"></circle></svg>`);
}
} else {
// Ícone não encontrado, usa fallback padrão (Circle)
try {
const fallbackNode = window.lucide.icons['Circle'];
if (fallbackNode && typeof window.lucide.createElement === 'function') {
const element = window.lucide.createElement(fallbackNode, { width: size, height: size, class: className });
setSvgContent(element.outerHTML);
} else {
setSvgContent(`<svg width="${size}" height="${size}" class="${className}" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="12" cy="12" r="10"></circle></svg>`);
}
} catch(e) {
setSvgContent("");
}
}
}, [name, size, className]);
return <span dangerouslySetInnerHTML={{ __html: svgContent }} className="flex items-center justify-center" />;
};
const App = () => {
// Estados
const [items, setItems] = useState(() => {
const saved = localStorage.getItem('pmto_checklist_items');
return saved ? JSON.parse(saved) : INITIAL_ITEMS;
});
const [days, setDays] = useState(2);
const [checkedItems, setCheckedItems] = useState({});
const [darkMode, setDarkMode] = useState(true);
const [view, setView] = useState('checklist'); // 'checklist' or 'edit'
// Estado para Formulário de Edição
const [editingItem, setEditingItem] = useState(null);
const [isFormOpen, setIsFormOpen] = useState(false);
// Persistência
useEffect(() => {
localStorage.setItem('pmto_checklist_items', JSON.stringify(items));
}, [items]);
// Lógica de Quantidade
const getQuantity = (item) => {
return item.isDynamic ? days + 1 : item.quantity;
};
const toggleCheck = (id) => {
setCheckedItems(prev => ({ ...prev, [id]: !prev[id] }));
};
const resetList = () => {
if (window.confirm('Deseja desmarcar todos os itens?')) {
setCheckedItems({});
}
};
const resetToDefault = () => {
if (window.confirm('Isso apagará todas as suas personalizações e restaurará a lista original. Tem certeza?')) {
setItems(INITIAL_ITEMS);
setCheckedItems({});
}
}
// CRUD Operations
const handleDelete = (id) => {
if (window.confirm('Excluir este item?')) {
setItems(prev => prev.filter(i => i.id !== id));
}
};
const handleSaveItem = (e) => {
e.preventDefault();
const formData = new FormData(e.target);
const newItem = {
id: editingItem ? editingItem.id : Date.now().toString(),
name: formData.get('name'),
subtext: formData.get('subtext'),
category: formData.get('category'),
isDynamic: formData.get('isDynamic') === 'on',
quantity: parseInt(formData.get('quantity')) || 1,
icon: formData.get('icon') || 'Circle'
};
if (editingItem) {
setItems(prev => prev.map(i => i.id === editingItem.id ? newItem : i));
} else {
setItems(prev => [...prev, newItem]);
}
setIsFormOpen(false);
setEditingItem(null);
};
const startEdit = (item) => {
setEditingItem(item);
setIsFormOpen(true);
};
const startNew = () => {
setEditingItem(null);
setIsFormOpen(true);
};
// Cálculos
const progress = Math.round((Object.keys(checkedItems).filter(k => checkedItems[k]).length / items.length) * 100) || 0;
const groupedItems = useMemo(() => {
return items.reduce((acc, item) => {
if (!acc[item.category]) acc[item.category] = [];
acc[item.category].push(item);
return acc;
}, {});
}, [items]);
// Render
return (
<div className={`min-h-screen transition-colors duration-300 ${darkMode ? 'bg-slate-900 text-slate-100' : 'bg-gray-100 text-gray-800'} font-sans pb-24`}>
{/* Header Fixed */}
<div className={`fixed top-0 left-0 right-0 z-20 ${darkMode ? 'bg-slate-800/95 border-slate-700' : 'bg-white/95 border-gray-200'} backdrop-blur-md border-b shadow-md px-4 py-3`}>
<div className="flex justify-between items-center mb-4">
<div>
<h1 className="text-xl font-bold tracking-tight flex items-center gap-2">
<Icon name="Shield" className="text-blue-500" />
QAP Plantão
</h1>
<p className={`text-xs ${darkMode ? 'text-slate-400' : 'text-gray-500'}`}>Checklist Tático & Gestão</p>
</div>
<div className="flex gap-2">
<button
onClick={() => setView(view === 'checklist' ? 'edit' : 'checklist')}
className={`p-2 rounded-full text-xs font-bold px-3 transition-colors ${view === 'edit' ? 'bg-blue-600 text-white' : (darkMode ? 'bg-slate-700 text-slate-300' : 'bg-gray-200 text-gray-600')}`}
>
{view === 'checklist' ? 'EDITAR ITENS' : 'CHECKLIST'}
</button>
<button
onClick={() => setDarkMode(!darkMode)}
className={`p-2 rounded-full ${darkMode ? 'bg-slate-700 hover:bg-slate-600' : 'bg-gray-200 hover:bg-gray-300'}`}
>
<Icon name={darkMode ? 'Sun' : 'Moon'} size={18} />
</button>
</div>
</div>
{/* Controls only visible in Checklist View */}
{view === 'checklist' && (
<>
<div className="flex items-center justify-between gap-2 bg-transparent">
<span className={`text-sm font-semibold whitespace-nowrap ${darkMode ? 'text-slate-300' : 'text-gray-600'}`}>Duração:</span>
<div className={`flex flex-1 p-1 rounded-lg ${darkMode ? 'bg-slate-900' : 'bg-gray-200'} justify-between`}>
{[1, 2, 3, 4, 5].map(d => (
<button
key={d}
onClick={() => setDays(d)}
className={`flex-1 py-1.5 text-sm font-bold rounded-md transition-all duration-200
${days === d
? (darkMode ? 'bg-blue-600 text-white shadow-lg' : 'bg-blue-600 text-white shadow')
: (darkMode ? 'text-slate-500 hover:text-slate-300' : 'text-gray-500 hover:text-gray-700')}`}
>
{d}d
</button>
))}
</div>
</div>
<div className="mt-4">
<div className="flex justify-between text-xs mb-1 font-medium">
<span>Progresso</span>
<span>{progress}%</span>
</div>
<div className={`w-full h-2 rounded-full ${darkMode ? 'bg-slate-700' : 'bg-gray-300'}`}>
<div
className="h-2 rounded-full bg-green-500 transition-all duration-500 ease-out"
style={{ width: `${progress}%` }}
></div>
</div>
</div>
</>
)}
</div>
{/* Main Content */}
<div className="pt-48 px-4 max-w-2xl mx-auto">
{/* VIEW: CHECKLIST */}
{view === 'checklist' && (
<>
{Object.entries(groupedItems).map(([category, catItems]) => (
<div key={category} className="mb-6 slide-enter-active">
<h3 className={`text-xs font-bold uppercase tracking-wider mb-2 ml-1 ${darkMode ? 'text-blue-400' : 'text-blue-600'}`}>
{category}
</h3>
<div className={`rounded-xl overflow-hidden ${darkMode ? 'bg-slate-800' : 'bg-white shadow-sm'}`}>
{catItems.map((item, index) => {
const isChecked = !!checkedItems[item.id];
const quantity = getQuantity(item);
return (
<div
key={item.id}
onClick={() => toggleCheck(item.id)}
className={`
flex items-center p-4 cursor-pointer transition-all active:scale-[0.98] select-none
${index !== catItems.length - 1 ? (darkMode ? 'border-b border-slate-700' : 'border-b border-gray-100') : ''}
${isChecked ? (darkMode ? 'bg-slate-800/50' : 'bg-gray-50') : ''}
`}
>
<div className={`
flex-shrink-0 w-6 h-6 rounded-full border-2 flex items-center justify-center mr-4 transition-colors
${isChecked
? 'bg-green-500 border-green-500'
: (darkMode ? 'border-slate-500' : 'border-gray-300')}
`}>
{isChecked && <Icon name="Check" size={14} className="text-white" />}
</div>
<div className={`flex-1 ${isChecked ? 'opacity-40' : 'opacity-100'}`}>
<div className="flex justify-between items-center">
<span className={`font-medium ${isChecked ? 'line-through decoration-2' : ''}`}>
{item.name}
</span>
<span className={`
ml-2 px-2 py-0.5 rounded text-sm font-bold min-w-[30px] text-center
${isChecked
? (darkMode ? 'bg-slate-700 text-slate-500' : 'bg-gray-200 text-gray-400')
: (darkMode ? 'bg-blue-900/40 text-blue-200' : 'bg-blue-100 text-blue-700')}
`}>
{quantity}x
</span>
</div>
{item.subtext && (
<p className={`text-xs mt-0.5 ${darkMode ? 'text-slate-400' : 'text-gray-500'}`}>
{item.subtext}
</p>
)}
</div>
</div>
);
})}
</div>
</div>
))}
<div className="mt-8 mb-12 flex justify-center pb-10">
{progress > 0 && (
<button
onClick={resetList}
className={`flex items-center gap-2 px-6 py-3 rounded-full font-medium transition-colors shadow-lg
${darkMode
? 'bg-slate-800 text-red-400 hover:bg-slate-700 border border-slate-700'
: 'bg-white text-red-600 hover:bg-gray-50'}`}
>
<Icon name="RotateCcw" size={18} />
Reiniciar Checklist
</button>
)}
</div>
</>
)}
{/* VIEW: EDIT MODE */}
{view === 'edit' && (
<div className="slide-enter-active pb-10">
<div className={`p-4 rounded-xl mb-6 ${darkMode ? 'bg-blue-900/20 border border-blue-800' : 'bg-blue-50 border border-blue-200'}`}>
<h3 className="font-bold flex items-center gap-2 mb-2">
<Icon name="Info" size={18} />
Modo Edição
</h3>
<p className="text-sm opacity-80">
Adicione novos itens à sua mochila ou remova o que não usa.
As alterações são salvas automaticamente no seu navegador.
</p>
</div>
<button
onClick={startNew}
className="w-full py-4 rounded-xl bg-blue-600 hover:bg-blue-500 text-white font-bold flex items-center justify-center gap-2 mb-6 shadow-lg active:scale-95 transition-transform"
>
<Icon name="Plus" />
Adicionar Novo Item
</button>
<div className={`rounded-xl overflow-hidden ${darkMode ? 'bg-slate-800' : 'bg-white shadow-sm'}`}>
{items.map((item, index) => (
<div
key={item.id}
className={`
flex items-center justify-between p-4
${index !== items.length - 1 ? (darkMode ? 'border-b border-slate-700' : 'border-b border-gray-100') : ''}
`}
>
<div className="flex-1 mr-4">
<div className="flex items-center gap-2">
<span className={`text-xs px-1.5 py-0.5 rounded ${darkMode ? 'bg-slate-700 text-slate-400' : 'bg-gray-200 text-gray-600'}`}>
{item.category.split(' ')[0]}
</span>
{item.isDynamic && (
<span className="text-xs px-1.5 py-0.5 rounded bg-amber-900/40 text-amber-400 border border-amber-900/50">
Auto (Dias+1)
</span>
)}
</div>
<p className="font-medium mt-1">{item.name}</p>
{item.subtext && <p className="text-xs opacity-60">{item.subtext}</p>}
</div>
<div className="flex items-center gap-2">
<button
onClick={() => startEdit(item)}
className={`p-2 rounded-lg ${darkMode ? 'bg-slate-700 hover:bg-slate-600 text-blue-400' : 'bg-gray-100 hover:bg-gray-200 text-blue-600'}`}
>
<Icon name="Pencil" size={18} />
</button>
<button
onClick={() => handleDelete(item.id)}
className={`p-2 rounded-lg ${darkMode ? 'bg-slate-700 hover:bg-red-900/50 text-red-400' : 'bg-gray-100 hover:bg-red-50 text-red-600'}`}
>
<Icon name="Trash2" size={18} />
</button>
</div>
</div>
))}
</div>
<button onClick={resetToDefault} className="mt-8 text-xs text-center w-full opacity-50 underline">
Restaurar lista original de fábrica
</button>
</div>
)}
</div>
{/* Modal Form */}
{isFormOpen && (
<div className="fixed inset-0 z-50 flex items-end sm:items-center justify-center p-4 bg-black/60 backdrop-blur-sm">
<div className={`w-full max-w-lg rounded-2xl p-6 shadow-2xl ${darkMode ? 'bg-slate-800' : 'bg-white'}`}>
<h2 className="text-xl font-bold mb-4 flex items-center gap-2">
<Icon name={editingItem ? "Pencil" : "Plus"} />
{editingItem ? 'Editar Item' : 'Novo Item'}
</h2>
<form onSubmit={handleSaveItem} className="space-y-4">
<div>
<label className="block text-sm font-medium mb-1 opacity-80">Nome do Item</label>
<input
name="name"
required
defaultValue={editingItem?.name}
className={`w-full p-3 rounded-lg border outline-none focus:ring-2 focus:ring-blue-500 ${darkMode ? 'bg-slate-900 border-slate-700' : 'bg-gray-50 border-gray-300'}`}
placeholder="Ex: Lanterna Tática"
/>
</div>
<div>
<label className="block text-sm font-medium mb-1 opacity-80">Descrição (Opcional)</label>
<input
name="subtext"
defaultValue={editingItem?.subtext}
className={`w-full p-3 rounded-lg border outline-none focus:ring-2 focus:ring-blue-500 ${darkMode ? 'bg-slate-900 border-slate-700' : 'bg-gray-50 border-gray-300'}`}
placeholder="Ex: Pilhas reservas"
/>
</div>
<div className="grid grid-cols-2 gap-4">
<div>
<label className="block text-sm font-medium mb-1 opacity-80">Categoria</label>
<select
name="category"
defaultValue={editingItem?.category || 'Equipamentos e Tático'}
className={`w-full p-3 rounded-lg border outline-none focus:ring-2 focus:ring-blue-500 ${darkMode ? 'bg-slate-900 border-slate-700' : 'bg-gray-50 border-gray-300'}`}
>
{Object.values(CATEGORIES).map(cat => (
<option key={cat} value={cat}>{cat}</option>
))}
</select>
</div>
<div>
<label className="block text-sm font-medium mb-1 opacity-80">Ícone (Nome em Inglês)</label>
<select
name="icon"
defaultValue={editingItem?.icon || 'Circle'}
className={`w-full p-3 rounded-lg border outline-none focus:ring-2 focus:ring-blue-500 ${darkMode ? 'bg-slate-900 border-slate-700' : 'bg-gray-50 border-gray-300'}`}
>
<option value="Shirt">Camisa/Roupa</option>
<option value="Zap">Raio/Energia</option>
<option value="Shield">Escudo/Farda</option>
<option value="BriefcaseMedical">Kit Médico</option>
<option value="Package">Caixa/Bornal</option>
<option value="Umbrella">Guarda-Chuva</option>
<option value="BatteryCharging">Bateria</option>
<option value="Headphones">Fone</option>
<option value="SprayCan">Spray</option>
<option value="Footprints">Pés/Meias</option>
<option value="Layers">Camadas/Shorts</option>
<option value="Activity">Atividade/Tênis</option>
<option value="Plane">Drone/Avião</option>
<option value="Anchor">Cabo Solteiro</option>
<option value="Sparkles">Limpeza</option>
<option value="Circle">Círculo (Padrão)</option>
</select>
</div>
</div>
<div className={`p-4 rounded-lg border ${darkMode ? 'bg-slate-900 border-slate-700' : 'bg-gray-50 border-gray-200'}`}>
<div className="flex items-center justify-between mb-2">
<label className="font-medium">Quantidade Automática?</label>
<input
type="checkbox"
name="isDynamic"
defaultChecked={editingItem?.isDynamic}
className="w-5 h-5 rounded accent-blue-600"
/>
</div>
<p className="text-xs opacity-70 mb-3">
Se marcado, a quantidade será igual aos <strong>Dias de Plantão + 1</strong>.
</p>
<div className="flex items-center gap-3">
<span className="text-sm opacity-80">Quantidade Fixa (se não for auto):</span>
<input
type="number"
name="quantity"
min="1"
defaultValue={editingItem?.quantity || 1}
className={`w-20 p-2 rounded border text-center ${darkMode ? 'bg-slate-800 border-slate-600' : 'bg-white border-gray-300'}`}
/>
</div>
</div>
<div className="flex gap-3 pt-2">
<button
type="button"
onClick={() => setIsFormOpen(false)}
className={`flex-1 py-3 rounded-lg font-medium ${darkMode ? 'bg-slate-700 hover:bg-slate-600' : 'bg-gray-200 hover:bg-gray-300'}`}
>
Cancelar
</button>
<button
type="submit"
className="flex-1 py-3 rounded-lg bg-blue-600 hover:bg-blue-500 text-white font-bold shadow-lg"
>
Salvar Item
</button>
</div>
</form>
</div>
</div>
)}
</div>
);
};
const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(<App />);
</script>
</body>
</html>