From c85e335eccc411596ddaba24be76780755a0c44e Mon Sep 17 00:00:00 2001 From: Neti Date: Wed, 20 May 2026 21:24:53 +0530 Subject: [PATCH 1/7] Practise navbar changes --- index.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index da78416..74a3e4b 100644 --- a/index.html +++ b/index.html @@ -36,7 +36,7 @@

Wel @@ -137,7 +137,7 @@

StudyPlan

a 45,45 0 1,0 -90,0 "> -
25:00
+
24:00
From ef0329df1242b472648d3a21a70e3f0d70b19f1a Mon Sep 17 00:00:00 2001 From: Neti Date: Wed, 20 May 2026 22:23:13 +0530 Subject: [PATCH 2/7] Improve support page navigation and theme consistency --- support-page/support.css | 7 ++++++ support-page/support.js | 49 +++++++++++++++++++++++++++++++++++++++- 2 files changed, 55 insertions(+), 1 deletion(-) diff --git a/support-page/support.css b/support-page/support.css index 638d7c1..4fffeb0 100644 --- a/support-page/support.css +++ b/support-page/support.css @@ -136,6 +136,13 @@ body { padding-left: 18px; } +.active-card { + border: 2px solid var(--color-text-primary); + box-shadow: var(--shadow-md); + transform: scale(1.02); + transition: all 0.3s ease; +} + /* FOOTER */ .site-footer { display: flex; diff --git a/support-page/support.js b/support-page/support.js index 594afac..170ef7a 100644 --- a/support-page/support.js +++ b/support-page/support.js @@ -1 +1,48 @@ -console.log("Support page loaded"); \ No newline at end of file +console.log("Support page loaded"); + +const darkMode = localStorage.getItem('studyplan_dark_mode'); + +if (darkMode === 'false') { + + document.documentElement.style.setProperty('--color-background-primary', '#ffffff'); + document.documentElement.style.setProperty('--color-background-secondary', '#f7f7f5'); + document.documentElement.style.setProperty('--color-background-tertiary', '#efefec'); + + document.documentElement.style.setProperty('--color-text-primary', '#1a1a18'); + document.documentElement.style.setProperty('--color-text-secondary', '#6b6b66'); + +} + + +const links = document.querySelectorAll('.footer-links a'); + +links.forEach(link => { + link.addEventListener('click', () => { + + document.querySelectorAll('.card').forEach(card => { + card.classList.remove('active-card'); + }); + + const targetId = link.getAttribute('href').split('#')[1]; + const targetSection = document.getElementById(targetId); + + if (targetSection) { + targetSection.classList.add('active-card'); + } + }); +}); + + +window.addEventListener('load', () => { + + const currentHash = window.location.hash.substring(1); + + if (currentHash) { + + const targetSection = document.getElementById(currentHash); + + if (targetSection) { + targetSection.classList.add('active-card'); + } + } +}); \ No newline at end of file From 90d59241c588d01c6005ad68be87b0e764a355bd Mon Sep 17 00:00:00 2001 From: Neti Date: Thu, 21 May 2026 21:21:08 +0530 Subject: [PATCH 3/7] Just Changed --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index 74a3e4b..80c5039 100644 --- a/index.html +++ b/index.html @@ -36,7 +36,7 @@

Wel From 53ca1f4e913d13e2083ca5cffedaebe72f429759 Mon Sep 17 00:00:00 2001 From: Neti Date: Wed, 27 May 2026 22:08:36 +0530 Subject: [PATCH 5/7] Fix navbar task button navigation workflow --- index.html | 2 +- js/app.js | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index 12e3a7d..47e38fd 100644 --- a/index.html +++ b/index.html @@ -41,7 +41,7 @@

StudyPlan

diff --git a/js/app.js b/js/app.js index 9bfd993..011da20 100644 --- a/js/app.js +++ b/js/app.js @@ -111,6 +111,9 @@ function openNewSubjectModal() { newSubjectName.focus(); } + + + function renderSidebarSubjects() { const listEl = document.getElementById('subjects-sidebar-list'); if (!listEl) return; @@ -918,6 +921,15 @@ document.addEventListener('DOMContentLoaded', () => { const archivedTasksBtn = document.getElementById('archived-tasks-btn'); const focusModeBtn = document.getElementById('focus-mode-btn'); + + const navTasks = document.getElementById('nav-tasks'); + +navTasks.addEventListener('click', (e) => { + e.preventDefault(); + allTasksBtn.click(); +}); + + function updateSidebarActive(id) { document.querySelectorAll('.sidebar .nav-item').forEach(el => el.classList.remove('active')); document.getElementById(id).classList.add('active'); From 597928d59d32a62414feb8623a9dab31cc876908 Mon Sep 17 00:00:00 2001 From: Neti Date: Thu, 28 May 2026 22:23:00 +0530 Subject: [PATCH 6/7] Fix calendar and dasdboard buttons --- index.html | 4 ++-- js/app.js | 15 +++++++++++++++ 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index 47e38fd..d86d3a5 100644 --- a/index.html +++ b/index.html @@ -40,9 +40,9 @@

StudyPlan

diff --git a/js/app.js b/js/app.js index 011da20..8ef28f4 100644 --- a/js/app.js +++ b/js/app.js @@ -944,6 +944,21 @@ navTasks.addEventListener('click', (e) => { renderTasks(); }); + const navCalendar = document.getElementById('nav-calendar'); + + navCalendar.addEventListener('click', (e) => { + e.preventDefault(); + calendarBtn.click(); +}); + + +const navDashboard = document.getElementById('nav-dashboard'); + +navDashboard.addEventListener('click', (e) => { + e.preventDefault(); + calendarBtn.click(); +}); + allTasksBtn.addEventListener('click', () => { currentView = 'all-tasks'; document.querySelector('.cal-section').classList.add('hidden'); From d0aa02ed96e5a43e39f0e504f657655cff3badc9 Mon Sep 17 00:00:00 2001 From: Neti Date: Fri, 29 May 2026 22:48:26 +0530 Subject: [PATCH 7/7] Fix navbar navigation across main and support pages --- js/app.js | 14 ++++++++++++++ support-page/index.html | 4 ++-- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/js/app.js b/js/app.js index 8ef28f4..210f0d7 100644 --- a/js/app.js +++ b/js/app.js @@ -922,6 +922,20 @@ document.addEventListener('DOMContentLoaded', () => { const focusModeBtn = document.getElementById('focus-mode-btn'); +window.addEventListener('load', () => { + const params = new URLSearchParams(window.location.search); + const view = params.get('view'); + + if (view === 'tasks') { + allTasksBtn.click(); + } + + if (view === 'calendar') { + calendarBtn.click(); + } +}); + + const navTasks = document.getElementById('nav-tasks'); navTasks.addEventListener('click', (e) => { diff --git a/support-page/index.html b/support-page/index.html index 81411fd..68fbcd1 100644 --- a/support-page/index.html +++ b/support-page/index.html @@ -17,8 +17,8 @@

StudyPlan