diff --git a/backend/.env b/backend/.env index ad1e50f..f96f818 100644 --- a/backend/.env +++ b/backend/.env @@ -1,3 +1,3 @@ PORT = 3001 MONGO_URI = "mongodb+srv://timmybee:EMqczsTr1oYPBt@cluster0.dombm2a.mongodb.net/?appName=Cluster0" -APP_URI = "http://localhost:3001" +APP_URI = "http://localhost:3001" \ No newline at end of file diff --git a/backend/index.js b/backend/index.js index 6f1fb1f..614226d 100644 --- a/backend/index.js +++ b/backend/index.js @@ -64,7 +64,7 @@ app.get('/api/tasks', async (req, res) => { console.error("Error:", error); res.status(500).json({ message: "Error grabbing tasks!" }); - } + } }); @@ -84,7 +84,7 @@ app.post('/api/tasks/todo', async (req, res) => { }); -// To 'complete' the task and move columns ↓ +// To 'complete' the task and move columns ↓ app.patch('/api/tasks/complete/:id', async (req, res) => { try { @@ -110,7 +110,7 @@ app.patch('/api/tasks/complete/:id', async (req, res) => { app.patch('/api/tasks/notComplete/:id', async (req, res) => { try { - const { completed } = req.body; + const { completed } = req.body; const taskId = req.params.id; const taskNotComplete = await Task.findByIdAndUpdate(taskId, { completed }, { new: true }); diff --git a/frontend/css/styles.css b/frontend/css/styles.css index ae364fe..b551277 100644 --- a/frontend/css/styles.css +++ b/frontend/css/styles.css @@ -51,7 +51,9 @@ footer { color: var(--fg); } -.nav-link:hover { +.nav-link:hover, +.navbar-nav .nav-link.active, +.navbar-nav .nav-link.show { color: var(--accent); } @@ -97,3 +99,29 @@ form a:hover { textarea { resize: none; } + +.stat-card { + background-color: rgba(40, 40, 40, 0.6); + border-radius: 0.5rem; + padding: 1rem; + text-align: center; + color: var(--fg); +} + +.stat-card .stat-value { + font-size: 2rem; + font-weight: 700; + line-height: 1; + color: var(--accent); +} + +.stat-card .stat-label { + font-size: 0.85rem; + text-transform: uppercase; + letter-spacing: 0.05em; + opacity: 0.7; +} + +.quick-date-btn { + font-size: 0.85rem; +} diff --git a/frontend/dashboard.html b/frontend/dashboard.html index ce77ea8..d591b09 100644 --- a/frontend/dashboard.html +++ b/frontend/dashboard.html @@ -51,31 +51,72 @@