diff --git a/index.html b/index.html index ddd0333..52ba0f4 100644 --- a/index.html +++ b/index.html @@ -19,6 +19,38 @@ body { background: linear-gradient(to right, #32cd32 50%, #ff6347 50%); } + .dark-mode body { + background: linear-gradient(to right, #000000 50%, #333333 50%); + color: white; + } + + .translate-x-full { + transform: translateX(100%); + } +.dark-mode .movie-tile { + background: #444; + color: white; +} + +.dark-mode .search-input { + background-color: #333; + color: white; +} + +.dark-mode .video-modal-content { + background-color: rgba(0, 0, 0, 0.8); + background: 0; + + } + +.dark-mode .stream-btn { + background-color: #555; +} + +.dark-mode .stream-btn:hover { + background-color: #666; +} + .video-modal { display: none; /* Hidden by default */ position: fixed; /* Stay in place */ @@ -286,7 +318,7 @@ } 50% { transform: translateY(-10px) rotate(360deg); - filter: drop-shadow(0 5px 5px rgba(0,0,0,0.4)); /* Add a shadow to enhance the effect */ + filter: drop-shadow(0 5px 5px rgba(0, 0, 0, 0.4)); /* Add a shadow to enhance the effect */ } } @@ -295,7 +327,8 @@
-

Watermelon Movies 🍉

+

Watermelon Movies 🍉

+

🤘.The Jews took hollywood...we're stealing it back

@@ -318,14 +351,22 @@
× -
- +
+ +
+
+ +
- - -
@@ -506,10 +547,27 @@ function displayMovies(movies, containerId) { } + // JavaScript to handle dark mode switch + const toggleSwitch = document.getElementById('dark-mode-toggle'); + const bodyElement = document.body; + const dotElement = document.querySelector('.dot'); + const videoModalContent = document.querySelector('.video-modal-content'); - - - + toggleSwitch.addEventListener('change', () => { + if (toggleSwitch.checked) { + bodyElement.classList.add('dark-mode'); + dotElement.classList.add('translate-x-full'); + dotElement.classList.add('bg-gray-800'); // Optional: change dot color in dark mode + videoModalContent.style.backgroundColor = 'rgba(0, 0, 0, 0.8)'; // Transparent modal box + document.querySelector('.video-modal').style.backgroundColor = 'rgba(0, 0, 0, 0.9)'; // Darken background + } else { + bodyElement.classList.remove('dark-mode'); + dotElement.classList.remove('translate-x-full'); + dotElement.classList.remove('bg-gray-800'); // Optional: revert dot color + videoModalContent.style.backgroundColor = 'rgba(255, 255, 255, 1)'; // Revert modal box color + document.querySelector('.video-modal').style.backgroundColor = 'rgba(0, 0, 0, 0.4)'; // Revert background color + } + }); + - \ No newline at end of file