Hamed744 commited on
Commit
8508135
·
verified ·
1 Parent(s): 65c3578

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +191 -150
index.html CHANGED
@@ -3,63 +3,27 @@
3
  <head>
4
  <meta charset="UTF-8">
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
6
- <title>هوشان - پیش‌نمایش دقیق‌تر</title>
7
  <script src="https://cdn.tailwindcss.com"></script>
8
  <style>
9
  /* Content from src/app/globals.css */
10
- /* @import "tailwindcss"; Tailwind loaded via CDN */
11
- /* @import "tw-animate-css"; Assume this provides animate-ping etc. */
12
-
13
  @custom-variant dark (&:is(.dark *));
14
 
15
  @theme inline {
16
  --color-background: var(--background);
17
  --color-foreground: var(--foreground);
18
- --font-sans: var(--font-geist-sans);
19
- --font-mono: var(--font-geist-mono);
20
- --color-sidebar-ring: var(--sidebar-ring);
21
- --color-sidebar-border: var(--sidebar-border);
22
- --color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
23
- --color-sidebar-accent: var(--sidebar-accent);
24
- --color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
25
- --color-sidebar-primary: var(--sidebar-primary);
26
- --color-sidebar-foreground: var(--sidebar-foreground);
27
- --color-sidebar: var(--sidebar);
28
- --color-chart-5: var(--chart-5);
29
- --color-chart-4: var(--chart-4);
30
- --color-chart-3: var(--chart-3);
31
- --color-chart-2: var(--chart-2);
32
- --color-chart-1: var(--chart-1);
33
- --color-ring: var(--ring);
34
- --color-input: var(--input);
35
- --color-border: var(--border);
36
- --color-destructive: var(--destructive);
37
- --color-accent-foreground: var(--accent-foreground);
38
- --color-accent: var(--accent);
39
- --color-muted-foreground: var(--muted-foreground);
40
- --color-muted: var(--muted);
41
- --color-secondary-foreground: var(--secondary-foreground);
42
- --color-secondary: var(--secondary);
43
- --color-primary-foreground: var(--primary-foreground);
44
- --color-primary: var(--primary);
45
- --color-popover-foreground: var(--popover-foreground);
46
- --color-popover: var(--popover);
47
- --color-card-foreground: var(--card-foreground);
48
- --color-card: var(--card);
49
- --radius-sm: calc(var(--radius) - 4px);
50
- --radius-md: calc(var(--radius) - 2px);
51
  --radius-lg: var(--radius);
52
- --radius-xl: calc(var(--radius) + 4px);
53
  }
54
 
55
  :root {
56
  --radius: 0.625rem;
57
- --background: oklch(1 0 0);
58
  --foreground: oklch(0.145 0 0);
59
  --card: oklch(1 0 0);
60
  --card-foreground: oklch(0.145 0 0);
61
- --popover: oklch(1 0 0); /* Default popover background (white) */
62
- --popover-foreground: oklch(0.145 0 0); /* Default popover text (dark) */
63
  --primary: oklch(0.205 0 0);
64
  --primary-foreground: oklch(0.985 0 0);
65
  --secondary: oklch(0.97 0 0);
@@ -72,17 +36,13 @@
72
  --border: oklch(0.922 0 0);
73
  --input: oklch(0.922 0 0);
74
  --ring: oklch(0.708 0 0);
75
- /* ... other variables ... */
76
  }
77
 
78
  .dark {
79
  --background: oklch(0.145 0 0);
80
  --foreground: oklch(0.985 0 0);
81
- --card: oklch(0.205 0 0);
82
- --card-foreground: oklch(0.985 0 0);
83
- --popover: oklch(0.205 0 0); /* Dark popover background */
84
- --popover-foreground: oklch(0.985 0 0); /* Light popover text */
85
- /* ... other dark variables ... */
86
  }
87
 
88
  @layer base {
@@ -94,64 +54,72 @@
94
  }
95
  }
96
 
97
- .popover-trigger-container {
98
- position: relative;
99
- }
100
  .popover-content {
101
- display: none;
102
- position: absolute;
103
- width: 18rem; /* w-72 from PopoverContent default */
104
- z-index: 50;
105
- border-radius: var(--radius-md, 0.5rem); /* rounded-md */
106
- border-width: 1px;
107
- border-color: var(--border);
108
- padding: 1rem; /* p-4 */
109
- box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); /* shadow-md */
110
  outline: none;
111
  }
112
  .popover-trigger-container:hover .popover-content,
113
- .popover-trigger-container:focus-within .popover-content {
114
- display: block;
115
- }
116
 
117
- /* Specific styling for Notification Popover */
118
  .notification-popover-content {
119
  background-color: #eff6ff; /* bg-blue-50 */
120
- color: var(--foreground); /* Assuming default foreground for text-sm */
121
- font-size: 0.875rem; /* text-sm */
122
- line-height: 1.5rem; /* leading-6 */
123
- direction: rtl;
124
- /* Positioning based on Radix props:
125
- side={'left'}, sideOffset=10, align={'start'}, alignOffset={40} */
126
- right: calc(100% + 10px); /* Popover to the left of trigger, 10px offset */
127
- top: 40px; /* Top of popover is 40px below top of trigger */
128
- left: auto;
129
  }
130
 
131
- /* Styling for Back button */
132
  .back-button {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
133
  display: flex;
134
  align-items: center;
135
  justify-content: center;
136
- padding: 0.5rem; /* p-2 */
137
- border-radius: var(--radius-lg, 0.5rem); /* rounded-lg */
138
- background-color: #e5e7eb; /* bg-gray-200 */
139
- cursor: pointer;
140
  }
141
- .back-button svg {
142
- opacity: 0.5;
 
 
143
  }
144
 
145
- /* For animate-ping if not covered by tw-animate-css */
146
- @keyframes ping {
147
- 75%, 100% {
148
- transform: scale(2);
149
- opacity: 0;
150
- }
 
 
151
  }
152
- .animate-ping {
153
- animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
 
 
 
 
 
 
154
  }
 
 
155
 
156
  </style>
157
  <script>
@@ -160,11 +128,8 @@
160
  theme: {
161
  extend: {
162
  colors: {
163
- border: 'var(--border)',
164
- input: 'var(--input)',
165
- ring: 'var(--ring)',
166
- background: 'var(--background)',
167
- foreground: 'var(--foreground)',
168
  primary: { DEFAULT: 'var(--primary)', foreground: 'var(--primary-foreground)' },
169
  secondary: { DEFAULT: 'var(--secondary)', foreground: 'var(--secondary-foreground)' },
170
  destructive: 'var(--destructive)',
@@ -172,18 +137,14 @@
172
  accent: { DEFAULT: 'var(--accent)', foreground: 'var(--accent-foreground)' },
173
  popover: { DEFAULT: 'var(--popover)', foreground: 'var(--popover-foreground)' },
174
  card: { DEFAULT: 'var(--card)', foreground: 'var(--card-foreground)' },
175
- // Custom for logo animations
176
  'green-200': '#bbf7d0', 'green-300': '#86efac', 'green-400': '#4ade80',
177
  'blue-200': '#bfdbfe', 'blue-300': '#93c5fd', 'blue-400': '#60a5fa',
178
- // Custom button colors
179
- 'button-mic-bg': '#fecdd3', // bg-[#fecdd3] for mic button
180
- 'button-cam-bg': '#E0ECFF', // bg-[#E0ECFF] for cam button
181
  },
182
  borderRadius: {
183
- lg: 'var(--radius-lg, 0.5rem)', md: 'var(--radius-md, 0.375rem)',
184
  sm: 'var(--radius-sm, 0.25rem)', xl: 'var(--radius-xl, 0.75rem)'
185
  },
186
- inset: { // For logo animation positioning
187
  '5px': '5px', '10px': '10px', '12px': '12px', '20px': '20px',
188
  '22px': '22px', '40px': '40px', '50px': '50px', '65px': '65px'
189
  }
@@ -192,84 +153,164 @@
192
  }
193
  </script>
194
  </head>
195
- <body class="antialiased">
196
 
197
  <div class="w-full flex flex-col items-center justify-center min-h-[90dvh] md:min-h-screen">
198
  <div class="max-w-3xl w-full flex flex-col items-center justify-center h-full relative">
199
  <!-- Header -->
200
- <div class="flex flex-row-reverse p-4 justify-between items-center w-full absolute top-0 left-0 z-10"> {/* Added items-center for align-middle */}
201
- <!-- Notification Component (Visually on the Left) -->
202
  <div class="popover-trigger-container">
203
  <button aria-label="Notifications">
204
- <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="opacity-50">
205
- <circle cx="12" cy="12" r="10"></circle>
206
- <line x1="12" y1="8" x2="12" y2="12"></line>
207
- <line x1="12" y1="16" x2="12.01" y2="16"></line>
208
- </svg>
209
  </button>
210
  <div class="popover-content notification-popover-content">
211
  مدل‌های هوش مصنوعی می‌توانند اشتباه کنند، صحت اطلاعات مهم را بررسی کنید و از وارد کردن اطلاعات حساس بپرهیزید.
212
  </div>
213
  </div>
214
-
215
- <!-- Back Component (Visually on the Right) -->
216
- <div class="back-button" onclick="alert('Back clicked - window.close() would fire here')">
217
- <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
218
- <path d="m15 18-6-6 6-6"></path>
219
- </svg>
220
  </div>
221
  </div>
222
 
223
- <!-- MediaToggle Component -->
224
  <div class="w-full flex flex-col items-center justify-center h-[90dvh] bg-slate-50 top-0 left-0 relative">
225
- <video id="videoRef" autoplay playsinline class="absolute top-0 left-0 w-full h-full object-cover scale-x-[-1] hidden"></video>
226
-
227
- <!-- Main Logo (Human, Active because micActive is true by default for this preview) -->
228
- <div class="w-fit flex items-center justify-center">
229
- <div class="hidden bg-green-200 bg-green-300 bg-green-400 bg-blue-200 bg-blue-300 bg-blue-400">color pre-loader</div>
230
- <div class="relative w-[200px] h-[200px]">
231
- <div class="absolute rounded-full opacity-50 animate-ping bg-blue-200 inset-[40px]"></div>
232
- <div class="absolute inset-0 rounded-full opacity-50 bg-blue-200"></div>
233
- <div class="absolute rounded-full opacity-50 bg-blue-300 inset-[20px]"></div>
234
- <div class="absolute inset-[50px] rounded-full opacity-50 bg-blue-400"></div>
235
- <div class="z-10 absolute inset-[65px]">
236
- <svg width="70" height="70" viewBox="0 0 88 89" fill="none" xmlns="http://www.w3.org/2000/svg">
237
- <path d="M75.1481 81.6361H12.9259C9.66667 81.6361 7 78.9721 7 75.7161V58.5112C7 57.5862 7 57.1052 7.44444 56.2172C8.85185 52.9612 13 50.2232 19.4815 47.8922C24.1111 56.6982 33.3704 62.6921 44 62.6921C54.6296 62.6921 63.9259 56.6982 68.5185 47.8922C75 50.1862 79.1852 52.9982 80.5556 56.2172C81 56.6612 81 57.6232 81 58.5112V75.7161C81 78.9721 78.3333 81.6361 75.0741 81.6361H75.1481Z" stroke="#FCFCFC" stroke-width="6.42146" stroke-linecap="round" stroke-linejoin="round"/>
238
- <path d="M44.0371 50.1862C33.8519 50.1862 25.5186 41.8612 25.5186 31.6863V26.1363C25.5186 15.9613 33.8519 7.63635 44.0371 7.63635C54.2223 7.63635 62.5556 15.9613 62.5556 26.1363V31.6863C62.5556 41.8612 54.2223 50.1862 44.0371 50.1862Z" stroke="#FCFCFC" stroke-width="6.42146" stroke-linecap="round" stroke-linejoin="round"/>
239
- </svg>
240
- </div>
241
- </div>
242
  </div>
243
 
244
- <div class="w-full flex gap-4 bottom-0 absolute p-12 py-8 flex justify-between">
245
- <!-- Mic Button (Showing Pause, as micActive is true for preview) -->
246
- <div class="h-[80px] w-[80px] rounded-full bg-[#fecdd3] p-0 flex items-center justify-center border shadow-lg cursor-pointer" onclick="alert('Mic toggle clicked')">
247
- <svg width="37" height="37" viewBox="0 0 37 37" fill="none" xmlns="http://www.w3.org/2000/svg">
248
- <path d="M15.9872 29.6198V8.28342C15.9872 6.25781 15.132 5.44757 12.9713 5.44757H7.52469C5.36404 5.44757 4.50879 6.25781 4.50879 8.28342V29.6198C4.50879 31.6454 5.36404 32.4556 7.52469 32.4556H12.9713C15.132 32.4556 15.9872 31.6454 15.9872 29.6198Z" fill="#BE123C"/>
249
- <path opacity="0.4" d="M31.5175 29.6198V8.28342C31.5175 6.25781 30.6622 5.44757 28.5016 5.44757H23.055C20.9093 5.44757 20.0391 6.25781 20.0391 8.28342V29.6198C20.0391 31.6454 20.8943 32.4556 23.055 32.4556H28.5016C30.6622 32.4556 31.5175 31.6454 31.5175 29.6198Z" fill="#BE123C"/>
250
- </svg>
251
  </div>
252
 
253
- <!-- Mini Logo (Hidden by default as camActive is false) -->
254
- <div class="w-fit flex items-center justify-center hidden">
255
- <div class="hidden bg-green-200 bg-green-300 bg-green-400 bg-blue-200 bg-blue-300 bg-blue-400">color pre-loader</div>
256
- <div class="relative w-[80px] h-[80px]">
257
- {/* Animations and icon for mini logo would go here if isActive were true */}
258
- </div>
259
  </div>
260
 
261
- <!-- Cam Button (Showing Camera On, as camActive is false) -->
262
- <div class="h-[80px] w-[80px] rounded-full bg-[#E0ECFF] p-0 flex items-center justify-center border shadow-lg cursor-pointer" onclick="alert('Camera toggle clicked')">
263
- <svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg">
264
- <path opacity="0.4" d="M21.8118 5.52235H11.9265C6.29183 5.52235 4.10059 7.7136 4.10059 13.3482V26.5286C4.10059 30.318 6.16002 34.3545 11.9265 34.3545H21.8118C27.4464 34.3545 29.6376 32.1633 29.6376 26.5286V13.3482C29.6376 7.7136 27.4464 5.52235 21.8118 5.52235Z" fill="#2252A0"/>
265
- <path d="M19.3406 18.9169C21.0512 18.9169 22.438 17.5302 22.438 15.8195C22.438 14.1089 21.0512 12.7222 19.3406 12.7222C17.6299 12.7222 16.2432 14.1089 16.2432 15.8195C16.2432 17.5302 17.6299 18.9169 19.3406 18.9169Z" fill="#2252A0"/>
266
- <path d="M36.0629 10.3332C35.3874 9.98721 33.9705 9.5918 32.0429 10.9428L29.6045 12.6562C29.621 12.8869 29.6374 13.1011 29.6374 13.3482V26.5286C29.6374 26.7758 29.6045 26.9899 29.6045 27.2206L32.0429 28.934C33.0643 29.659 33.954 29.8896 34.6625 29.8896C35.2721 29.8896 35.7499 29.7249 36.0629 29.5601C36.7384 29.2141 37.8752 28.275 37.8752 25.919V13.9743C37.8752 11.6183 36.7384 10.6792 36.0629 10.3332Z" fill="#2252A0"/>
267
- </svg>
268
  </div>
269
  </div>
270
  </div>
271
  </div>
272
  </div>
273
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
274
  </body>
275
  </html>
 
3
  <head>
4
  <meta charset="UTF-8">
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
6
+ <title>هوشان - شبیه‌سازی دقیق حالت‌ها</title>
7
  <script src="https://cdn.tailwindcss.com"></script>
8
  <style>
9
  /* Content from src/app/globals.css */
 
 
 
10
  @custom-variant dark (&:is(.dark *));
11
 
12
  @theme inline {
13
  --color-background: var(--background);
14
  --color-foreground: var(--foreground);
15
+ /* ... (all your CSS variables from globals.css) ... */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
16
  --radius-lg: var(--radius);
 
17
  }
18
 
19
  :root {
20
  --radius: 0.625rem;
21
+ --background: oklch(1 0 0); /* Assuming white for bg-slate-50 base */
22
  --foreground: oklch(0.145 0 0);
23
  --card: oklch(1 0 0);
24
  --card-foreground: oklch(0.145 0 0);
25
+ --popover: oklch(1 0 0);
26
+ --popover-foreground: oklch(0.145 0 0);
27
  --primary: oklch(0.205 0 0);
28
  --primary-foreground: oklch(0.985 0 0);
29
  --secondary: oklch(0.97 0 0);
 
36
  --border: oklch(0.922 0 0);
37
  --input: oklch(0.922 0 0);
38
  --ring: oklch(0.708 0 0);
39
+ /* Chart and Sidebar colors can be included if needed elsewhere */
40
  }
41
 
42
  .dark {
43
  --background: oklch(0.145 0 0);
44
  --foreground: oklch(0.985 0 0);
45
+ /* ... (all your dark theme variables) ... */
 
 
 
 
46
  }
47
 
48
  @layer base {
 
54
  }
55
  }
56
 
57
+ .popover-trigger-container { position: relative; }
 
 
58
  .popover-content {
59
+ display: none; position: absolute; width: 18rem; z-index: 50;
60
+ border-radius: var(--radius-md, 0.5rem); border-width: 1px;
61
+ border-color: var(--border); padding: 1rem;
62
+ box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
 
 
 
 
 
63
  outline: none;
64
  }
65
  .popover-trigger-container:hover .popover-content,
66
+ .popover-trigger-container:focus-within .popover-content { display: block; }
 
 
67
 
 
68
  .notification-popover-content {
69
  background-color: #eff6ff; /* bg-blue-50 */
70
+ color: var(--foreground); font-size: 0.875rem; line-height: 1.5rem; direction: rtl;
71
+ right: calc(100% + 10px); top: 40px; left: auto;
 
 
 
 
 
 
 
72
  }
73
 
 
74
  .back-button {
75
+ display: flex; align-items: center; justify-content: center;
76
+ padding: 0.5rem; border-radius: var(--radius-lg, 0.5rem);
77
+ background-color: #e5e7eb; /* bg-gray-200 */
78
+ cursor: pointer;
79
+ }
80
+ .back-button svg { opacity: 0.5; }
81
+
82
+ @keyframes ping {
83
+ 75%, 100% { transform: scale(2); opacity: 0; }
84
+ }
85
+ .animate-ping { animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite; }
86
+
87
+ /* Ensure the central logo container allows for proper centering when active */
88
+ #large-logo-container.flex {
89
  display: flex;
90
  align-items: center;
91
  justify-content: center;
92
+ width: 100%;
93
+ height: 100%; /* Or specific height if parent isn't full */
94
+ position: absolute; /* To overlay on video if needed, or just center */
95
+ top: 0; left: 0;
96
  }
97
+ #small-logo-container.flex {
98
+ display: flex;
99
+ align-items: center;
100
+ justify-content: center;
101
  }
102
 
103
+ /* Footer controls styling */
104
+ .footer-controls {
105
+ width: 100%;
106
+ display: flex;
107
+ gap: 1rem; /* gap-4 */
108
+ position: absolute;
109
+ bottom: 0;
110
+ padding: 2rem 3rem; /* p-12 py-8 */
111
  }
112
+ .footer-controls.justify-between { justify-content: space-between; }
113
+ .footer-controls.justify-around { justify-content: space-around; align-items: center;}
114
+
115
+ .control-button {
116
+ height: 80px; width: 80px; border-radius: 9999px; /* rounded-full */
117
+ padding: 0; display: flex; align-items: center; justify-content: center;
118
+ border-width: 1px; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06); /* shadow-lg */
119
+ cursor: pointer;
120
  }
121
+ .mic-button-color { background-color: #fecdd3; }
122
+ .cam-button-color { background-color: #E0ECFF; }
123
 
124
  </style>
125
  <script>
 
128
  theme: {
129
  extend: {
130
  colors: {
131
+ border: 'var(--border)', input: 'var(--input)', ring: 'var(--ring)',
132
+ background: 'var(--background)', foreground: 'var(--foreground)',
 
 
 
133
  primary: { DEFAULT: 'var(--primary)', foreground: 'var(--primary-foreground)' },
134
  secondary: { DEFAULT: 'var(--secondary)', foreground: 'var(--secondary-foreground)' },
135
  destructive: 'var(--destructive)',
 
137
  accent: { DEFAULT: 'var(--accent)', foreground: 'var(--accent-foreground)' },
138
  popover: { DEFAULT: 'var(--popover)', foreground: 'var(--popover-foreground)' },
139
  card: { DEFAULT: 'var(--card)', foreground: 'var(--card-foreground)' },
 
140
  'green-200': '#bbf7d0', 'green-300': '#86efac', 'green-400': '#4ade80',
141
  'blue-200': '#bfdbfe', 'blue-300': '#93c5fd', 'blue-400': '#60a5fa',
 
 
 
142
  },
143
  borderRadius: {
144
+ lg: 'var(--radius-lg, 0.625rem)', md: 'var(--radius-md, 0.375rem)',
145
  sm: 'var(--radius-sm, 0.25rem)', xl: 'var(--radius-xl, 0.75rem)'
146
  },
147
+ inset: {
148
  '5px': '5px', '10px': '10px', '12px': '12px', '20px': '20px',
149
  '22px': '22px', '40px': '40px', '50px': '50px', '65px': '65px'
150
  }
 
153
  }
154
  </script>
155
  </head>
156
+ <body class="antialiased bg-slate-50"> <!-- Set base background as per your component -->
157
 
158
  <div class="w-full flex flex-col items-center justify-center min-h-[90dvh] md:min-h-screen">
159
  <div class="max-w-3xl w-full flex flex-col items-center justify-center h-full relative">
160
  <!-- Header -->
161
+ <div class="flex flex-row-reverse p-4 justify-between items-center w-full absolute top-0 left-0 z-10">
 
162
  <div class="popover-trigger-container">
163
  <button aria-label="Notifications">
164
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="opacity-50"><circle cx="12" cy="12" r="10"></circle><line x1="12" y1="8" x2="12" y2="12"></line><line x1="12" y1="16" x2="12.01" y2="16"></line></svg>
 
 
 
 
165
  </button>
166
  <div class="popover-content notification-popover-content">
167
  مدل‌های هوش مصنوعی می‌توانند اشتباه کنند، صحت اطلاعات مهم را بررسی کنید و از وارد کردن اطلاعات حساس بپرهیزید.
168
  </div>
169
  </div>
170
+ <div class="back-button" onclick="alert('Back clicked')">
171
+ <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m15 18-6-6 6-6"></path></svg>
 
 
 
 
172
  </div>
173
  </div>
174
 
175
+ <!-- MediaToggle Area -->
176
  <div class="w-full flex flex-col items-center justify-center h-[90dvh] bg-slate-50 top-0 left-0 relative">
177
+ <video id="video-feed" autoplay playsinline class="absolute top-0 left-0 w-full h-full object-cover scale-x-[-1] hidden"></video>
178
+
179
+ <!-- Large Central Logo Container -->
180
+ <div id="large-logo-container" class="hidden">
181
+ <!-- Content will be injected by JS -->
 
 
 
 
 
 
 
 
 
 
 
 
182
  </div>
183
 
184
+ <!-- Footer Controls -->
185
+ <div id="footer-controls" class="footer-controls justify-between">
186
+ <div id="mic-button" class="control-button mic-button-color">
187
+ <!-- Icon will be injected by JS -->
 
 
 
188
  </div>
189
 
190
+ <!-- Small Logo Container (between buttons) -->
191
+ <div id="small-logo-container" class="hidden">
192
+ <!-- Content will be injected by JS -->
 
 
 
193
  </div>
194
 
195
+ <div id="cam-button" class="control-button cam-button-color">
196
+ <!-- Icon will be injected by JS -->
 
 
 
 
 
197
  </div>
198
  </div>
199
  </div>
200
  </div>
201
  </div>
202
 
203
+ <!-- SVG Icon Definitions (from your icons.tsx) -->
204
+ <div style="display: none;">
205
+ <svg id="svg-pauseIcon" width="37" height="37" viewBox="0 0 37 37" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M15.9872 29.6198V8.28342C15.9872 6.25781 15.132 5.44757 12.9713 5.44757H7.52469C5.36404 5.44757 4.50879 6.25781 4.50879 8.28342V29.6198C4.50879 31.6454 5.36404 32.4556 7.52469 32.4556H12.9713C15.132 32.4556 15.9872 31.6454 15.9872 29.6198Z" fill="#BE123C"/><path opacity="0.4" d="M31.5175 29.6198V8.28342C31.5175 6.25781 30.6622 5.44757 28.5016 5.44757H23.055C20.9093 5.44757 20.0391 6.25781 20.0391 8.28342V29.6198C20.0391 31.6454 20.8943 32.4556 23.055 32.4556H28.5016C30.6622 32.4556 31.5175 31.6454 31.5175 29.6198Z" fill="#BE123C"/></svg>
206
+ <svg id="svg-microphoneIcon" width="69" height="68" viewBox="0 0 69 68" fill="none" xmlns="http://www.w3.org/2000/svg"><path opacity="0.4" d="M49.9479 27.1824C49.0803 27.1824 48.3907 27.872 48.3907 28.7396V32.2544C48.3907 40.1293 41.984 46.5361 34.109 46.5361C26.234 46.5361 19.8273 40.1293 19.8273 32.2544V28.7173C19.8273 27.8497 19.1377 27.1601 18.2701 27.1601C17.4025 27.1601 16.7129 27.8497 16.7129 28.7173V32.2321C16.7129 41.2861 23.6758 48.7384 32.5518 49.5393V54.2776C32.5518 55.1452 33.2414 55.8348 34.109 55.8348C34.9766 55.8348 35.6662 55.1452 35.6662 54.2776V49.5393C44.52 48.7607 51.5051 41.2861 51.5051 32.2321V28.7173C51.4829 27.872 50.7933 27.1824 49.9479 27.1824Z" fill="#BE123C"/><path d="M34.1099 11.3434C28.682 11.3434 24.2773 15.7481 24.2773 21.176V32.5658C24.2773 37.9938 28.682 42.3984 34.1099 42.3984C39.5379 42.3984 43.9425 37.9938 43.9425 32.5658V21.176C43.9425 15.7481 39.5379 11.3434 34.1099 11.3434ZM37.0241 26.8042C36.8684 27.3826 36.3567 27.7608 35.7784 27.7608C35.6671 27.7608 35.5559 27.7385 35.4447 27.7163C34.5771 27.4716 33.665 27.4716 32.7974 27.7163C32.0856 27.9165 31.396 27.4938 31.218 26.8042C31.0178 26.1146 31.4404 25.4027 32.1301 25.2247C33.4426 24.8688 34.8218 24.8688 36.1343 25.2247C36.8017 25.4027 37.2021 26.1146 37.0241 26.8042ZM38.2031 22.4885C38.0029 23.0224 37.5135 23.3339 36.9796 23.3339C36.8239 23.3339 36.6904 23.3116 36.5347 23.2671C34.9775 22.6887 33.2423 22.6887 31.6852 23.2671C31.0178 23.5118 30.2614 23.1559 30.0167 22.4885C29.772 21.8212 30.128 21.0648 30.7953 20.8423C32.9309 20.0637 35.289 20.0637 37.4245 20.8423C38.0919 21.087 38.4478 21.8212 38.2031 22.4885Z" fill="#BE123C"/></svg>
207
+ <svg id="svg-cameraIcon" width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg"><path opacity="0.4" d="M21.8118 5.52235H11.9265C6.29183 5.52235 4.10059 7.7136 4.10059 13.3482V26.5286C4.10059 30.318 6.16002 34.3545 11.9265 34.3545H21.8118C27.4464 34.3545 29.6376 32.1633 29.6376 26.5286V13.3482C29.6376 7.7136 27.4464 5.52235 21.8118 5.52235Z" fill="#2252A0"/><path d="M19.3406 18.9169C21.0512 18.9169 22.438 17.5302 22.438 15.8195C22.438 14.1089 21.0512 12.7222 19.3406 12.7222C17.6299 12.7222 16.2432 14.1089 16.2432 15.8195C16.2432 17.5302 17.6299 18.9169 19.3406 18.9169Z" fill="#2252A0"/><path d="M36.0629 10.3332C35.3874 9.98721 33.9705 9.5918 32.0429 10.9428L29.6045 12.6562C29.621 12.8869 29.6374 13.1011 29.6374 13.3482V26.5286C29.6374 26.7758 29.6045 26.9899 29.6045 27.2206L32.0429 28.934C33.0643 29.659 33.954 29.8896 34.6625 29.8896C35.2721 29.8896 35.7499 29.7249 36.0629 29.5601C36.7384 29.2141 37.8752 28.275 37.8752 25.919V13.9743C37.8752 11.6183 36.7384 10.6792 36.0629 10.3332Z" fill="#2252A0"/></svg>
208
+ <svg id="svg-stopCamIcon" width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg"><path opacity="0.4" d="M29.0785 10.8076L6.91966 32.9665C4.61316 31.5002 3.70703 28.8807 3.70703 26.36V13.18C3.70703 7.54555 5.89821 5.35437 11.5327 5.35437H21.4177C26.1789 5.35437 28.4854 6.9195 29.0785 10.8076Z" fill="#2252A0"/><path opacity="0.4" d="M29.2427 15.2394V26.36C29.2427 26.4918 29.2262 26.5907 29.2262 26.706C29.2262 26.8213 29.2097 26.9366 29.2097 27.052H29.2262C29.045 32.1757 26.8208 34.1856 21.417 34.1856H11.532C11.1202 34.1856 10.7412 34.1692 10.3623 34.1197L29.2427 15.2394Z" fill="#2252A0"/><path opacity="0.4" d="M29.21 27.052C29.21 26.9366 29.2264 26.8213 29.2264 26.706C29.2429 26.8213 29.2429 26.9366 29.2264 27.052H29.21Z" fill="#2252A0"/><path opacity="0.4" d="M29.2264 12.4716C29.2429 12.5869 29.2429 12.7187 29.2264 12.834C29.2264 12.7187 29.21 12.6034 29.21 12.488L29.2264 12.4716Z" fill="#2252A0"/><path d="M37.4804 13.8061V25.734C37.4804 28.0899 36.3436 29.029 35.6682 29.3749C35.3551 29.5397 34.8774 29.7209 34.2678 29.7209C33.5594 29.7209 32.6697 29.4903 31.6483 28.7654L29.2264 27.052H29.21C29.21 26.9366 29.2264 26.8213 29.2264 26.706C29.2264 26.5907 29.2429 26.4918 29.2429 26.36V15.2394L34.6302 9.85205C35.0751 9.885 35.421 10.0168 35.6682 10.1651C36.3436 10.5111 37.4804 11.4501 37.4804 13.8061Z" fill="#2252A0"/><path d="M35.8666 3.67393C35.3723 3.17968 34.565 3.17968 34.0708 3.67393L3.6744 34.0868C3.18015 34.581 3.18015 35.3883 3.6744 35.8826C3.92152 36.1132 4.23455 36.245 4.56405 36.245C4.89355 36.245 5.20657 36.1132 5.4537 35.8661L35.8666 5.45323C36.3773 4.95898 36.3773 4.16818 35.8666 3.67393Z" fill="#2252A0"/></svg>
209
+ <svg id="svg-humanIcon" width="70" height="70" viewBox="0 0 88 89" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M75.1481 81.6361H12.9259C9.66667 81.6361 7 78.9721 7 75.7161V58.5112C7 57.5862 7 57.1052 7.44444 56.2172C8.85185 52.9612 13 50.2232 19.4815 47.8922C24.1111 56.6982 33.3704 62.6921 44 62.6921C54.6296 62.6921 63.9259 56.6982 68.5185 47.8922C75 50.1862 79.1852 52.9982 80.5556 56.2172C81 56.6612 81 57.6232 81 58.5112V75.7161C81 78.9721 78.3333 81.6361 75.0741 81.6361H75.1481Z" stroke="#FCFCFC" stroke-width="6.42146" stroke-linecap="round" stroke-linejoin="round"/><path d="M44.0371 50.1862C33.8519 50.1862 25.5186 41.8612 25.5186 31.6863V26.1363C25.5186 15.9613 33.8519 7.63635 44.0371 7.63635C54.2223 7.63635 62.5556 15.9613 62.5556 26.1363V31.6863C62.5556 41.8612 54.2223 50.1862 44.0371 50.1862Z" stroke="#FCFCFC" stroke-width="6.42146" stroke-linecap="round" stroke-linejoin="round"/></svg>
210
+ <!-- AI Icon can be here too if needed for other states -->
211
+ </div>
212
+
213
+ <script>
214
+ const videoFeed = document.getElementById('video-feed');
215
+ const largeLogoContainer = document.getElementById('large-logo-container');
216
+ const smallLogoContainer = document.getElementById('small-logo-container');
217
+ const micButton = document.getElementById('mic-button');
218
+ const camButton = document.getElementById('cam-button');
219
+ const footerControls = document.getElementById('footer-controls');
220
+
221
+ // Clone SVG nodes to avoid moving them from the DOM
222
+ const pauseIconSVG = document.getElementById('svg-pauseIcon').cloneNode(true);
223
+ const microphoneIconSVG = document.getElementById('svg-microphoneIcon').cloneNode(true);
224
+ const cameraIconSVG = document.getElementById('svg-cameraIcon').cloneNode(true);
225
+ const stopCamIconSVG = document.getElementById('svg-stopCamIcon').cloneNode(true);
226
+
227
+ let isMicActive = false;
228
+ let isCamActive = false;
229
+ // let isAiResponding = false; // Not used in this specific 3-state visual logic
230
+
231
+ function createLogoHTML(isMini, isHumanActive, isAiActive, colorBase) {
232
+ if (!isHumanActive && !isAiActive) return ''; // No logo if not active
233
+
234
+ const size = isMini ? 80 : 200;
235
+ const iconSize = isMini ? 35 : 70;
236
+ const insetBase = isMini ? { ping: 10, outer: 0, mid: 5, inner: 12, icon: 22 }
237
+ : { ping: 40, outer: 0, mid: 20, inner: 50, icon: 65 };
238
+
239
+ const bgColorBase = isHumanActive ? 'blue' : (isAiActive ? 'green' : 'gray'); // fallback gray
240
+ const iconSVG = isHumanActive ? document.getElementById('svg-humanIcon').cloneNode(true) :
241
+ (isAiActive ? /* AI icon if you had one */ document.getElementById('svg-humanIcon').cloneNode(true) : '');
242
+ if(iconSVG && iconSVG.setAttribute) {
243
+ iconSVG.setAttribute('width', iconSize);
244
+ iconSVG.setAttribute('height', iconSize);
245
+ }
246
+
247
+
248
+ return `
249
+ <div class="hidden bg-green-200 bg-green-300 bg-green-400 bg-blue-200 bg-blue-300 bg-blue-400"></div>
250
+ <div class="relative" style="width: ${size}px; height: ${size}px;">
251
+ <div class="absolute rounded-full opacity-50 animate-ping bg-${bgColorBase}-200" style="inset: ${insetBase.ping}px;"></div>
252
+ <div class="absolute rounded-full opacity-50 bg-${bgColorBase}-200" style="inset: ${insetBase.outer}px;"></div>
253
+ <div class="absolute rounded-full opacity-50 bg-${bgColorBase}-300" style="inset: ${insetBase.mid}px;"></div>
254
+ <div class="absolute rounded-full opacity-50 bg-${bgColorBase}-400" style="inset: ${insetBase.inner}px;"></div>
255
+ <div class="z-10 absolute" style="inset: ${insetBase.icon}px;">
256
+ ${iconSVG ? iconSVG.outerHTML : ''}
257
+ </div>
258
+ </div>
259
+ `;
260
+ }
261
+
262
+
263
+ function updateUI() {
264
+ // Video Feed
265
+ videoFeed.classList.toggle('hidden', !isCamActive);
266
+
267
+ // Large Logo
268
+ if (!isCamActive && isMicActive) {
269
+ largeLogoContainer.innerHTML = createLogoHTML(false, true, false);
270
+ largeLogoContainer.classList.remove('hidden');
271
+ largeLogoContainer.classList.add('flex');
272
+ } else {
273
+ largeLogoContainer.innerHTML = '';
274
+ largeLogoContainer.classList.add('hidden');
275
+ largeLogoContainer.classList.remove('flex');
276
+ }
277
+
278
+ // Small Logo
279
+ if (isCamActive) {
280
+ smallLogoContainer.innerHTML = createLogoHTML(true, true, false); // Assuming human icon when cam is active
281
+ smallLogoContainer.classList.remove('hidden');
282
+ smallLogoContainer.classList.add('flex');
283
+ footerControls.classList.remove('justify-between');
284
+ footerControls.classList.add('justify-around');
285
+ } else {
286
+ smallLogoContainer.innerHTML = '';
287
+ smallLogoContainer.classList.add('hidden');
288
+ smallLogoContainer.classList.remove('flex');
289
+ footerControls.classList.remove('justify-around');
290
+ footerControls.classList.add('justify-between');
291
+ }
292
+
293
+ // Mic Button Icon
294
+ micButton.innerHTML = ''; // Clear previous
295
+ micButton.appendChild(isMicActive ? pauseIconSVG.cloneNode(true) : microphoneIconSVG.cloneNode(true));
296
+
297
+ // Cam Button Icon
298
+ camButton.innerHTML = ''; // Clear previous
299
+ camButton.appendChild(isCamActive ? stopCamIconSVG.cloneNode(true) : cameraIconSVG.cloneNode(true));
300
+ }
301
+
302
+ micButton.addEventListener('click', () => {
303
+ isMicActive = !isMicActive;
304
+ updateUI();
305
+ });
306
+
307
+ camButton.addEventListener('click', () => {
308
+ isCamActive = !isCamActive;
309
+ updateUI();
310
+ });
311
+
312
+ // Initial UI state
313
+ updateUI();
314
+ </script>
315
  </body>
316
  </html>