Mrdips commited on
Commit
c8d5835
·
verified ·
1 Parent(s): cf9ada6

привет проведи оптимизацию и иинтеграцию с видовс 11

Browse files
Files changed (1) hide show
  1. chat.html +267 -6
chat.html CHANGED
@@ -1,22 +1,283 @@
1
 
2
  <!DOCTYPE html>
3
- <html lang="en">
4
  <head>
5
  <meta charset="UTF-8">
6
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
 
7
  <title>AI Chat - The Colorless Wonder</title>
8
  <link rel="stylesheet" href="style.css">
 
9
  <script src="https://cdn.tailwindcss.com"></script>
10
  <script src="https://unpkg.com/feather-icons"></script>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
11
  </head>
12
- <body>
 
 
 
 
 
 
13
  <ai-chat></ai-chat>
14
- <div class="card mt-4 text-center">
15
- <a href="tools.html" class="text-blue-500 hover:underline">Explore Development Tools & SDKs</a>
16
- <div class="mt-2">
17
- <a href="index.html" class="text-blue-500 hover:underline">&larr; Back to Home</a>
 
 
 
 
18
  </div>
19
  </div>
 
20
  <script src="components/ai-chat.js"></script>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
21
  </body>
22
  </html>
 
1
 
2
  <!DOCTYPE html>
3
+ <html lang="en" class="light">
4
  <head>
5
  <meta charset="UTF-8">
6
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
7
+ <meta name="theme-color" content="#0078d4">
8
  <title>AI Chat - The Colorless Wonder</title>
9
  <link rel="stylesheet" href="style.css">
10
+ <link rel="stylesheet" href="windows11.css">
11
  <script src="https://cdn.tailwindcss.com"></script>
12
  <script src="https://unpkg.com/feather-icons"></script>
13
+ <style>
14
+ :root {
15
+ --win11-bg: rgba(243, 243, 243, 0.85);
16
+ --win11-bg-dark: rgba(32, 32, 32, 0.85);
17
+ --win11-acrylic: rgba(243, 243, 243, 0.75);
18
+ --win11-acrylic-dark: rgba(32, 32, 32, 0.75);
19
+ --win11-border: rgba(0, 0, 0, 0.08);
20
+ --win11-border-dark: rgba(255, 255, 255, 0.08);
21
+ --win11-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
22
+ --win11-shadow-dark: 0 8px 32px rgba(0, 0, 0, 0.3);
23
+ --win11-radius: 8px;
24
+ --win11-radius-lg: 12px;
25
+ --win11-text: #1b1b1b;
26
+ --win11-text-secondary: #6b6b6b;
27
+ --win11-primary: #0078d4;
28
+ --win11-primary-hover: #1a86d9;
29
+ --win11-primary-dark: #60cdff;
30
+ }
31
+
32
+ .dark {
33
+ --win11-bg: rgba(32, 32, 32, 0.85);
34
+ --win11-acrylic: rgba(32, 32, 32, 0.75);
35
+ --win11-border: rgba(255, 255, 255, 0.08);
36
+ --win11-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
37
+ --win11-text: #ffffff;
38
+ --win11-text-secondary: #a0a0a0;
39
+ --win11-primary: #60cdff;
40
+ --win11-primary-hover: #8ad4ff;
41
+ }
42
+
43
+ body {
44
+ font-family: 'Segoe UI', 'Segoe UI Variable', -apple-system, BlinkMacSystemFont, sans-serif;
45
+ background: linear-gradient(135deg,
46
+ rgba(0, 120, 212, 0.08) 0%,
47
+ rgba(0, 120, 212, 0.04) 50%,
48
+ rgba(0, 120, 212, 0.08) 100%);
49
+ min-height: 100vh;
50
+ backdrop-filter: blur(30px) saturate(125%);
51
+ -webkit-backdrop-filter: blur(30px) saturate(125%);
52
+ }
53
+
54
+ .dark body {
55
+ background: linear-gradient(135deg,
56
+ rgba(0, 120, 212, 0.12) 0%,
57
+ rgba(0, 120, 212, 0.06) 50%,
58
+ rgba(0, 120, 212, 0.12) 100%);
59
+ }
60
+
61
+ .win11-window {
62
+ background: var(--win11-acrylic);
63
+ backdrop-filter: blur(40px) saturate(150%);
64
+ -webkit-backdrop-filter: blur(40px) saturate(150%);
65
+ border: 1px solid var(--win11-border);
66
+ box-shadow: var(--win11-shadow);
67
+ border-radius: var(--win11-radius-lg);
68
+ }
69
+
70
+ .win11-button {
71
+ background: rgba(0, 0, 0, 0.04);
72
+ border: 1px solid var(--win11-border);
73
+ border-radius: var(--win11-radius);
74
+ transition: all 0.15s ease;
75
+ }
76
+
77
+ .win11-button:hover {
78
+ background: rgba(0, 0, 0, 0.08);
79
+ }
80
+
81
+ .dark .win11-button {
82
+ background: rgba(255, 255, 255, 0.04);
83
+ }
84
+
85
+ .dark .win11-button:hover {
86
+ background: rgba(255, 255, 255, 0.08);
87
+ }
88
+
89
+ .win11-input {
90
+ background: rgba(0, 0, 0, 0.04);
91
+ border: 1px solid var(--win11-border);
92
+ border-radius: var(--win11-radius);
93
+ transition: all 0.2s ease;
94
+ }
95
+
96
+ .win11-input:focus {
97
+ background: rgba(0, 0, 0, 0.06);
98
+ border-color: var(--win11-primary);
99
+ box-shadow: 0 0 0 2px rgba(0, 120, 212, 0.2);
100
+ outline: none;
101
+ }
102
+
103
+ .dark .win11-input {
104
+ background: rgba(255, 255, 255, 0.04);
105
+ }
106
+
107
+ .dark .win11-input:focus {
108
+ background: rgba(255, 255, 255, 0.06);
109
+ }
110
+
111
+ .win11-link {
112
+ color: var(--win11-primary);
113
+ text-decoration: none;
114
+ border-radius: 4px;
115
+ padding: 2px 4px;
116
+ margin: -2px -4px;
117
+ transition: background 0.15s ease;
118
+ }
119
+
120
+ .win11-link:hover {
121
+ background: rgba(0, 120, 212, 0.1);
122
+ text-decoration: underline;
123
+ }
124
+
125
+ .win11-card {
126
+ background: var(--win11-acrylic);
127
+ backdrop-filter: blur(30px) saturate(125%);
128
+ -webkit-backdrop-filter: blur(30px) saturate(125%);
129
+ border: 1px solid var(--win11-border);
130
+ border-radius: var(--win11-radius-lg);
131
+ }
132
+
133
+ /* Windows 11 Title Bar */
134
+ .win11-titlebar {
135
+ height: 32px;
136
+ display: flex;
137
+ align-items: center;
138
+ padding: 0 12px;
139
+ border-bottom: 1px solid var(--win11-border);
140
+ user-select: none;
141
+ }
142
+
143
+ .win11-titlebar-drag {
144
+ flex: 1;
145
+ height: 100%;
146
+ -webkit-app-region: drag;
147
+ }
148
+
149
+ /* Smooth animations */
150
+ * {
151
+ transition-property: background-color, border-color, color, fill, stroke;
152
+ transition-timing-function: ease;
153
+ transition-duration: 150ms;
154
+ }
155
+
156
+ /* Scrollbar styling */
157
+ ::-webkit-scrollbar {
158
+ width: 8px;
159
+ height: 8px;
160
+ }
161
+
162
+ ::-webkit-scrollbar-track {
163
+ background: transparent;
164
+ }
165
+
166
+ ::-webkit-scrollbar-thumb {
167
+ background: rgba(0, 0, 0, 0.2);
168
+ border-radius: 4px;
169
+ }
170
+
171
+ ::-webkit-scrollbar-thumb:hover {
172
+ background: rgba(0, 0, 0, 0.3);
173
+ }
174
+
175
+ .dark ::-webkit-scrollbar-thumb {
176
+ background: rgba(255, 255, 255, 0.2);
177
+ }
178
+
179
+ .dark ::-webkit-scrollbar-thumb:hover {
180
+ background: rgba(255, 255, 255, 0.3);
181
+ }
182
+
183
+ /* Theme toggle button */
184
+ .theme-toggle {
185
+ position: fixed;
186
+ top: 16px;
187
+ right: 16px;
188
+ z-index: 1000;
189
+ }
190
+
191
+ @media (max-width: 640px) {
192
+ .theme-toggle {
193
+ top: 8px;
194
+ right: 8px;
195
+ }
196
+ }
197
+ </style>
198
  </head>
199
+ <body class="light">
200
+ <!-- Theme Toggle Button -->
201
+ <button class="theme-toggle win11-button p-2" onclick="toggleTheme()" title="Toggle Theme">
202
+ <i data-feather="sun" class="w-5 h-5 text-yellow-500 dark:hidden"></i>
203
+ <i data-feather="moon" class="w-5 h-5 text-yellow-300 hidden dark:block"></i>
204
+ </button>
205
+
206
  <ai-chat></ai-chat>
207
+
208
+ <div class="win11-card mx-auto mt-6 p-4 text-center max-w-md" style="margin-left: auto; margin-right: auto; margin-top: 24px;">
209
+ <a href="tools.html" class="win11-link">Explore Development Tools & SDKs</a>
210
+ <div class="mt-3">
211
+ <a href="index.html" class="win11-link">
212
+ <i data-feather="arrow-left" class="w-4 h-4 inline mr-1"></i>
213
+ Back to Home
214
+ </a>
215
  </div>
216
  </div>
217
+
218
  <script src="components/ai-chat.js"></script>
219
+ <script>
220
+ // Initialize Feather icons
221
+ document.addEventListener('DOMContentLoaded', function() {
222
+ if (typeof feather !== 'undefined') {
223
+ feather.replace();
224
+ }
225
+ });
226
+
227
+ // Theme toggle functionality
228
+ function toggleTheme() {
229
+ const html = document.documentElement;
230
+ const isDark = html.classList.contains('dark');
231
+
232
+ if (isDark) {
233
+ html.classList.remove('dark');
234
+ html.classList.add('light');
235
+ localStorage.setItem('theme', 'light');
236
+ } else {
237
+ html.classList.remove('light');
238
+ html.classList.add('dark');
239
+ localStorage.setItem('theme', 'dark');
240
+ }
241
+
242
+ // Re-initialize feather icons for theme change
243
+ if (typeof feather !== 'undefined') {
244
+ feather.replace();
245
+ }
246
+
247
+ // Dispatch custom event for components
248
+ window.dispatchEvent(new CustomEvent('themechange', {
249
+ detail: { theme: isDark ? 'light' : 'dark' }
250
+ }));
251
+ }
252
+
253
+ // Check system preference
254
+ function initTheme() {
255
+ const saved = localStorage.getItem('theme');
256
+ const prefersDark = window.matchMedia('(prefers-color-scheme: dark)').matches;
257
+
258
+ if (saved) {
259
+ document.documentElement.classList.remove('light', 'dark');
260
+ document.documentElement.classList.add(saved);
261
+ } else if (prefersDark) {
262
+ document.documentElement.classList.remove('light', 'dark');
263
+ document.documentElement.classList.add('dark');
264
+ }
265
+
266
+ if (typeof feather !== 'undefined') {
267
+ feather.replace();
268
+ }
269
+ }
270
+
271
+ // Initialize theme on load
272
+ initTheme();
273
+
274
+ // Listen for system theme changes
275
+ window.matchMedia('(prefers-color-scheme: dark)').addEventListener('change', function(e) {
276
+ if (!localStorage.getItem('theme')) {
277
+ document.documentElement.classList.remove('light', 'dark');
278
+ document.documentElement.classList.add(e.matches ? 'dark' : 'light');
279
+ }
280
+ });
281
+ </script>
282
  </body>
283
  </html>