From 592fd04f1f7160e7209bafd2364a5f68f2d4da19 Mon Sep 17 00:00:00 2001
From: Gobind Kumar <93241765+Gobind147@users.noreply.github.com>
Date: Sat, 7 Sep 2024 02:25:21 +0530
Subject: [PATCH 1/6] Create index.html
---
MovieBase/index.html | 47 ++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 47 insertions(+)
create mode 100644 MovieBase/index.html
diff --git a/MovieBase/index.html b/MovieBase/index.html
new file mode 100644
index 00000000..c3beed9d
--- /dev/null
+++ b/MovieBase/index.html
@@ -0,0 +1,47 @@
+
+
+
+
+
MovieBase
+
+
+
+
+ An interactive movie discovery application that allows users to search for movies, filter results by genre, and sort movies by rating or votes using the OMDb API.
+
+
+
+## Demo
+[moviebase.webm](https://github.com/user-attachments/assets/003e6a54-ad0a-4c96-afa5-34389aa08877)
+
+
+
+## π
+
${movie.Title} (${movie.Year})
+
+
Rating: ${movie.imdbRating}
+
Total Votes: ${movie.imdbVotes}
+
Genre: ${movie.Genre}
+
Plot: ${movie.Plot}
+
Cast: ${movie.Actors}
+
+
+ `;
+ movieList.appendChild(movieItem);
+ });
+
+ // Lazy load the images
+ const lazyImages = document.querySelectorAll('img.lazy');
+ lazyImages.forEach(image => loadImage(image));
+}
+
+function loadImage(image) {
+ const observer = new IntersectionObserver((entries, observer) => {
+ entries.forEach(entry => {
+ if (entry.isIntersecting) {
+ image.src = image.dataset.src;
+ image.classList.remove('lazy');
+ observer.unobserve(image);
+ }
+ });
+ });
+ observer.observe(image);
+}
+
+function updatePaginationButtons() {
+ document.getElementById('prev-button').disabled = currentPage === 1;
+ document.getElementById('next-button').disabled = currentPage * 10 >= filteredMovies.length;
+}
diff --git a/MovieBase/style.css b/MovieBase/style.css
new file mode 100644
index 00000000..91b2c485
--- /dev/null
+++ b/MovieBase/style.css
@@ -0,0 +1,134 @@
+body {
+ font-family: Arial, sans-serif;
+ background-color: #f4f4f4;
+ margin: 0;
+ padding: 0;
+}
+
+.container {
+ width: 60%;
+ margin: auto;
+ padding: 20px;
+}
+
+h1 {
+ text-align: center;
+}
+
+.search-container {
+ display: flex;
+ justify-content: center;
+ margin-bottom: 20px;
+}
+
+.filter-sort-container {
+ display: flex;
+ justify-content: space-between;
+ margin-bottom: 20px;
+}
+
+#movie-search {
+ width: 70%;
+ padding: 10px;
+ border-radius: 5px;
+ border: 1px solid #ccc;
+ margin-right: 10px;
+}
+
+#search-button {
+ padding: 10px 20px;
+ background-color: #007BFF;
+ color: white;
+ border: none;
+ border-radius: 5px;
+ cursor: pointer;
+}
+
+#genre-filter, #sort-options {
+ padding: 10px;
+ border-radius: 5px;
+ border: 1px solid #ccc;
+}
+
+#movie-details {
+ display: flex;
+ gap: 20px;
+}
+
+#poster {
+ width: 200px;
+ height: 300px;
+ object-fit: cover;
+ display: none;
+}
+
+.movie-info {
+ max-width: 500px;
+}
+
+p {
+ margin: 5px 0;
+}
+
+.pagination {
+ display: flex;
+ justify-content: center;
+ margin-top: 20px;
+}
+
+button {
+ padding: 10px 20px;
+ background-color: #007BFF;
+ color: white;
+ border: none;
+ border-radius: 5px;
+ cursor: pointer;
+ margin: 0 10px;
+}
+
+button:disabled {
+ background-color: #cccccc;
+ cursor: not-allowed;
+}
+
+.movie-item {
+ display: flex;
+ align-items: flex-start;
+ margin-bottom: 20px;
+ padding: 20px;
+ border: 1px solid #ccc;
+ border-radius: 5px;
+ background-color: #fff;
+ width: 100%;
+}
+
+.movie-item img {
+ width: 150px;
+ margin-right: 20px;
+}
+
+.movie-content {
+ display: flex;
+ flex-direction: column;
+}
+
+.movie-title {
+ font-size: 1.5em;
+ margin-bottom: 10px;
+}
+
+.movie-details {
+ display: flex;
+ flex-direction: column;
+ align-items: flex-start;
+}
+
+.movie-details p {
+ margin: 5px 0;
+ font-size: 0.9em;
+}
+
+.movie-item h3 {
+ margin: 0 0 10px 0;
+ font-size: 1.2em;
+}
From 63ecbde93ddf2c77c3e276cd7a543825305180ca Mon Sep 17 00:00:00 2001
From: Gobind Kumar <93241765+Gobind147@users.noreply.github.com>
Date: Sat, 7 Sep 2024 02:28:38 +0530
Subject: [PATCH 3/6] Create popup.html
---
DarkMode Chrome Extension/popup.html | 14 ++++++++++++++
1 file changed, 14 insertions(+)
create mode 100644 DarkMode Chrome Extension/popup.html
diff --git a/DarkMode Chrome Extension/popup.html b/DarkMode Chrome Extension/popup.html
new file mode 100644
index 00000000..cec654f5
--- /dev/null
+++ b/DarkMode Chrome Extension/popup.html
@@ -0,0 +1,14 @@
+
+
+
+