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..8611a53 100644 --- a/index.html +++ b/index.html @@ -4,11 +4,9 @@ StudyPlan - - - - - + + + @@ -21,7 +19,12 @@

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

StudyPlan

Add subject
+ +
+ + + +

Settings

+
@@ -237,9 +249,6 @@

StudyPlan

Add items to planner - - - @@ -303,7 +312,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": {