Aichatbot12321 commited on
Commit
b757be2
Β·
verified Β·
1 Parent(s): 44f8fd8

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +41 -46
index.html CHANGED
@@ -5,30 +5,42 @@
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
  <title>AI Pro Suite - Dashboard</title>
7
 
8
- <link rel="manifest" href="/manifest.json">
9
  <meta name="theme-color" content="#0f172a">
10
- <link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap" rel="stylesheet">
11
 
12
- <!-- RESTORED: Your original system default stylesheet -->
13
- <link rel="stylesheet" href="style.css">
 
 
 
 
 
 
14
 
15
  <style>
16
- /* πŸš€ ULTRA-SMOOTH ANIMATIONS & LOADER SPECIFICS ONLY */
17
- /* We leave your body/background colors ALONE so style.css handles it! */
18
 
19
- #appLoader { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: var(--bg-color, #0f172a); display: flex; flex-direction: column; justify-content: center; align-items: center; z-index: 9999; transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
20
- #appLoader.hidden { opacity: 0; transform: scale(1.05); pointer-events: none; }
 
 
 
 
21
 
22
- .loader-logo { font-size: 28px; font-weight: 800; background: linear-gradient(90deg, #3b82f6, #a855f7); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 15px; animation: pulseGlow 2s infinite; }
23
- .loader-bar-container { width: 220px; height: 6px; background: rgba(255,255,255,0.1); border-radius: 10px; overflow: hidden; margin-bottom: 15px; box-shadow: inset 0 1px 3px rgba(0,0,0,0.3); }
24
- .loader-bar { height: 100%; background: linear-gradient(90deg, #3b82f6, #a855f7); width: 0%; transition: width 0.2s ease; box-shadow: 0 0 10px rgba(59, 130, 246, 0.8); }
25
- .loader-text { font-size: 13px; color: var(--muted, #94a3b8); font-weight: 500; letter-spacing: 1px; }
 
26
 
27
- @keyframes pulseGlow { 0% { filter: drop-shadow(0 0 2px rgba(59, 130, 246, 0.4)); } 50% { filter: drop-shadow(0 0 10px rgba(168, 85, 247, 0.8)); } 100% { filter: drop-shadow(0 0 2px rgba(59, 130, 246, 0.4)); } }
28
- @keyframes slideUpPop { 0% { opacity: 0; transform: translateY(40px) scale(0.95); } 100% { opacity: 1; transform: translateY(0) scale(1); } }
29
- @keyframes floatIn { 0% { opacity: 0; transform: translateY(-20px); } 100% { opacity: 1; transform: translateY(0); } }
 
 
 
30
 
31
- /* Featured Hero Card Base (Your original styling) */
32
  .featured-hero { background: linear-gradient(135deg, #007aff, #a855f7); border-radius: 20px; padding: 24px; margin-bottom: 25px; display: flex; align-items: center; gap: 20px; cursor: pointer; box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3); transition: transform 0.3s ease, box-shadow 0.3s ease; color: white; position: relative; overflow: hidden; }
33
  .featured-hero:hover { transform: translateY(-5px); box-shadow: 0 15px 35px rgba(168, 85, 247, 0.4); }
34
  .featured-hero::after { content: ''; position: absolute; top: -50%; right: -20%; width: 150px; height: 150px; background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%); border-radius: 50%; }
@@ -37,30 +49,14 @@
37
  .hero-text p { margin: 0; font-size: 14px; opacity: 0.9; font-weight: 400; }
38
  .pin-badge { position: absolute; top: 12px; right: 15px; background: rgba(255,255,255,0.25); padding: 4px 10px; border-radius: 12px; font-size: 11px; font-weight: 700; text-transform: uppercase; backdrop-filter: blur(5px); }
39
 
40
- /* Apply Entrance Animations */
41
- .page.active { animation: floatIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
42
-
43
- .dashboard-grid .dash-card { opacity: 0; animation: slideUpPop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; }
44
-
45
- /* πŸš€ 14-Step Staggered Loading Animation for Cards */
46
- .dashboard-grid .dash-card:nth-child(1) { animation-delay: 0.10s; }
47
- .dashboard-grid .dash-card:nth-child(2) { animation-delay: 0.15s; }
48
- .dashboard-grid .dash-card:nth-child(3) { animation-delay: 0.20s; }
49
- .dashboard-grid .dash-card:nth-child(4) { animation-delay: 0.25s; }
50
- .dashboard-grid .dash-card:nth-child(5) { animation-delay: 0.30s; }
51
- .dashboard-grid .dash-card:nth-child(6) { animation-delay: 0.35s; }
52
- .dashboard-grid .dash-card:nth-child(7) { animation-delay: 0.40s; }
53
- .dashboard-grid .dash-card:nth-child(8) { animation-delay: 0.45s; }
54
- .dashboard-grid .dash-card:nth-child(9) { animation-delay: 0.50s; }
55
- .dashboard-grid .dash-card:nth-child(10) { animation-delay: 0.55s; }
56
- .dashboard-grid .dash-card:nth-child(11) { animation-delay: 0.60s; }
57
- .dashboard-grid .dash-card:nth-child(12) { animation-delay: 0.65s; }
58
- .dashboard-grid .dash-card:nth-child(13) { animation-delay: 0.70s; }
59
- .dashboard-grid .dash-card:nth-child(14) { animation-delay: 0.75s; }
60
-
61
- /* 3D Hover Physics */
62
- .dash-card { transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease, border-color 0.3s ease !important; }
63
- .dash-card:hover { transform: translateY(-8px) scale(1.03) !important; box-shadow: 0 15px 30px rgba(59, 130, 246, 0.15) !important; border-color: #3b82f6 !important; z-index: 10; position: relative; }
64
  </style>
65
  </head>
66
  <body>
@@ -104,7 +100,7 @@
104
  <div class="page active" id="homePage">
105
  <div style="text-align: center; margin-bottom: 30px; margin-top: 20px;">
106
  <h1 style="font-size: 28px; background: linear-gradient(90deg, #3b82f6, #a855f7); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 5px;">Welcome to AI Pro Suite</h1>
107
- <p style="color: var(--muted, #94a3b8); margin-top: 10px;">Select a tool below to get started</p>
108
  </div>
109
 
110
  <div class="card" style="margin-bottom: 25px; border-top: 3px solid #3b82f6;">
@@ -119,7 +115,7 @@
119
  </div>
120
 
121
  <div id="apiUsageContainer" style="display: flex; flex-wrap: wrap; gap: 10px;">
122
- <div style="color: var(--muted, #94a3b8); font-size: 14px;">Loading server stats...</div>
123
  </div>
124
  </div>
125
 
@@ -190,7 +186,7 @@
190
  const container = document.getElementById("apiUsageContainer");
191
  if (!container) return;
192
 
193
- container.innerHTML = '<span style="font-size:14px; color:var(--muted, #94a3b8);">Syncing with server...</span>';
194
 
195
  try {
196
  const controller = new AbortController();
@@ -203,13 +199,13 @@
203
  const data = await res.json();
204
 
205
  if (Object.keys(data).length === 0) {
206
- container.innerHTML = '<div style="color: var(--muted, #94a3b8); font-size: 14px; width: 100%; text-align: center;">No API requests made yet.</div>';
207
  return;
208
  }
209
 
210
  container.innerHTML = Object.entries(data).map(([apiName, count]) => `
211
  <div style="background: rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.05); padding: 15px; border-radius: 16px; flex: 1; min-width: 110px; text-align: center;">
212
- <div style="font-size: 11px; color: var(--muted, #94a3b8); font-weight: 700; text-transform: uppercase;">${apiName}</div>
213
  <div style="font-size: 24px; font-weight: 800; color: #60a5fa;">${count}</div>
214
  </div>
215
  `).join('');
@@ -257,6 +253,5 @@
257
  }, 2500);
258
  });
259
  </script>
260
- <script src="ui-controls.js" defer></script>
261
  </body>
262
  </html>
 
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
  <title>AI Pro Suite - Dashboard</title>
7
 
 
8
  <meta name="theme-color" content="#0f172a">
 
9
 
10
+ <!-- πŸš€ ASYNC FONTS: Prevents Google Fonts from causing the White Screen -->
11
+ <link rel="preconnect" href="https://fonts.googleapis.com">
12
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
13
+ <link rel="preload" href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap" as="style" onload="this.onload=null;this.rel='stylesheet'">
14
+
15
+ <!-- πŸš€ ASYNC CSS: Prevents a missing style.css from hanging the page -->
16
+ <link rel="preload" href="style.css" as="style" onload="this.onload=null;this.rel='stylesheet'">
17
+ <noscript><link rel="stylesheet" href="style.css"></noscript>
18
 
19
  <style>
20
+ /* 🚨 EMERGENCY INLINE STYLES: Forces instant dark mode render */
21
+ body { background-color: #0f172a; color: white; margin: 0; font-family: 'Poppins', system-ui, sans-serif; overflow-x: hidden; }
22
 
23
+ .topbar { display: flex; align-items: center; padding: 15px 20px; background: rgba(15, 23, 42, 0.9); backdrop-filter: blur(10px); position: fixed; top: 0; width: 100%; z-index: 50; box-shadow: 0 4px 30px rgba(0,0,0,0.5); border-bottom: 1px solid rgba(255,255,255,0.05); }
24
+ .menuBtn { font-size: 24px; cursor: pointer; color: #3b82f6; margin-right: 15px; }
25
+ .appTitle { font-size: 20px; font-weight: 700; color: white; letter-spacing: 0.5px; }
26
+
27
+ .page { padding: 20px; padding-top: 90px; max-width: 1200px; margin: 0 auto; }
28
+ .card { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.05); border-radius: 20px; padding: 20px; }
29
 
30
+ .dashboard-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 15px; margin-top: 20px; }
31
+ .dash-card { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.05); border-radius: 16px; padding: 20px 10px; text-align: center; cursor: pointer; transition: 0.3s ease; }
32
+ .dash-card:hover { transform: translateY(-5px); background: rgba(59,130,246,0.1); border-color: #3b82f6; }
33
+ .dash-icon { font-size: 32px; margin-bottom: 10px; }
34
+ .dash-title { font-size: 13px; font-weight: 600; color: #e2e8f0; }
35
 
36
+ #appLoader { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: #0f172a; display: flex; flex-direction: column; justify-content: center; align-items: center; z-index: 9999; transition: opacity 0.4s ease; }
37
+ #appLoader.hidden { opacity: 0; pointer-events: none; }
38
+ .loader-logo { font-size: 28px; font-weight: 800; background: linear-gradient(90deg, #3b82f6, #a855f7); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 15px; }
39
+ .loader-bar-container { width: 220px; height: 6px; background: rgba(255,255,255,0.1); border-radius: 10px; overflow: hidden; margin-bottom: 15px; }
40
+ .loader-bar { height: 100%; background: linear-gradient(90deg, #3b82f6, #a855f7); width: 0%; transition: width 0.2s ease; }
41
+ .loader-text { font-size: 13px; color: #94a3b8; font-weight: 500; letter-spacing: 1px; }
42
 
43
+ /* Featured Hero Card for Lens Studio */
44
  .featured-hero { background: linear-gradient(135deg, #007aff, #a855f7); border-radius: 20px; padding: 24px; margin-bottom: 25px; display: flex; align-items: center; gap: 20px; cursor: pointer; box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3); transition: transform 0.3s ease, box-shadow 0.3s ease; color: white; position: relative; overflow: hidden; }
45
  .featured-hero:hover { transform: translateY(-5px); box-shadow: 0 15px 35px rgba(168, 85, 247, 0.4); }
46
  .featured-hero::after { content: ''; position: absolute; top: -50%; right: -20%; width: 150px; height: 150px; background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%); border-radius: 50%; }
 
49
  .hero-text p { margin: 0; font-size: 14px; opacity: 0.9; font-weight: 400; }
50
  .pin-badge { position: absolute; top: 12px; right: 15px; background: rgba(255,255,255,0.25); padding: 4px 10px; border-radius: 12px; font-size: 11px; font-weight: 700; text-transform: uppercase; backdrop-filter: blur(5px); }
51
 
52
+ /* Sidebar Basics */
53
+ .sidebar { position: fixed; top: 0; left: -280px; width: 260px; height: 100vh; background: #0f172a; padding: 20px 10px; transition: 0.3s ease; z-index: 2000; overflow-y: auto; border-right: 1px solid rgba(255,255,255,0.05); }
54
+ .sidebar.active { left: 0; }
55
+ .sidebar button { width: 100%; text-align: left; padding: 12px 15px; background: transparent; border: none; color: #cbd5e1; font-size: 15px; font-family: 'Poppins', sans-serif; cursor: pointer; border-radius: 8px; margin-bottom: 5px; transition: 0.2s; }
56
+ .sidebar button:hover { background: rgba(255,255,255,0.05); color: white; }
57
+ .sidebar-close-btn { color: #ef4444 !important; font-weight: 700; margin-bottom: 15px !important; }
58
+ .overlay { display: none; position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0,0,0,0.6); z-index: 1500; backdrop-filter: blur(2px); }
59
+ .overlay.active { display: block; }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
60
  </style>
61
  </head>
62
  <body>
 
100
  <div class="page active" id="homePage">
101
  <div style="text-align: center; margin-bottom: 30px; margin-top: 20px;">
102
  <h1 style="font-size: 28px; background: linear-gradient(90deg, #3b82f6, #a855f7); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 5px;">Welcome to AI Pro Suite</h1>
103
+ <p style="color: #94a3b8; margin-top: 10px;">Select a tool below to get started</p>
104
  </div>
105
 
106
  <div class="card" style="margin-bottom: 25px; border-top: 3px solid #3b82f6;">
 
115
  </div>
116
 
117
  <div id="apiUsageContainer" style="display: flex; flex-wrap: wrap; gap: 10px;">
118
+ <div style="color: #94a3b8; font-size: 14px;">Loading server stats...</div>
119
  </div>
120
  </div>
121
 
 
186
  const container = document.getElementById("apiUsageContainer");
187
  if (!container) return;
188
 
189
+ container.innerHTML = '<span style="font-size:14px; color:#94a3b8;">Syncing with server...</span>';
190
 
191
  try {
192
  const controller = new AbortController();
 
199
  const data = await res.json();
200
 
201
  if (Object.keys(data).length === 0) {
202
+ container.innerHTML = '<div style="color: #94a3b8; font-size: 14px; width: 100%; text-align: center;">No API requests made yet.</div>';
203
  return;
204
  }
205
 
206
  container.innerHTML = Object.entries(data).map(([apiName, count]) => `
207
  <div style="background: rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.05); padding: 15px; border-radius: 16px; flex: 1; min-width: 110px; text-align: center;">
208
+ <div style="font-size: 11px; color: #94a3b8; font-weight: 700; text-transform: uppercase;">${apiName}</div>
209
  <div style="font-size: 24px; font-weight: 800; color: #60a5fa;">${count}</div>
210
  </div>
211
  `).join('');
 
253
  }, 2500);
254
  });
255
  </script>
 
256
  </body>
257
  </html>