File size: 12,552 Bytes
835c922
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
<!DOCTYPE html>
<html lang="pt-BR">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Projetando - Dashboard de Manutenção</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }
        
        @keyframes slideUp {
            from { transform: translateY(20px); opacity: 0; }
            to { transform: translateY(0); opacity: 1; }
        }
        
        @keyframes pulse {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.05); }
        }
        
        @keyframes rotate {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }
        
        .splash-screen {
            animation: fadeIn 0.5s ease-out;
        }
        
        .splash-content {
            animation: slideUp 0.8s ease-out 0.3s both;
        }
        
        .logo {
            animation: pulse 2s infinite ease-in-out;
        }
        
        .loading-spinner {
            animation: rotate 1.5s linear infinite;
        }
        
        .main-content {
            display: none;
            opacity: 0;
            transition: opacity 0.8s ease;
        }
        
        .fade-in {
            opacity: 1;
        }
    </style>
</head>
<body class="bg-gray-100 font-sans">
    <!-- Splash Screen -->
    <div id="splash" class="splash-screen fixed inset-0 flex items-center justify-center bg-gradient-to-br from-blue-600 to-blue-800 z-50">
        <div class="splash-content text-center px-4">
            <div class="logo mb-8">
                <i class="fas fa-cogs text-white text-6xl"></i>
            </div>
            <h1 class="text-4xl font-bold text-white mb-2">PROJETANDO</h1>
            <p class="text-xl text-blue-100 mb-8">Dashboard de Manutenção Industrial</p>
            
            <div class="loading-spinner inline-block text-white text-2xl mb-6">
                <i class="fas fa-circle-notch"></i>
            </div>
            
            <div class="text-blue-200">
                <p>Carregando dados dos equipamentos...</p>
                <div class="w-full bg-blue-500 bg-opacity-30 rounded-full h-2 mt-2">
                    <div id="progress-bar" class="bg-white h-2 rounded-full" style="width: 0%"></div>
                </div>
            </div>
        </div>
    </div>

    <!-- Main Content (hidden initially) -->
    <div id="main" class="main-content min-h-screen">
        <!-- Header -->
        <header class="bg-white shadow-sm">
            <div class="container mx-auto px-4 py-4 flex justify-between items-center">
                <div class="flex items-center">
                    <i class="fas fa-cogs text-blue-600 text-2xl mr-3"></i>
                    <h1 class="text-2xl font-bold text-gray-800">PROJETANDO</h1>
                </div>
                <nav class="hidden md:block">
                    <ul class="flex space-x-6">
                        <li><a href="#" class="text-blue-600 font-medium">Dashboard</a></li>
                        <li><a href="#" class="text-gray-600 hover:text-blue-600">Equipamentos</a></li>
                        <li><a href="#" class="text-gray-600 hover:text-blue-600">Ordens de Serviço</a></li>
                        <li><a href="#" class="text-gray-600 hover:text-blue-600">Relatórios</a></li>
                    </ul>
                </nav>
                <div class="flex items-center">
                    <button class="md:hidden text-gray-600">
                        <i class="fas fa-bars text-xl"></i>
                    </button>
                    <div class="ml-4 hidden md:block">
                        <span class="text-gray-700">Eng. Responsável</span>
                    </div>
                </div>
            </div>
        </header>

        <!-- Main Dashboard -->
        <main class="container mx-auto px-4 py-8">
            <div class="mb-8">
                <h2 class="text-2xl font-bold text-gray-800 mb-2">Visão Consolidada de Manutenção</h2>
                <p class="text-gray-600">Monitoramento em tempo real do status dos equipamentos e ordens de serviço</p>
            </div>
            
            <!-- Stats Cards -->
            <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-8">
                <div class="bg-white rounded-lg shadow p-6">
                    <div class="flex items-center">
                        <div class="p-3 rounded-full bg-blue-100 text-blue-600 mr-4">
                            <i class="fas fa-industry text-xl"></i>
                        </div>
                        <div>
                            <p class="text-gray-500">Equipamentos</p>
                            <h3 class="text-2xl font-bold">42</h3>
                        </div>
                    </div>
                </div>
                
                <div class="bg-white rounded-lg shadow p-6">
                    <div class="flex items-center">
                        <div class="p-3 rounded-full bg-green-100 text-green-600 mr-4">
                            <i class="fas fa-check-circle text-xl"></i>
                        </div>
                        <div>
                            <p class="text-gray-500">Operacionais</p>
                            <h3 class="text-2xl font-bold">35</h3>
                        </div>
                    </div>
                </div>
                
                <div class="bg-white rounded-lg shadow p-6">
                    <div class="flex items-center">
                        <div class="p-3 rounded-full bg-yellow-100 text-yellow-600 mr-4">
                            <i class="fas fa-tools text-xl"></i>
                        </div>
                        <div>
                            <p class="text-gray-500">OS em Andamento</p>
                            <h3 class="text-2xl font-bold">5</h3>
                        </div>
                    </div>
                </div>
                
                <div class="bg-white rounded-lg shadow p-6">
                    <div class="flex items-center">
                        <div class="p-3 rounded-full bg-red-100 text-red-600 mr-4">
                            <i class="fas fa-exclamation-triangle text-xl"></i>
                        </div>
                        <div>
                            <p class="text-gray-500">Críticos</p>
                            <h3 class="text-2xl font-bold">2</h3>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- Main Dashboard Content -->
            <div class="grid grid-cols-1 lg:grid-cols-3 gap-6">
                <!-- Equipment Status -->
                <div class="lg:col-span-2 bg-white rounded-lg shadow overflow-hidden">
                    <div class="p-6 border-b">
                        <h3 class="text-xl font-semibold text-gray-800">Status dos Equipamentos</h3>
                    </div>
                    <div class="p-6">
                        <div class="h-64 flex items-center justify-center">
                            <p class="text-gray-500">Gráfico de status dos equipamentos será exibido aqui</p>
                        </div>
                    </div>
                </div>
                
                <!-- Recent OS -->
                <div class="bg-white rounded-lg shadow overflow-hidden">
                    <div class="p-6 border-b">
                        <h3 class="text-xl font-semibold text-gray-800">Ordens de Serviço Recentes</h3>
                    </div>
                    <div class="divide-y">
                        <div class="p-4 hover:bg-gray-50 cursor-pointer">
                            <div class="flex justify-between items-center mb-1">
                                <span class="font-medium">OS-2023-045</span>
                                <span class="text-xs px-2 py-1 bg-yellow-100 text-yellow-800 rounded-full">Em Andamento</span>
                            </div>
                            <p class="text-sm text-gray-600">Máquina de Moldagem #12</p>
                            <p class="text-xs text-gray-500 mt-1">Iniciada: 15/11/2023</p>
                        </div>
                        
                        <div class="p-4 hover:bg-gray-50 cursor-pointer">
                            <div class="flex justify-between items-center mb-1">
                                <span class="font-medium">OS-2023-044</span>
                                <span class="text-xs px-2 py-1 bg-green-100 text-green-800 rounded-full">Concluída</span>
                            </div>
                            <p class="text-sm text-gray-600">Esteira Transportadora #5</p>
                            <p class="text-xs text-gray-500 mt-1">Concluída: 14/11/2023</p>
                        </div>
                        
                        <div class="p-4 hover:bg-gray-50 cursor-pointer">
                            <div class="flex justify-between items-center mb-1">
                                <span class="font-medium">OS-2023-043</span>
                                <span class="text-xs px-2 py-1 bg-red-100 text-red-800 rounded-full">Urgente</span>
                            </div>
                            <p class="text-sm text-gray-600">Compressor Principal</p>
                            <p class="text-xs text-gray-500 mt-1">Iniciada: 13/11/2023</p>
                        </div>
                        
                        <div class="p-4 hover:bg-gray-50 cursor-pointer">
                            <div class="flex justify-between items-center mb-1">
                                <span class="font-medium">OS-2023-042</span>
                                <span class="text-xs px-2 py-1 bg-blue-100 text-blue-800 rounded-full">Programada</span>
                            </div>
                            <p class="text-sm text-gray-600">Forno Industrial #3</p>
                            <p class="text-xs text-gray-500 mt-1">Programada: 17/11/2023</p>
                        </div>
                    </div>
                </div>
            </div>
        </main>
    </div>

    <script>
        // Simulate loading process
        document.addEventListener('DOMContentLoaded', function() {
            let progress = 0;
            const progressBar = document.getElementById('progress-bar');
            const splash = document.getElementById('splash');
            const main = document.getElementById('main');
            
            const loadingInterval = setInterval(() => {
                progress += Math.random() * 10;
                if (progress > 100) progress = 100;
                progressBar.style.width = `${progress}%`;
                
                if (progress >= 100) {
                    clearInterval(loadingInterval);
                    
                    // Fade out splash screen
                    splash.style.opacity = '0';
                    splash.style.transition = 'opacity 0.5s ease';
                    
                    // After fade out, show main content
                    setTimeout(() => {
                        splash.style.display = 'none';
                        main.style.display = 'block';
                        
                        // Fade in main content
                        setTimeout(() => {
                            main.classList.add('fade-in');
                        }, 50);
                    }, 500);
                }
            }, 300);
        });
    </script>
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=henboff/projetando" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>