Toyshot commited on
Commit
523356e
·
verified ·
1 Parent(s): 78f4a8d

Ok better but look the buttons should be bottom corner left in the prompt input bar the plus the funnel and the clock the send button should be right up corner and please fix the 3 lines button IT SHOULD BE AN ICON LIKE THE CHATS ICON OR SOMETHING IN LINE WITH THE SYNTRA TEXT PLEASE MAN FIX THIS ASAP and it should fully open and close the input promopt bar

Browse files
Files changed (1) hide show
  1. index.html +20 -20
index.html CHANGED
@@ -57,7 +57,7 @@
57
  <!-- Left Sidebar -->
58
  <div id="sidebar" class="w-[240px] h-full bg-[#171617] flex flex-col border-r border-dark-700 transition-all duration-300 ease-in-out">
59
  <button id="sidebar-toggle" class="ml-2 w-6 h-6 bg-dark-700 rounded-full flex items-center justify-center border border-dark-600 shadow-lg hover:bg-dark-600 transition-colors">
60
- <i data-feather="menu" class="w-4 h-4 stroke-gray-400"></i>
61
  </button>
62
  <!-- Logo -->
63
  <div class="flex items-center p-4">
@@ -141,27 +141,28 @@
141
  <div class="bg-dark-700 rounded-xl p-1.5 shadow-lg">
142
  <div class="relative">
143
  <p class="text-sm text-gray-400 px-4 pt-3 pb-1">How can I help you today?</p>
144
- <div class="flex px-4 pb-3">
145
- <button class="p-1 text-gray-400 hover:text-gray-300 mr-2">
146
- <i data-feather="plus" class="w-4 h-4 stroke-current"></i>
147
  </button>
148
- <button class="p-1 text-gray-400 hover:text-gray-300 mr-2">
149
- <i data-feather="filter" class="w-4 h-4 stroke-current"></i>
150
  </button>
151
- <button class="p-1 text-gray-400 hover:text-gray-300">
152
- <i data-feather="clock" class="w-4 h-4 stroke-current"></i>
153
  </button>
154
  </div>
155
- <input
 
156
  type="text"
157
  placeholder=""
158
- class="w-full bg-dark-700 px-4 pb-3 rounded-xl focus:outline-none"
159
- >
160
- <div class="absolute right-2 bottom-3 flex items-center space-x-2">
161
  <button class="w-8 h-8 rounded-lg bg-accent-500 flex items-center justify-center hover:bg-accent-600">
162
  <i data-feather="arrow-up" class="w-4 h-4 stroke-white"></i>
163
  </button>
164
- <div class="flex items-center px-2.5 py-1 rounded-lg hover:bg-dark-600">
165
  <span class="text-sm text-gray-400">Sonnet 4.5</span>
166
  <i data-feather="chevron-down" class="w-4 h-4 stroke-gray-400 ml-1"></i>
167
  </div>
@@ -179,19 +180,18 @@
179
  const sidebar = document.getElementById('sidebar');
180
  const sidebarToggle = document.getElementById('sidebar-toggle');
181
  const chevron = sidebarToggle.querySelector('i');
182
-
183
  sidebarToggle.addEventListener('click', () => {
184
- sidebar.classList.toggle('w-[280px]');
185
  sidebar.classList.toggle('w-0');
186
  sidebar.classList.toggle('overflow-hidden');
187
 
188
- // Rotate chevron icon
189
  if (sidebar.classList.contains('w-0')) {
190
- chevron.setAttribute('data-feather', 'menu');
191
  } else {
192
- chevron.setAttribute('data-feather', 'menu');
193
- }
194
- feather.replace();
195
  });
196
 
197
  // Simple animation for the greeting star
 
57
  <!-- Left Sidebar -->
58
  <div id="sidebar" class="w-[240px] h-full bg-[#171617] flex flex-col border-r border-dark-700 transition-all duration-300 ease-in-out">
59
  <button id="sidebar-toggle" class="ml-2 w-6 h-6 bg-dark-700 rounded-full flex items-center justify-center border border-dark-600 shadow-lg hover:bg-dark-600 transition-colors">
60
+ <i data-feather="align-left" class="w-4 h-4 stroke-gray-400"></i>
61
  </button>
62
  <!-- Logo -->
63
  <div class="flex items-center p-4">
 
141
  <div class="bg-dark-700 rounded-xl p-1.5 shadow-lg">
142
  <div class="relative">
143
  <p class="text-sm text-gray-400 px-4 pt-3 pb-1">How can I help you today?</p>
144
+ <div class="absolute left-4 bottom-3 flex items-center space-x-3">
145
+ <button class="w-5 h-5 text-gray-400 hover:text-gray-300">
146
+ <i data-feather="plus" class="w-full h-full stroke-current"></i>
147
  </button>
148
+ <button class="w-5 h-5 text-gray-400 hover:text-gray-300">
149
+ <i data-feather="filter" class="w-full h-full stroke-current"></i>
150
  </button>
151
+ <button class="w-5 h-5 text-gray-400 hover:text-gray-300">
152
+ <i data-feather="clock" class="w-full h-full stroke-current"></i>
153
  </button>
154
  </div>
155
+ <
156
+ input
157
  type="text"
158
  placeholder=""
159
+ class="w-full bg-dark-700 px-4 pt-3 pb-10 rounded-xl focus:outline-none"
160
+ >
161
+ <div class="absolute right-2 top-3 flex items-center space-x-2">
162
  <button class="w-8 h-8 rounded-lg bg-accent-500 flex items-center justify-center hover:bg-accent-600">
163
  <i data-feather="arrow-up" class="w-4 h-4 stroke-white"></i>
164
  </button>
165
+ <div class="flex items-center px-2.5 py-1 rounded-lg hover:bg-dark-600">
166
  <span class="text-sm text-gray-400">Sonnet 4.5</span>
167
  <i data-feather="chevron-down" class="w-4 h-4 stroke-gray-400 ml-1"></i>
168
  </div>
 
180
  const sidebar = document.getElementById('sidebar');
181
  const sidebarToggle = document.getElementById('sidebar-toggle');
182
  const chevron = sidebarToggle.querySelector('i');
 
183
  sidebarToggle.addEventListener('click', () => {
184
+ sidebar.classList.toggle('w-[240px]');
185
  sidebar.classList.toggle('w-0');
186
  sidebar.classList.toggle('overflow-hidden');
187
 
188
+ // Change icon based on state
189
  if (sidebar.classList.contains('w-0')) {
190
+ chevron.setAttribute('data-feather', 'align-left');
191
  } else {
192
+ chevron.setAttribute('data-feather', 'align-right');
193
+ }
194
+ feather.replace();
195
  });
196
 
197
  // Simple animation for the greeting star