diff --git a/css/styles.css b/css/styles.css index 90ecb9d..343aaee 100644 --- a/css/styles.css +++ b/css/styles.css @@ -64,82 +64,6 @@ html, body { font-weight: 700; } -/* Date Navigator */ -.date-navigator { - background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%); - display: flex; - align-items: center; - justify-content: center; - padding: 0.5rem 1rem; - gap: 1rem; - border-bottom: 1px solid rgba(255, 255, 255, 0.15); - box-shadow: 0 2px 4px rgba(0,0,0,0.15); -} - -.date-nav-btn { - background: rgba(255, 255, 255, 0.2); - border: none; - color: white; - font-size: 1.6rem; - width: 2.25rem; - height: 2.25rem; - border-radius: 50%; - cursor: pointer; - display: flex; - align-items: center; - justify-content: center; - transition: background 0.2s, transform 0.1s; - line-height: 1; - padding: 0; - flex-shrink: 0; -} - -.date-nav-btn:hover:not(:disabled) { - background: rgba(255, 255, 255, 0.35); - transform: scale(1.08); -} - -.date-nav-btn:disabled { - opacity: 0.35; - cursor: not-allowed; - transform: none; -} - -.date-display { - display: flex; - align-items: center; - gap: 0.75rem; - color: white; - font-weight: 600; - font-size: 1rem; - min-width: 240px; - justify-content: center; - text-align: center; -} - -#selectedDateDisplay { - white-space: nowrap; -} - -.today-btn { - background: white; - color: var(--primary-color); - border: none; - border-radius: 1rem; - padding: 0.2rem 0.8rem; - font-size: 0.75rem; - font-weight: 700; - cursor: pointer; - transition: opacity 0.2s, transform 0.1s; - white-space: nowrap; - flex-shrink: 0; -} - -.today-btn:hover { - opacity: 0.85; - transform: scale(1.04); -} - /* Hamburger Menu */ .hamburger-menu { display: none; @@ -1366,11 +1290,6 @@ html, body { .task-meta { flex-direction: column; } - - .date-display { - min-width: 180px; - font-size: 0.875rem; - } } @media (max-width: 480px) { diff --git a/e2e/app.spec.ts b/e2e/app.spec.ts index 34d9bad..57ca06e 100644 --- a/e2e/app.spec.ts +++ b/e2e/app.spec.ts @@ -189,41 +189,6 @@ test.describe('Task Manager App', () => { }); }); - // ======================== - // Date Navigation - // ======================== - test.describe('date navigation', () => { - test('should show today by default', async ({ page }) => { - await expect(page.locator('#selectedDateDisplay')).toContainText('Today'); - }); - - test('should navigate to previous day', async ({ page }) => { - await page.click('#prevDayBtn'); - await expect(page.locator('#selectedDateDisplay')).not.toContainText('Today'); - await expect(page.locator('#goTodayBtn')).toBeVisible(); - }); - - test('should return to today via button', async ({ page }) => { - await page.click('#prevDayBtn'); - await page.click('#goTodayBtn'); - await expect(page.locator('#selectedDateDisplay')).toContainText('Today'); - }); - - test('should reload active tab data when returning to today', async ({ page }) => { - // Switch to tasks tab - await page.click('[data-tab="tasks"]'); - await expect(page.locator('#tasks-tab')).toBeVisible(); - // Navigate to previous day - await page.click('#prevDayBtn'); - await expect(page.locator('#selectedDateDisplay')).not.toContainText('Today'); - // Return to today via button - await page.click('#goTodayBtn'); - // The tasks tab should still be active and showing today's data - await expect(page.locator('#selectedDateDisplay')).toContainText('Today'); - await expect(page.locator('#tasks-tab')).toBeVisible(); - }); - }); - // ======================== // Dashboard Overdue Tasks // ======================== diff --git a/index.html b/index.html index 72a2d26..46e5b3e 100644 --- a/index.html +++ b/index.html @@ -28,16 +28,6 @@

📋 Task Manager

- -
- -
- Today - -
- -
-