Jaouadart commited on
Commit
a5b837a
·
verified ·
1 Parent(s): d6463a8

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +0 -73
index.html CHANGED
@@ -522,39 +522,6 @@
522
  .color-card:hover {
523
  transform: scale(1.05);
524
  }
525
-
526
- /* Color Picker Pop-up */
527
- .color-picker {
528
- position: fixed;
529
- top: 50%;
530
- left: 50%;
531
- transform: translate(-50%, -50%);
532
- background-color: white;
533
- padding: 1.5rem;
534
- border-radius: 1rem;
535
- box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
536
- z-index: 1002;
537
- display: none;
538
- flex-wrap: wrap;
539
- gap: 1rem;
540
- opacity: 0;
541
- transition: opacity 0.3s ease;
542
- }
543
- .color-picker.show {
544
- opacity: 1;
545
- }
546
- .color-swatch {
547
- width: 40px;
548
- height: 40px;
549
- border-radius: 50%;
550
- cursor: pointer;
551
- transition: transform 0.2s;
552
- border: 2px solid transparent;
553
- }
554
- .color-swatch:hover {
555
- transform: scale(1.1);
556
- border: 2px solid #555;
557
- }
558
  </style>
559
  </head>
560
  <body>
@@ -564,8 +531,6 @@
564
  <div id="message-content"></div>
565
  </div>
566
 
567
- <div id="color-picker" class="color-picker"></div>
568
-
569
  <div id="sidebar" class="sidebar">
570
  <a href="javascript:void(0)" class="closebtn" onclick="closeSidebar()">&times;</a>
571
  <ul class="sidebar-links">
@@ -1036,39 +1001,6 @@
1036
  renderPage();
1037
  }
1038
 
1039
- // Color Picker functions
1040
- function toggleColorPicker() {
1041
- const picker = document.getElementById('color-picker');
1042
- if (picker.classList.contains('show')) {
1043
- picker.classList.remove('show');
1044
- setTimeout(() => {
1045
- picker.style.display = 'none';
1046
- }, 300);
1047
- } else {
1048
- picker.style.display = 'flex';
1049
- setTimeout(() => {
1050
- picker.classList.add('show');
1051
- }, 10);
1052
- renderColorPicker();
1053
- }
1054
- }
1055
-
1056
- function renderColorPicker() {
1057
- const picker = document.getElementById('color-picker');
1058
- picker.innerHTML = '';
1059
- for (const theme in themes) {
1060
- const swatch = document.createElement('div');
1061
- swatch.className = 'color-swatch';
1062
- swatch.style.backgroundColor = themes[theme].primary;
1063
- swatch.dataset.theme = theme;
1064
- swatch.onclick = () => {
1065
- applyTheme(theme);
1066
- toggleColorPicker();
1067
- };
1068
- picker.appendChild(swatch);
1069
- }
1070
- }
1071
-
1072
  // Sidebar functions
1073
  function openSidebar() {
1074
  document.getElementById("sidebar").style.width = "250px";
@@ -1141,11 +1073,6 @@
1141
  </div>
1142
  <div class="header-title">نجاح - Amurs</div>
1143
  <div class="header-item flex items-center justify-end space-x-2">
1144
- <button class="text-white" onclick="toggleColorPicker()">
1145
- <svg xmlns="http://www.w3.org/2000/svg" class="h-8 w-8 text-white" viewBox="0 0 24 24" fill="currentColor">
1146
- <path d="M12 3c-4.42 0-8 3.58-8 8s3.58 8 8 8 8-3.58 8-8-3.58-8-8-8zm0 14c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 2.69 6 6-2.69 6-6 6zM8 12c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm4-4h8v4h-8z"/>
1147
- </svg>
1148
- </button>
1149
  <button class="text-white" onclick="goBack()">
1150
  <svg xmlns="http://www.w3.org/2000/svg" class="h-8 w-8 text-white" viewBox="0 0 24 24" fill="currentColor">
1151
  <path d="M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"/>
 
522
  .color-card:hover {
523
  transform: scale(1.05);
524
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
525
  </style>
526
  </head>
527
  <body>
 
531
  <div id="message-content"></div>
532
  </div>
533
 
 
 
534
  <div id="sidebar" class="sidebar">
535
  <a href="javascript:void(0)" class="closebtn" onclick="closeSidebar()">&times;</a>
536
  <ul class="sidebar-links">
 
1001
  renderPage();
1002
  }
1003
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1004
  // Sidebar functions
1005
  function openSidebar() {
1006
  document.getElementById("sidebar").style.width = "250px";
 
1073
  </div>
1074
  <div class="header-title">نجاح - Amurs</div>
1075
  <div class="header-item flex items-center justify-end space-x-2">
 
 
 
 
 
1076
  <button class="text-white" onclick="goBack()">
1077
  <svg xmlns="http://www.w3.org/2000/svg" class="h-8 w-8 text-white" viewBox="0 0 24 24" fill="currentColor">
1078
  <path d="M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"/>