From 32bda3414a4ded7f43fe4be923510b200c04d85c Mon Sep 17 00:00:00 2001 From: Shubham-Yadav04 Date: Wed, 3 Jun 2026 16:04:21 +0530 Subject: [PATCH 1/2] updated navbar styling setting placement --- css/index.css | 46 ++++++++++++++++++++++++++++++++++++++++++---- index.html | 46 ++++++++++++++++++++++++++-------------------- js/store.js | 4 ++-- package-lock.json | 2 +- 4 files changed, 71 insertions(+), 27 deletions(-) diff --git a/css/index.css b/css/index.css index b3ca57a..373c52d 100644 --- a/css/index.css +++ b/css/index.css @@ -387,7 +387,23 @@ body { transform: scale(1.1); z-index: 1; } - +#setting{ + display: flex; + padding: 2px 5px; + align-items: center; + flex-direction: row; + gap:5px; + width: 100%; +} +#setting h1{ + font-size: 16px; + padding-top: 5px; + font-weight: 500; + color: var(--color-text-secondary); +} +#setting:hover{ + cursor: pointer; +} .cal-day.today { background: var(--color-text-primary); color: var(--color-background-primary); @@ -1435,15 +1451,37 @@ body { .header-nav a:hover { color: var(--color-text-primary); } +.header-right{ + display: flex; + gap:8px; + +} -.profile-btn { - padding: 8px 16px; +#profile-btn { + padding: 8px 8px; border: none; border-radius: var(--border-radius-md); background: var(--color-text-primary); color: var(--color-background-primary); cursor: pointer; - font-weight: 600; + font-weight: 500; + font-size: 14px; + display: flex; + gap:3px; + align-items: center; +} +#logout-btn { + padding: 8px 8px; + border: none; + border-radius: var(--border-radius-md); + background: red; + color: var(--color-background-primary); + cursor: pointer; + font-weight: 500; + font-size: 14px; + display: flex; + gap:3px; + align-items: center; } /* Footer */ diff --git a/index.html b/index.html index cd7ef13..1fd0bf5 100644 --- a/index.html +++ b/index.html @@ -4,11 +4,9 @@ StudyPlan - - - - - + + + @@ -49,20 +47,22 @@

Wel @@ -108,6 +108,13 @@

StudyPlan

Add subject
+ +
+ + + +

Settings

+
@@ -237,9 +244,6 @@

StudyPlan

Add items to planner - - - @@ -303,7 +307,7 @@

+ diff --git a/js/store.js b/js/store.js index d561435..c0f770e 100644 --- a/js/store.js +++ b/js/store.js @@ -26,8 +26,8 @@ export const store = { async fetchInitialData() { try { const [subsRes, tasksRes] = await Promise.all([ - fetch('/api/subjects'), - fetch('/api/tasks') + fetch('http://localhost:3000/api/subjects'), + fetch('http://localhost:3000/api/tasks') ]); this.subjects = await subsRes.json(); this.tasks = await tasksRes.json(); diff --git a/package-lock.json b/package-lock.json index 5652882..e9685a4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -16,7 +16,7 @@ "sqlite3": "^6.0.1" }, "engines": { - "node": "20.x" + "node": ">=20.x" } }, "node_modules/@google/genai": { From 93bdc6d6531345b623d4531d08e70466be677b05 Mon Sep 17 00:00:00 2001 From: Shubham-Yadav04 Date: Wed, 3 Jun 2026 17:17:17 +0530 Subject: [PATCH 2/2] feautre: added show password --- index.html | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index 1fd0bf5..8611a53 100644 --- a/index.html +++ b/index.html @@ -19,7 +19,12 @@

Wel - +
+ + +