S-Dreamer commited on
Commit
96644ca
·
verified ·
1 Parent(s): 6dd39e6

there is no way to close the welcome box - Follow Up Deployment

Browse files
Files changed (1) hide show
  1. index.html +4 -4
index.html CHANGED
@@ -291,7 +291,7 @@ db = SQLAlchemy(app)
291
  </div>
292
 
293
  <!-- Welcome Modal -->
294
- <div class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50">
295
  <div class="bg-white rounded-lg shadow-xl max-w-2xl w-full">
296
  <div class="p-6">
297
  <div class="flex justify-between items-start">
@@ -299,7 +299,7 @@ db = SQLAlchemy(app)
299
  <h2 class="text-2xl font-bold text-indigo-600 mb-2">Welcome to IndieCoder</h2>
300
  <p class="text-gray-600 mb-4">Your privacy-first, self-hostable coding platform</p>
301
  </div>
302
- <button class="text-gray-400 hover:text-gray-500">
303
  <i class="fas fa-times"></i>
304
  </button>
305
  </div>
@@ -361,8 +361,8 @@ db = SQLAlchemy(app)
361
  });
362
 
363
  // Close welcome modal
364
- document.querySelector('.modal-close').addEventListener('click', function() {
365
- document.querySelector('.modal').classList.add('hidden');
366
  });
367
 
368
  // File tree navigation
 
291
  </div>
292
 
293
  <!-- Welcome Modal -->
294
+ <div id="welcome-modal" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50">
295
  <div class="bg-white rounded-lg shadow-xl max-w-2xl w-full">
296
  <div class="p-6">
297
  <div class="flex justify-between items-start">
 
299
  <h2 class="text-2xl font-bold text-indigo-600 mb-2">Welcome to IndieCoder</h2>
300
  <p class="text-gray-600 mb-4">Your privacy-first, self-hostable coding platform</p>
301
  </div>
302
+ <button id="close-modal" class="text-gray-400 hover:text-gray-500">
303
  <i class="fas fa-times"></i>
304
  </button>
305
  </div>
 
361
  });
362
 
363
  // Close welcome modal
364
+ document.getElementById('close-modal').addEventListener('click', function() {
365
+ document.getElementById('welcome-modal').classList.add('hidden');
366
  });
367
 
368
  // File tree navigation