diff --git a/frontend/index.html b/frontend/index.html index cd50db7..ef6d032 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -2,14 +2,15 @@ - + - BookKeepPro + + BookKeepPro — Bookkeeping, Payroll & Tax Services - - + +
diff --git a/frontend/package-lock.json b/frontend/package-lock.json index 60b2851..8614077 100644 --- a/frontend/package-lock.json +++ b/frontend/package-lock.json @@ -16,12 +16,14 @@ }, "devDependencies": { "@tailwindcss/postcss": "^4.3.2", + "@tailwindcss/vite": "^4.3.3", "@types/react": "^19.2.17", "@types/react-dom": "^19.2.3", "@vitejs/plugin-react": "^6.0.3", "autoprefixer": "^10.5.3", "oxlint": "^1.71.0", "postcss": "^8.5.19", + "sharp": "^0.35.3", "tailwindcss": "^4.3.2", "vite": "^8.1.1" } @@ -73,6 +75,581 @@ "tslib": "^2.4.0" } }, + "node_modules/@img/colour": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@img/colour/-/colour-1.1.0.tgz", + "integrity": "sha512-Td76q7j57o/tLVdgS746cYARfSyxk8iEfRxewL9h4OMzYhbW4TAcppl0mT4eyqXddh6L/jwoM75mo7ixa/pCeQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18" + } + }, + "node_modules/@img/sharp-darwin-arm64": { + "version": "0.35.3", + "resolved": "https://registry.npmjs.org/@img/sharp-darwin-arm64/-/sharp-darwin-arm64-0.35.3.tgz", + "integrity": "sha512-RMnFX7YQsMoh7lWfcM4NEHHymBX/rLuKNPVM84XE9ONPcaSCDgE7CHIHpSgPcO2xcRthgBy1HfNO319mwhIAkg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=20.9.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + }, + "optionalDependencies": { + "@img/sharp-libvips-darwin-arm64": "1.3.2" + } + }, + "node_modules/@img/sharp-darwin-x64": { + "version": "0.35.3", + "resolved": "https://registry.npmjs.org/@img/sharp-darwin-x64/-/sharp-darwin-x64-0.35.3.tgz", + "integrity": "sha512-Xo+5uFBtLN0BKqieTxiFzFPQAUlBbbH5iBKyRX/z1JrbnYsHTfKJnUfL8+p2TPXr1pXqao4eeL4Rl144uDpK9w==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=20.9.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + }, + "optionalDependencies": { + "@img/sharp-libvips-darwin-x64": "1.3.2" + } + }, + "node_modules/@img/sharp-freebsd-wasm32": { + "version": "0.35.3", + "resolved": "https://registry.npmjs.org/@img/sharp-freebsd-wasm32/-/sharp-freebsd-wasm32-0.35.3.tgz", + "integrity": "sha512-lUxcqWIj2wMQ9BrwNjngcr1gWUr5xgaGThBRqPPalIC2n67Cqj1uPh8NnA/ZhAg8hUbKl+kVHKwgUIwe6ZYPrg==", + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "freebsd" + ], + "dependencies": { + "@img/sharp-wasm32": "0.35.3" + }, + "engines": { + "node": ">=20.9.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-libvips-darwin-arm64": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-darwin-arm64/-/sharp-libvips-darwin-arm64-1.3.2.tgz", + "integrity": "sha512-9J6ypZFpQBj4YnePGoq/S38w6nz+vqg5WZLrLGY4YuSemdMq47GMLBPO42MzwdGwpg/agZ7xzZcFHa48xlywfg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "LGPL-3.0-or-later", + "optional": true, + "os": [ + "darwin" + ], + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-libvips-darwin-x64": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-darwin-x64/-/sharp-libvips-darwin-x64-1.3.2.tgz", + "integrity": "sha512-m2pW1n6cns9VaubNwsZ+c3CRYjxNQWgJ5gPlnL1nbBcpkBvFm6SCFN5o0psFHI8w9n11NKhFkeEDns98tiqbEw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "LGPL-3.0-or-later", + "optional": true, + "os": [ + "darwin" + ], + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-libvips-linux-arm": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-arm/-/sharp-libvips-linux-arm-1.3.2.tgz", + "integrity": "sha512-1eMLzy92I4J6rmi4mAT8yC3HxOtniyGELlzGbNMLLeqe052ahFQ0h6LFq+lh5DsDIdYViIDst08abvSbcEdLXQ==", + "cpu": [ + "arm" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "LGPL-3.0-or-later", + "optional": true, + "os": [ + "linux" + ], + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-libvips-linux-arm64": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-arm64/-/sharp-libvips-linux-arm64-1.3.2.tgz", + "integrity": "sha512-dqVSFynCox4C/J8kT16V7SIFAns0IjgLwkvYT7p8LQVmJ5OS5b6tI9IGflxTeuBS//zXeFIUbwt5dwxyZ17cnA==", + "cpu": [ + "arm64" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "LGPL-3.0-or-later", + "optional": true, + "os": [ + "linux" + ], + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-libvips-linux-ppc64": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-ppc64/-/sharp-libvips-linux-ppc64-1.3.2.tgz", + "integrity": "sha512-3z0NHDxD6n5I9gc05U1eW1AyRm+Gznzq3naMrthPNqE6oYykcogW0l/jfpJdjYnuNl8R7yI9pNbE1XiUeyq0Aw==", + "cpu": [ + "ppc64" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "LGPL-3.0-or-later", + "optional": true, + "os": [ + "linux" + ], + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-libvips-linux-riscv64": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-riscv64/-/sharp-libvips-linux-riscv64-1.3.2.tgz", + "integrity": "sha512-bsb4rI+NldGOsXuej2r8OdSS8+zXDVaCWxyWrcv6kneTOlgAHtZABRzBBCwdsPiD90J4myNJuHpg6kA20ImW/w==", + "cpu": [ + "riscv64" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "LGPL-3.0-or-later", + "optional": true, + "os": [ + "linux" + ], + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-libvips-linux-s390x": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-s390x/-/sharp-libvips-linux-s390x-1.3.2.tgz", + "integrity": "sha512-/ABshyj8gCpyIrNXnHn4LorDJ0HHm1VhXPBlxZ8zAtfVPAaSafXPGn+sUSIRiwaSBy0mmFjSjiXI5mkcwdChKQ==", + "cpu": [ + "s390x" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "LGPL-3.0-or-later", + "optional": true, + "os": [ + "linux" + ], + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-libvips-linux-x64": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-x64/-/sharp-libvips-linux-x64-1.3.2.tgz", + "integrity": "sha512-ITPEtgffGJ0S6G9dRyw/366tJQqFRcHWPHhC+Stpg3Z8AEMrDrTr2lhdz4f/Y/HMbRh//7Z5mBzEpVdi62Oc3w==", + "cpu": [ + "x64" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "LGPL-3.0-or-later", + "optional": true, + "os": [ + "linux" + ], + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-libvips-linuxmusl-arm64": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linuxmusl-arm64/-/sharp-libvips-linuxmusl-arm64-1.3.2.tgz", + "integrity": "sha512-zE9EdiUzUmg5mDT5a1rk5fYJ6GWPloTwWBYDS14naqHsL+EaMpDj1AWnpLgh3u0YCORv2Tt50wrcrpYqkP97Kw==", + "cpu": [ + "arm64" + ], + "dev": true, + "libc": [ + "musl" + ], + "license": "LGPL-3.0-or-later", + "optional": true, + "os": [ + "linux" + ], + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-libvips-linuxmusl-x64": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linuxmusl-x64/-/sharp-libvips-linuxmusl-x64-1.3.2.tgz", + "integrity": "sha512-m0lrLiUt+lBYnCFr8qV/65yMR4E/c7/wf78I5eKTdkEakFAlZ9QlzEM3QIhhAwVeUhLAHLcCq7a7Vszq/oFNZQ==", + "cpu": [ + "x64" + ], + "dev": true, + "libc": [ + "musl" + ], + "license": "LGPL-3.0-or-later", + "optional": true, + "os": [ + "linux" + ], + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-linux-arm": { + "version": "0.35.3", + "resolved": "https://registry.npmjs.org/@img/sharp-linux-arm/-/sharp-linux-arm-0.35.3.tgz", + "integrity": "sha512-affVWCTLooy8TSxbDx2qkzuDeaWLNVBA+P//FNBirHsXpP2fuBhk5AuboYUnrDnzoXes8GFjpTx0SBFOCRg+FA==", + "cpu": [ + "arm" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=20.9.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + }, + "optionalDependencies": { + "@img/sharp-libvips-linux-arm": "1.3.2" + } + }, + "node_modules/@img/sharp-linux-arm64": { + "version": "0.35.3", + "resolved": "https://registry.npmjs.org/@img/sharp-linux-arm64/-/sharp-linux-arm64-0.35.3.tgz", + "integrity": "sha512-QgKDspHPnrU+GQ55XPhGwyhC8acLVOOSyAvo1oVfFmrIXLkDNmGWzAfDZ4xK8oSA1qBQrALcHX0G5UZni/SuFQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=20.9.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + }, + "optionalDependencies": { + "@img/sharp-libvips-linux-arm64": "1.3.2" + } + }, + "node_modules/@img/sharp-linux-ppc64": { + "version": "0.35.3", + "resolved": "https://registry.npmjs.org/@img/sharp-linux-ppc64/-/sharp-linux-ppc64-0.35.3.tgz", + "integrity": "sha512-sMd8rDxmpLOwv/7N44klFjOD5DUO7FLdjiXDI0hoxYaf7Ar262dQIEkosE98bps+5HPLtp/EvNqeqQtOycP/IA==", + "cpu": [ + "ppc64" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=20.9.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + }, + "optionalDependencies": { + "@img/sharp-libvips-linux-ppc64": "1.3.2" + } + }, + "node_modules/@img/sharp-linux-riscv64": { + "version": "0.35.3", + "resolved": "https://registry.npmjs.org/@img/sharp-linux-riscv64/-/sharp-linux-riscv64-0.35.3.tgz", + "integrity": "sha512-0Eob78yjlYPfL5vMNWAW55l3R9Y6BQS/gOfe0ZcP9mEz9ohhKSt4im1hayiknXgf8AWrFqMvJcKIdmLmEe7yeQ==", + "cpu": [ + "riscv64" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=20.9.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + }, + "optionalDependencies": { + "@img/sharp-libvips-linux-riscv64": "1.3.2" + } + }, + "node_modules/@img/sharp-linux-s390x": { + "version": "0.35.3", + "resolved": "https://registry.npmjs.org/@img/sharp-linux-s390x/-/sharp-linux-s390x-0.35.3.tgz", + "integrity": "sha512-KgAxQ0DxpNOq1rG2t5cgTgShJFGSuU7XO45cqC+1NVOuZnP6tlgZRuSYOfNupGkHID0o3cJOsw4DVeJpMovcGw==", + "cpu": [ + "s390x" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=20.9.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + }, + "optionalDependencies": { + "@img/sharp-libvips-linux-s390x": "1.3.2" + } + }, + "node_modules/@img/sharp-linux-x64": { + "version": "0.35.3", + "resolved": "https://registry.npmjs.org/@img/sharp-linux-x64/-/sharp-linux-x64-0.35.3.tgz", + "integrity": "sha512-8pqvxubL2PGdhlPy6GLqzDYMUjyRmKAwKHYKixpdJYBUK7PJ0C029XdsnpFIdgRZG68fZiGdHVWcKPvtiPB4cA==", + "cpu": [ + "x64" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=20.9.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + }, + "optionalDependencies": { + "@img/sharp-libvips-linux-x64": "1.3.2" + } + }, + "node_modules/@img/sharp-linuxmusl-arm64": { + "version": "0.35.3", + "resolved": "https://registry.npmjs.org/@img/sharp-linuxmusl-arm64/-/sharp-linuxmusl-arm64-0.35.3.tgz", + "integrity": "sha512-Vz0iQjzzcSX3HCbfwFfCSG/9SCIqyO0mH2sXyiHaAYfBk0cRsCWXRyQYX0ovCK/PAQBbTzQ0dsPQHh5MAFL59w==", + "cpu": [ + "arm64" + ], + "dev": true, + "libc": [ + "musl" + ], + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=20.9.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + }, + "optionalDependencies": { + "@img/sharp-libvips-linuxmusl-arm64": "1.3.2" + } + }, + "node_modules/@img/sharp-linuxmusl-x64": { + "version": "0.35.3", + "resolved": "https://registry.npmjs.org/@img/sharp-linuxmusl-x64/-/sharp-linuxmusl-x64-0.35.3.tgz", + "integrity": "sha512-6O1NPKcDVj9QEdg7Hx549EX8U0rp6yXQERqru6yRN7fGBn32UvIRJUlWnk+8xDCiG76hXVBbX82NZ/ZKr0euIg==", + "cpu": [ + "x64" + ], + "dev": true, + "libc": [ + "musl" + ], + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=20.9.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + }, + "optionalDependencies": { + "@img/sharp-libvips-linuxmusl-x64": "1.3.2" + } + }, + "node_modules/@img/sharp-wasm32": { + "version": "0.35.3", + "resolved": "https://registry.npmjs.org/@img/sharp-wasm32/-/sharp-wasm32-0.35.3.tgz", + "integrity": "sha512-cZ0XkcYGpHZkqW6iCkqTcmUC0CD9DhD5d/qeZlZkfRBn6GnHniZXLUo5+9xw8Iv76YE6LQFN9YNBlKREcCG76w==", + "dev": true, + "license": "Apache-2.0 AND LGPL-3.0-or-later AND MIT", + "optional": true, + "dependencies": { + "@emnapi/runtime": "^1.11.1" + }, + "engines": { + "node": ">=20.9.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-webcontainers-wasm32": { + "version": "0.35.3", + "resolved": "https://registry.npmjs.org/@img/sharp-webcontainers-wasm32/-/sharp-webcontainers-wasm32-0.35.3.tgz", + "integrity": "sha512-2rnq7bX3NzeR2T4YWgz8qiG4h3TSdMe+vN1iQXpJleSJ3SM5zQ8Fy2SyyXAWlbxpEZ2Y+Z4u1BePgJEYbSy80Q==", + "cpu": [ + "wasm32" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "dependencies": { + "@img/sharp-wasm32": "0.35.3" + }, + "engines": { + "node": ">=20.9.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-win32-arm64": { + "version": "0.35.3", + "resolved": "https://registry.npmjs.org/@img/sharp-win32-arm64/-/sharp-win32-arm64-0.35.3.tgz", + "integrity": "sha512-4bPwFdMbeC4JQ8L8LOyWp6nsHcboP5fxkp6iPOXz2Vg49R42TuMs2whkJ5OAP4/Ul035qOzy0AecOF9VOscn4w==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "Apache-2.0 AND LGPL-3.0-or-later", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=20.9.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-win32-ia32": { + "version": "0.35.3", + "resolved": "https://registry.npmjs.org/@img/sharp-win32-ia32/-/sharp-win32-ia32-0.35.3.tgz", + "integrity": "sha512-r53mXsBN6lFUDiST764SvgwUdHAqM4rPAiDzAmf4fLoB6X/rkfyTrLCg6+g17wJJiCmB3JYgHuUldCWUIRFSXw==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "Apache-2.0 AND LGPL-3.0-or-later", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": "^20.9.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-win32-x64": { + "version": "0.35.3", + "resolved": "https://registry.npmjs.org/@img/sharp-win32-x64/-/sharp-win32-x64-0.35.3.tgz", + "integrity": "sha512-D4y1vNeZrIIJCN+uHaWVtH86B+aCrdMYYjicy9pXHvbGZeGYLLSd3wdVuC37FxVXlU1ARsk84eKWfWMXGYEqvA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "Apache-2.0 AND LGPL-3.0-or-later", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=20.9.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + } + }, "node_modules/@jridgewell/gen-mapping": { "version": "0.3.13", "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz", @@ -1064,6 +1641,311 @@ "tailwindcss": "4.3.2" } }, + "node_modules/@tailwindcss/vite": { + "version": "4.3.3", + "resolved": "https://registry.npmjs.org/@tailwindcss/vite/-/vite-4.3.3.tgz", + "integrity": "sha512-yYU8cogLeSh/ms2jh8Fj7jaba/EWa7Ja6GoUqYZaraEuCI5YS6ms6ObZgjjedm+jm6XZjdNRWBpPP6Z86oOxcw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@tailwindcss/node": "4.3.3", + "@tailwindcss/oxide": "4.3.3", + "tailwindcss": "4.3.3" + }, + "peerDependencies": { + "vite": "^5.2.0 || ^6 || ^7 || ^8" + } + }, + "node_modules/@tailwindcss/vite/node_modules/@tailwindcss/node": { + "version": "4.3.3", + "resolved": "https://registry.npmjs.org/@tailwindcss/node/-/node-4.3.3.tgz", + "integrity": "sha512-/T8IKEsf9VTU6tLjgC7+sv2mOPtQxzE2jMw7u4Tt40Tx+QSZxpzh95/H6cMKoja9XuW7iMdLJYBB0o9G1CaAgg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/remapping": "^2.3.5", + "enhanced-resolve": "^5.24.1", + "jiti": "^2.7.0", + "lightningcss": "1.32.0", + "magic-string": "^0.30.21", + "source-map-js": "^1.2.1", + "tailwindcss": "4.3.3" + } + }, + "node_modules/@tailwindcss/vite/node_modules/@tailwindcss/oxide": { + "version": "4.3.3", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide/-/oxide-4.3.3.tgz", + "integrity": "sha512-krXjAikiaFSPaK/FkAQT5UTx3VormQaiZ5hBFlJZ9UFQGB/rwg1MZIhHAG9smMQRTdyJxP6Qt5MwMtdyU5FWrA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 20" + }, + "optionalDependencies": { + "@tailwindcss/oxide-android-arm64": "4.3.3", + "@tailwindcss/oxide-darwin-arm64": "4.3.3", + "@tailwindcss/oxide-darwin-x64": "4.3.3", + "@tailwindcss/oxide-freebsd-x64": "4.3.3", + "@tailwindcss/oxide-linux-arm-gnueabihf": "4.3.3", + "@tailwindcss/oxide-linux-arm64-gnu": "4.3.3", + "@tailwindcss/oxide-linux-arm64-musl": "4.3.3", + "@tailwindcss/oxide-linux-x64-gnu": "4.3.3", + "@tailwindcss/oxide-linux-x64-musl": "4.3.3", + "@tailwindcss/oxide-wasm32-wasi": "4.3.3", + "@tailwindcss/oxide-win32-arm64-msvc": "4.3.3", + "@tailwindcss/oxide-win32-x64-msvc": "4.3.3" + } + }, + "node_modules/@tailwindcss/vite/node_modules/@tailwindcss/oxide-android-arm64": { + "version": "4.3.3", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-android-arm64/-/oxide-android-arm64-4.3.3.tgz", + "integrity": "sha512-Y85A2gmPSkl5Ve5qR86GL4HT509cFqQh1aes9p3sSkyTPwt0Pppf3GkwGe4JPACcRYjgJIEhQgM6dBClnr0NYw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/vite/node_modules/@tailwindcss/oxide-darwin-arm64": { + "version": "4.3.3", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-darwin-arm64/-/oxide-darwin-arm64-4.3.3.tgz", + "integrity": "sha512-BiaWatpBcERQFDlOjRDpIVXuFK5PJez5SA4JMg6VYZdBYU+qKfV/vqjcIs+IYmtitf1xYQZTwXvU/8y4lfZUGw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/vite/node_modules/@tailwindcss/oxide-darwin-x64": { + "version": "4.3.3", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-darwin-x64/-/oxide-darwin-x64-4.3.3.tgz", + "integrity": "sha512-fAeUqfV5ndhxRwai8cXGzdLvul9utWOmeTkv69unv4ZXixjn61Z+p9lCWdwOwA3TYboG3BwdVuN/RDjhBRl0mw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/vite/node_modules/@tailwindcss/oxide-freebsd-x64": { + "version": "4.3.3", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-freebsd-x64/-/oxide-freebsd-x64-4.3.3.tgz", + "integrity": "sha512-iyf5bV6+wnAlflVeEy7R25dupxTNECZN5QMI0qNT6eT+EgaGdZcKhGkr5SdoaWiLJ3spLqIY9VCeSGrwmtg4kw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/vite/node_modules/@tailwindcss/oxide-linux-arm-gnueabihf": { + "version": "4.3.3", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm-gnueabihf/-/oxide-linux-arm-gnueabihf-4.3.3.tgz", + "integrity": "sha512-aAYUprJAJQWWbRrPvtjdroZ56Md+JM8pMiopS6xGEwDfLhqj+2ver2p4nU4Mb3CRqcMmNBjo8KkUgcxhkzVQGQ==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/vite/node_modules/@tailwindcss/oxide-linux-arm64-gnu": { + "version": "4.3.3", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm64-gnu/-/oxide-linux-arm64-gnu-4.3.3.tgz", + "integrity": "sha512-nDxldcEENOxZRzC2uu9jrutZdAAQtb+8WWDCSnWL1zvBk1+FN+x6MtDViPB5AJMfttVCUhehGWus3XBPgatM/w==", + "cpu": [ + "arm64" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/vite/node_modules/@tailwindcss/oxide-linux-arm64-musl": { + "version": "4.3.3", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm64-musl/-/oxide-linux-arm64-musl-4.3.3.tgz", + "integrity": "sha512-Md44bD6veX/PC5iyF8cDVnw4HBIANZepRZZ7a8DQOvkfo5WUBwcp6iAuCUz23u+4SUkhJlD3eL7hNdW8ezd/kA==", + "cpu": [ + "arm64" + ], + "dev": true, + "libc": [ + "musl" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/vite/node_modules/@tailwindcss/oxide-linux-x64-gnu": { + "version": "4.3.3", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-x64-gnu/-/oxide-linux-x64-gnu-4.3.3.tgz", + "integrity": "sha512-tx7us1muwOKAKWao2v/GaafFeQboE6aj88vC6ziN2NCGcRm8gWUhwjzg+YdVB1e4boAtdtma4L43onunI6NS4w==", + "cpu": [ + "x64" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/vite/node_modules/@tailwindcss/oxide-linux-x64-musl": { + "version": "4.3.3", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-x64-musl/-/oxide-linux-x64-musl-4.3.3.tgz", + "integrity": "sha512-SJxX60smvHgasZoBy11dX6YRjXJFovwWBoedhbQPOBzgFWBHGB+TVPWB9BxzR7TTxU8FQZAI2AyiNCMzFm8Img==", + "cpu": [ + "x64" + ], + "dev": true, + "libc": [ + "musl" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/vite/node_modules/@tailwindcss/oxide-wasm32-wasi": { + "version": "4.3.3", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-wasm32-wasi/-/oxide-wasm32-wasi-4.3.3.tgz", + "integrity": "sha512-jx1+rPhY/5Ympkktd656HBWEBLxP7dH06losBLjjf5vgCODXvi9KhtftWcMIwTFIDqBr7cRnQkdLnAG+IOlGvQ==", + "bundleDependencies": [ + "@napi-rs/wasm-runtime", + "@emnapi/core", + "@emnapi/runtime", + "@tybys/wasm-util", + "@emnapi/wasi-threads", + "tslib" + ], + "cpu": [ + "wasm32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "@emnapi/core": "^1.11.1", + "@emnapi/runtime": "^1.11.1", + "@emnapi/wasi-threads": "^1.2.2", + "@napi-rs/wasm-runtime": "^1.1.4", + "@tybys/wasm-util": "^0.10.2", + "tslib": "^2.8.1" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@tailwindcss/vite/node_modules/@tailwindcss/oxide-win32-arm64-msvc": { + "version": "4.3.3", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-win32-arm64-msvc/-/oxide-win32-arm64-msvc-4.3.3.tgz", + "integrity": "sha512-3rc292Ca2ceK6Ulcc/bAVnTs/3nDtoPhyEKlgPv+yQJQi/JS/AMJlqzxvlDacL1nekbrcf6bTqp/jV4qgnPxNQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/vite/node_modules/@tailwindcss/oxide-win32-x64-msvc": { + "version": "4.3.3", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-win32-x64-msvc/-/oxide-win32-x64-msvc-4.3.3.tgz", + "integrity": "sha512-yJ0pwIVc/nYeGoV02WtsN8KYyLQv7kyI2wDnkezyJlGGjkd4QLwDGAwl47YpPJeuI0M0ObaXGSPjvWDPeTPggw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/vite/node_modules/enhanced-resolve": { + "version": "5.24.5", + "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.24.5.tgz", + "integrity": "sha512-L1l8TNvomm6UVW5B253AGxQagSQr+vGwhMlrrfRS2qmhx46AMpMVJKQYLvWYbysTMY8VoicOvzHzoHMbyzB+4A==", + "dev": true, + "license": "MIT", + "dependencies": { + "graceful-fs": "^4.2.4", + "tapable": "^2.3.3" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/@tailwindcss/vite/node_modules/tailwindcss": { + "version": "4.3.3", + "resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-4.3.3.tgz", + "integrity": "sha512-gOhV3P7ufE62QDGg1zVaTgCR+EtPv92k2nIhVcVKcLmxT1sUBsQGhnZj175j+MqRt4zLF7ic+sCYjfhxMxj7YQ==", + "dev": true, + "license": "MIT" + }, "node_modules/@tybys/wasm-util": { "version": "0.10.3", "resolved": "https://registry.npmjs.org/@tybys/wasm-util/-/wasm-util-0.10.3.tgz", @@ -2207,12 +3089,75 @@ "integrity": "sha512-eNv+WrVbKu1f3vbYJT/xtiF5syA5HPIMtf9IgY/nKg0sWqzAUEvqY/xm7OcZc/qafLx/iO9FgOmeSAp4v5ti/Q==", "license": "MIT" }, + "node_modules/semver": { + "version": "7.8.5", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.5.tgz", + "integrity": "sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA==", + "dev": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, "node_modules/set-cookie-parser": { "version": "2.7.2", "resolved": "https://registry.npmjs.org/set-cookie-parser/-/set-cookie-parser-2.7.2.tgz", "integrity": "sha512-oeM1lpU/UvhTxw+g3cIfxXHyJRc/uidd3yK1P242gzHds0udQBYzs3y8j4gCCW+ZJ7ad0yctld8RYO+bdurlvw==", "license": "MIT" }, + "node_modules/sharp": { + "version": "0.35.3", + "resolved": "https://registry.npmjs.org/sharp/-/sharp-0.35.3.tgz", + "integrity": "sha512-ej0zVHuZGHCiABXcNxeYhpRnPNPAcvbG8RMdBAhDAxLKkCRVSpK3Iyu7qbqw3JMzoj0REeM6f3tJLtVwl0023Q==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@img/colour": "^1.1.0", + "detect-libc": "^2.1.2", + "semver": "^7.8.5" + }, + "engines": { + "node": ">=20.9.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + }, + "optionalDependencies": { + "@img/sharp-darwin-arm64": "0.35.3", + "@img/sharp-darwin-x64": "0.35.3", + "@img/sharp-freebsd-wasm32": "0.35.3", + "@img/sharp-libvips-darwin-arm64": "1.3.2", + "@img/sharp-libvips-darwin-x64": "1.3.2", + "@img/sharp-libvips-linux-arm": "1.3.2", + "@img/sharp-libvips-linux-arm64": "1.3.2", + "@img/sharp-libvips-linux-ppc64": "1.3.2", + "@img/sharp-libvips-linux-riscv64": "1.3.2", + "@img/sharp-libvips-linux-s390x": "1.3.2", + "@img/sharp-libvips-linux-x64": "1.3.2", + "@img/sharp-libvips-linuxmusl-arm64": "1.3.2", + "@img/sharp-libvips-linuxmusl-x64": "1.3.2", + "@img/sharp-linux-arm": "0.35.3", + "@img/sharp-linux-arm64": "0.35.3", + "@img/sharp-linux-ppc64": "0.35.3", + "@img/sharp-linux-riscv64": "0.35.3", + "@img/sharp-linux-s390x": "0.35.3", + "@img/sharp-linux-x64": "0.35.3", + "@img/sharp-linuxmusl-arm64": "0.35.3", + "@img/sharp-linuxmusl-x64": "0.35.3", + "@img/sharp-webcontainers-wasm32": "0.35.3", + "@img/sharp-win32-arm64": "0.35.3", + "@img/sharp-win32-ia32": "0.35.3", + "@img/sharp-win32-x64": "0.35.3" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + } + } + }, "node_modules/source-map-js": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz", diff --git a/frontend/package.json b/frontend/package.json index 676e19d..4b435be 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -18,12 +18,14 @@ }, "devDependencies": { "@tailwindcss/postcss": "^4.3.2", + "@tailwindcss/vite": "^4.3.3", "@types/react": "^19.2.17", "@types/react-dom": "^19.2.3", "@vitejs/plugin-react": "^6.0.3", "autoprefixer": "^10.5.3", "oxlint": "^1.71.0", "postcss": "^8.5.19", + "sharp": "^0.35.3", "tailwindcss": "^4.3.2", "vite": "^8.1.1" } diff --git a/frontend/postcss.config.js b/frontend/postcss.config.js index 1c87846..b6dc034 100644 --- a/frontend/postcss.config.js +++ b/frontend/postcss.config.js @@ -1,6 +1,5 @@ export default { plugins: { - '@tailwindcss/postcss': {}, autoprefixer: {}, }, } diff --git a/frontend/public/css/base.css b/frontend/public/css/base.css index fd7d78d..433a86f 100644 --- a/frontend/public/css/base.css +++ b/frontend/public/css/base.css @@ -1,6 +1,5 @@ @import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,400,1,0'); @import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,500&family=IBM+Plex+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap'); -@import "tailwindcss"; /* ============================================================ base.css — BookKeepPro Design System · "Ledger" @@ -295,34 +294,8 @@ textarea:focus { transition: border-color 0.2s ease, box-shadow 0.2s ease; } -/* ── Dark Mode Overrides ─────────────────────────────────── */ -.dark-theme { - --bg: #10160F; - --card: #1A2119; - --navy: #F2EFE4; - --ink: #F2EFE4; - --muted: #A6AC9F; - --border: #2B3529; - - --header-bg: #182018; - --footer-bot: #10160F; - - --blue-light: rgba(90, 168, 138, 0.16); - --orange-light: rgba(196, 150, 82, 0.16); - --emerald-light:rgba(90, 168, 138, 0.16); - --brass-light: rgba(196, 150, 82, 0.16); - - --success-bg: rgba(90, 168, 138, 0.14); - --error-bg: rgba(214, 110, 110, 0.14); - --warn-bg: rgba(196, 150, 82, 0.16); - - --shadow-xs: 0 1px 4px rgba(0,0,0,0.35); - --shadow-sm: 0 2px 10px rgba(0,0,0,0.4); - --shadow-md: 0 6px 24px rgba(0,0,0,0.5); - --shadow-lg: 0 16px 48px rgba(0,0,0,0.6); +/* AI Summary — analyzing spinner */ +@keyframes spin { + from { transform: rotate(0deg); } + to { transform: rotate(360deg); } } -body.dark-theme { - background-color: var(--bg); - color: var(--ink); -} -.dark-theme .input, .dark-theme .select-input { background: var(--card); color: var(--ink); border-color: var(--border); } diff --git a/frontend/public/css/chatbot.css b/frontend/public/css/chatbot.css index 35fc412..9d43784 100644 --- a/frontend/public/css/chatbot.css +++ b/frontend/public/css/chatbot.css @@ -186,13 +186,4 @@ .chatbot-fab { bottom: 16px; right: 16px; width: 50px; height: 50px; font-size: 22px; } } -.dark-theme .chatbot-window { background: var(--card); } -.dark-theme .chatbot-messages { background: var(--bg); } -.dark-theme .chat-msg.bot { background: var(--card); border-color: var(--border); color: var(--navy); } -.dark-theme .quick-reply-btn { background: var(--card); border-color: var(--border); color: var(--navy); } -.dark-theme .quick-reply-btn:hover { background: var(--blue-light); border-color: var(--blue); } -.dark-theme .doc-status-card { background: var(--card); border-color: var(--border); } -.dark-theme .doc-status-card .doc-name { color: var(--navy); } -.dark-theme .faq-question { background: var(--card); border-color: var(--border); color: var(--navy); } -.dark-theme .faq-question:hover { background: var(--blue-light); border-color: var(--blue); } -.dark-theme .summary-item { background: var(--card); } + diff --git a/frontend/public/css/components.css b/frontend/public/css/components.css index 50368ef..1d389ab 100644 --- a/frontend/public/css/components.css +++ b/frontend/public/css/components.css @@ -19,7 +19,7 @@ justify-content: space-between; gap: 16px; } -.app-header .logo { height: 34px; cursor: pointer; transition: opacity var(--transition); } +.app-header .logo { height: 34px; width: auto; object-fit: contain; cursor: pointer; transition: opacity var(--transition); } .app-header .logo:hover { opacity: 0.85; } .header-actions { display: flex; align-items: center; gap: 10px; } @@ -79,13 +79,7 @@ .auth-box .auth-subtitle { color: var(--muted); font-size: 14px; margin-bottom: 32px; } .auth-links { margin-top: 20px; font-size: 13px; color: var(--muted); text-align: center; line-height: 2; } -body.dark-theme .auth-shell { background: var(--bg); } -body.dark-theme .auth-form-side { background: var(--bg); } -body.dark-theme .auth-box h1 { color: var(--navy); } -body.dark-theme .auth-box .auth-subtitle { color: var(--muted); } -body.dark-theme .auth-box .form-label { color: var(--muted); } -body.dark-theme .auth-box .input { background: var(--card); color: var(--navy); border-color: var(--border); } -body.dark-theme .auth-links a { color: var(--blue); } + @media (max-width: 768px) { .auth-shell { flex-direction: column; } @@ -126,15 +120,26 @@ body.dark-theme .auth-links a { color: var(--blue); } display: flex; flex-direction: column; gap: 6px; + position: relative; + overflow: hidden; transition: box-shadow var(--transition), transform var(--transition); } .stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); } .stat-card .stat-icon { font-size: 22px; margin-bottom: 4px; color: var(--muted); } .stat-card .stat-value, .stat-card .stat-val { font-family: var(--font-mono); font-size: 27px; font-weight: 600; color: var(--ink); line-height: 1; font-variant-numeric: tabular-nums; } .stat-card .stat-label, .stat-card .stat-title { font-size: 11.5px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; } -.stat-card.accent-blue { border-left: 3px solid var(--emerald); } -.stat-card.accent-orange{ border-left: 3px solid var(--brass); } -.stat-card.accent-green { border-left: 3px solid var(--success); } + +.stat-card::before { + content: ''; + position: absolute; + left: 0; + top: 0; + bottom: 0; + width: 4px; +} +.stat-card.accent-blue::before { background: var(--emerald); } +.stat-card.accent-orange::before{ background: var(--brass); } +.stat-card.accent-green::before { background: var(--success); } /* ── Tab Bar ─────────────────────────────────────────────── */ .tab-bar { @@ -373,13 +378,7 @@ body.dark-theme .auth-links a { color: var(--blue); } .btn-upload-pill { background: var(--brass); color: #fff; border: none; border-radius: var(--radius-sm); font-weight: 500; cursor: pointer; padding: 8px 16px; display: inline-flex; align-items: center; gap: 8px; } .btn-upload-pill:hover { opacity: 0.9; } -/* ── Dark theme overrides for the above ─────────────────── */ -body.dark-theme .app-header { background: var(--header-bg); border-color: var(--border); } -body.dark-theme .admin-table th { background: var(--card); } -body.dark-theme .chatbot-footer { background: var(--card); border-color: var(--border); } -body.dark-theme .doc-row, body.dark-theme .stat-card, body.dark-theme .user-card { background: var(--card); } -body.dark-theme .search-bar, body.dark-theme .role-select { background: var(--card); color: var(--navy); } -body.dark-theme .search-bar input { color: var(--navy); } + /* ============================================================ diff --git a/frontend/public/css/marketing.css b/frontend/public/css/marketing.css index 934975e..1c2ebf1 100644 --- a/frontend/public/css/marketing.css +++ b/frontend/public/css/marketing.css @@ -33,7 +33,7 @@ body { background: var(--bg); overflow-x: hidden; } align-items: center; justify-content: space-between; } -#logos { height: clamp(34px, 4.4vw, 44px); object-fit: contain; } +#logos { height: clamp(34px, 4.4vw, 44px); width: auto; object-fit: contain; } .nav-menu { display: flex; gap: 30px; align-items: center; } .nav-menu a { @@ -57,7 +57,7 @@ body { background: var(--bg); overflow-x: hidden; } .login-btn { padding: 10px 20px; - background: var(--brass); + background: var(--brass-dark, #8F6528); color: #fff; border-radius: var(--radius-sm); border: none; @@ -66,7 +66,7 @@ body { background: var(--bg); overflow-x: hidden; } cursor: pointer; transition: background var(--transition), transform 0.12s ease; } -.login-btn:hover { background: var(--brass-dark); } +.login-btn:hover { background: #7A5520; } .login-btn:active { transform: translateY(1px) scale(0.96); } .desktop-login { display: inline-block; } @@ -116,7 +116,7 @@ body { background: var(--bg); overflow-x: hidden; } color: #fff; background: linear-gradient(180deg, rgba(15,20,17,0.55) 0%, rgba(15,20,17,0.78) 100%), - url("/images/home-background.jpg"); + url("/images/home-background.webp"); background-size: cover; background-position: center; overflow: hidden; @@ -299,15 +299,15 @@ body { background: var(--bg); overflow-x: hidden; } text-align: center; background: linear-gradient(180deg, rgba(15,20,17,0.5) 0%, rgba(15,20,17,0.8) 100%), - var(--hero-img, url("/images/home-background.jpg")); + var(--hero-img, url("/images/home-background.webp")); background-size: cover; background-position: center; } .page-hero::before { content: ''; position: absolute; inset: 0; background-image: var(--ruled); opacity: 0.4; } .page-hero-inner { position: relative; z-index: 2; } .page-hero .eyebrow { color: #E4C98A; justify-content: center; } -.page-hero h1, body.dark-theme .page-hero h1 { font-size: clamp(26px, 4.6vw, 44px); font-weight: 500; color: #fff !important; margin-top: 14px; } -.page-hero p, body.dark-theme .page-hero p { color: rgba(255,255,255,0.78) !important; margin-top: 12px; max-width: 520px; margin-left: auto; margin-right: auto; } +.page-hero h1 { font-size: clamp(26px, 4.6vw, 44px); font-weight: 500; color: #fff !important; margin-top: 14px; } +.page-hero p { color: rgba(255,255,255,0.78) !important; margin-top: 12px; max-width: 520px; margin-left: auto; margin-right: auto; } /* ================= ABOUT PAGE ================= */ .about-wrapper { width: min(1200px, 92%); margin: 90px auto; display: flex; flex-direction: column; gap: 46px; } @@ -413,11 +413,11 @@ body { background: var(--bg); overflow-x: hidden; } flex-wrap: wrap; } .footer-left { flex: 1 1 260px; } -.footer-logo, .mkt-footer-logo { width: 190px; opacity: 0.9; margin-bottom: 14px; } +.footer-logo, .mkt-footer-logo { width: 190px; height: auto; object-fit: contain; opacity: 0.9; margin-bottom: 14px; } .footer-left p { color: rgba(255,255,255,0.6); font-size: 14px; max-width: 280px; } .footer-links, .mkt-footer-links { display: flex; flex-direction: column; gap: 10px; } -.footer-links h4, .footer-contact h4, .mkt-footer-links h4 { +.footer-links h3, .footer-contact h3, .mkt-footer-links h3 { color: #E4C98A; margin-bottom: 6px; font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.1em; font-family: var(--font-mono); font-weight: 600; } @@ -442,22 +442,3 @@ body { background: var(--bg); overflow-x: hidden; } .hero-stats { margin-top: 46px; } } -/* ================= DARK THEME ================= */ -body.dark-theme .about-block, -body.dark-theme .service-block, -body.dark-theme .contact-form, -body.dark-theme .service-card { background: var(--card); border-color: var(--border); } -body.dark-theme .hero-stats { background: rgba(26,33,25,0.97); } -body.dark-theme .stat-block { border-color: var(--border); } -body.dark-theme .stat-block .stat-figure, body.dark-theme .stat-block .stat-caption { color: var(--navy); } -body.dark-theme p, body.dark-theme .service-text p, body.dark-theme .list-items li, -body.dark-theme .about-copy p, body.dark-theme .footer-left p { color: var(--muted) !important; } -body.dark-theme .hero p.hero-sub { color: rgba(255,255,255,0.78) !important; } -body.dark-theme h1, body.dark-theme h2, body.dark-theme h3 { color: var(--navy) !important; } -body.dark-theme .contact-form input, body.dark-theme .contact-form textarea { - background: var(--bg); color: var(--navy); border-color: var(--border); -} -body.dark-theme .navbar-solid { background: var(--ink) !important; } -body.dark-theme .footer, body.dark-theme .mkt-footer, body.dark-theme .cta-band { - background: #182018 !important; -} diff --git a/frontend/public/images/Background-image.jpg b/frontend/public/images/Background-image.jpg deleted file mode 100644 index 12f1b87..0000000 Binary files a/frontend/public/images/Background-image.jpg and /dev/null differ diff --git a/frontend/public/images/Background-image.png b/frontend/public/images/Background-image.png deleted file mode 100644 index aa1f271..0000000 Binary files a/frontend/public/images/Background-image.png and /dev/null differ diff --git a/frontend/public/images/Gemini_Generated_Image_5pqvpl5pqvpl5pqv.jpg b/frontend/public/images/Gemini_Generated_Image_5pqvpl5pqvpl5pqv.jpg deleted file mode 100644 index b3c402e..0000000 Binary files a/frontend/public/images/Gemini_Generated_Image_5pqvpl5pqvpl5pqv.jpg and /dev/null differ diff --git a/frontend/public/images/Gemini_Generated_Image_5pqvpl5pqvpl5pqv.png b/frontend/public/images/Gemini_Generated_Image_5pqvpl5pqvpl5pqv.png deleted file mode 100644 index 85ce4a2..0000000 Binary files a/frontend/public/images/Gemini_Generated_Image_5pqvpl5pqvpl5pqv.png and /dev/null differ diff --git a/frontend/public/images/Gemini_Generated_Image_qacxnoqacxnoqacx.jpg b/frontend/public/images/Gemini_Generated_Image_qacxnoqacxnoqacx.jpg deleted file mode 100644 index 25b7cba..0000000 Binary files a/frontend/public/images/Gemini_Generated_Image_qacxnoqacxnoqacx.jpg and /dev/null differ diff --git a/frontend/public/images/Gemini_Generated_Image_qacxnoqacxnoqacx.png b/frontend/public/images/Gemini_Generated_Image_qacxnoqacxnoqacx.png deleted file mode 100644 index bec1f87..0000000 Binary files a/frontend/public/images/Gemini_Generated_Image_qacxnoqacxnoqacx.png and /dev/null differ diff --git a/frontend/public/images/bookkeeppro-logo.jpg b/frontend/public/images/bookkeeppro-logo.jpg deleted file mode 100644 index 7fb778e..0000000 Binary files a/frontend/public/images/bookkeeppro-logo.jpg and /dev/null differ diff --git a/frontend/public/images/bookkeeppro-logo.png b/frontend/public/images/bookkeeppro-logo.png deleted file mode 100644 index df9eed6..0000000 Binary files a/frontend/public/images/bookkeeppro-logo.png and /dev/null differ diff --git a/frontend/public/images/business-meeting-long-table-with-chart.jpg b/frontend/public/images/business-meeting-long-table-with-chart.jpg deleted file mode 100644 index 98895b4..0000000 Binary files a/frontend/public/images/business-meeting-long-table-with-chart.jpg and /dev/null differ diff --git a/frontend/public/images/home-about.jpg b/frontend/public/images/home-about.jpg deleted file mode 100644 index 0473118..0000000 Binary files a/frontend/public/images/home-about.jpg and /dev/null differ diff --git a/frontend/public/images/home-about.webp b/frontend/public/images/home-about.webp new file mode 100644 index 0000000..69a5050 Binary files /dev/null and b/frontend/public/images/home-about.webp differ diff --git a/frontend/public/images/home-background.jpg b/frontend/public/images/home-background.jpg deleted file mode 100644 index 4f3ce85..0000000 Binary files a/frontend/public/images/home-background.jpg and /dev/null differ diff --git a/frontend/public/images/home-background.webp b/frontend/public/images/home-background.webp new file mode 100644 index 0000000..117a636 Binary files /dev/null and b/frontend/public/images/home-background.webp differ diff --git a/frontend/public/images/home-card.jpg b/frontend/public/images/home-card.jpg deleted file mode 100644 index 9d4ed09..0000000 Binary files a/frontend/public/images/home-card.jpg and /dev/null differ diff --git a/frontend/public/images/services-1.jpg b/frontend/public/images/services-1.jpg deleted file mode 100644 index 766822d..0000000 Binary files a/frontend/public/images/services-1.jpg and /dev/null differ diff --git a/frontend/public/images/services-1.webp b/frontend/public/images/services-1.webp new file mode 100644 index 0000000..af7b99b Binary files /dev/null and b/frontend/public/images/services-1.webp differ diff --git a/frontend/public/images/services-2.jpg b/frontend/public/images/services-2.jpg deleted file mode 100644 index 0c4fff3..0000000 Binary files a/frontend/public/images/services-2.jpg and /dev/null differ diff --git a/frontend/public/images/services-2.webp b/frontend/public/images/services-2.webp new file mode 100644 index 0000000..6aa8acd Binary files /dev/null and b/frontend/public/images/services-2.webp differ diff --git a/frontend/public/images/services-3.jpg b/frontend/public/images/services-3.jpg deleted file mode 100644 index 262ef17..0000000 Binary files a/frontend/public/images/services-3.jpg and /dev/null differ diff --git a/frontend/public/images/services-3.webp b/frontend/public/images/services-3.webp new file mode 100644 index 0000000..532c0b2 Binary files /dev/null and b/frontend/public/images/services-3.webp differ diff --git a/frontend/public/images/small.jpg b/frontend/public/images/small.jpg deleted file mode 100644 index f5c6ade..0000000 Binary files a/frontend/public/images/small.jpg and /dev/null differ diff --git a/frontend/public/images/small.png b/frontend/public/images/small.png deleted file mode 100644 index aa44135..0000000 Binary files a/frontend/public/images/small.png and /dev/null differ diff --git a/frontend/public/images/young-business-people-using-computer-in-office.jpg b/frontend/public/images/young-business-people-using-computer-in-office.jpg deleted file mode 100644 index fcfcb7b..0000000 Binary files a/frontend/public/images/young-business-people-using-computer-in-office.jpg and /dev/null differ diff --git a/frontend/public/llms.txt b/frontend/public/llms.txt new file mode 100644 index 0000000..334ea64 --- /dev/null +++ b/frontend/public/llms.txt @@ -0,0 +1,27 @@ +# BookKeepPro + +> Professional bookkeeping, payroll and tax preparation services for growing businesses across the US and India. + +## About + +BookKeepPro handles the books, the payroll and the filings for growing businesses, so nothing slips between the cracks of a busy quarter. Founded in 1998, we bring 27 years of accounting expertise. + +## Pages + +- [Home](https://aiindiacpa.duckdns.org/) +- [About Us](https://aiindiacpa.duckdns.org/about-us) +- [Services](https://aiindiacpa.duckdns.org/services) +- [Contact Us](https://aiindiacpa.duckdns.org/contact) + +## Services + +- **Bookkeeping** — Monthly books, closed clean and on time +- **Payroll** — Payroll runs your team can set a clock by +- **Tax** — Tax planning and prep built around your entity + +## Contact + +- USA: 2520 Indigo Dr, McKinney, TX 75072 +- India: 508 White Square, Hinjewadi Road, Pune 411057 +- Email: atharvg.aiindia@gmail.com +- Phone: +91 8275367267 diff --git a/frontend/public/robots.txt b/frontend/public/robots.txt new file mode 100644 index 0000000..e36ca2f --- /dev/null +++ b/frontend/public/robots.txt @@ -0,0 +1,17 @@ +User-agent: * +Allow: / +Disallow: /api/ +Disallow: /dashboard +Disallow: /admin-dashboard +Disallow: /admin-user-detail +Disallow: /upload-personal +Disallow: /upload-business +Disallow: /profile +Disallow: /login +Disallow: /signup +Disallow: /forgot-password +Disallow: /reset-password +Disallow: /verify-email +Disallow: /resend-verification + +Sitemap: https://aiindiacpa.duckdns.org/sitemap.xml diff --git a/frontend/public/sitemap.xml b/frontend/public/sitemap.xml new file mode 100644 index 0000000..3bd55d6 --- /dev/null +++ b/frontend/public/sitemap.xml @@ -0,0 +1,33 @@ + + + + https://aiindiacpa.duckdns.org/ + monthly + 1.0 + + + https://aiindiacpa.duckdns.org/about + monthly + 0.8 + + + https://aiindiacpa.duckdns.org/services + monthly + 0.8 + + + https://aiindiacpa.duckdns.org/contact + monthly + 0.7 + + + https://aiindiacpa.duckdns.org/login + yearly + 0.5 + + + https://aiindiacpa.duckdns.org/signup + yearly + 0.5 + + diff --git a/frontend/scripts/optimize-images.mjs b/frontend/scripts/optimize-images.mjs new file mode 100644 index 0000000..ae328c0 --- /dev/null +++ b/frontend/scripts/optimize-images.mjs @@ -0,0 +1,33 @@ +// Image optimization script using sharp +// Run: node optimize-images.mjs + +import sharp from 'sharp'; +import path from 'path'; +import { fileURLToPath } from 'url'; + +const __dirname = path.dirname(fileURLToPath(import.meta.url)); +const IMG_DIR = path.join(__dirname, '..', 'public', 'images'); + +const conversions = [ + { src: 'home-background.jpg', out: 'home-background.webp', width: 1400, quality: 80 }, + { src: 'home-about.jpg', out: 'home-about.webp', width: 800, quality: 80 }, + { src: 'services-1.jpg', out: 'services-1.webp', width: 600, quality: 80 }, + { src: 'services-2.jpg', out: 'services-2.webp', width: 600, quality: 80 }, + { src: 'services-3.jpg', out: 'services-3.webp', width: 600, quality: 80 }, +]; + +for (const { src, out, width, quality } of conversions) { + const inPath = path.join(IMG_DIR, src); + const outPath = path.join(IMG_DIR, out); + try { + const info = await sharp(inPath) + .resize({ width, withoutEnlargement: true }) + .webp({ quality }) + .toFile(outPath); + console.log(`✅ ${src} → ${out} (${(info.size / 1024).toFixed(0)} KB, ${info.width}x${info.height})`); + } catch (err) { + console.error(`❌ ${src}: ${err.message}`); + } +} + +console.log('\nDone! You can now delete the original .jpg files if desired.'); diff --git a/frontend/src/App.jsx b/frontend/src/App.jsx index be00768..89d6fd0 100644 --- a/frontend/src/App.jsx +++ b/frontend/src/App.jsx @@ -1,6 +1,5 @@ import { BrowserRouter, Routes, Route, Navigate } from 'react-router-dom'; import { AuthProvider, useAuth } from './context/AuthContext'; -import { ThemeProvider } from './context/ThemeContext'; import { ToastProvider } from './context/ToastContext'; // Layouts @@ -133,13 +132,11 @@ function AppRoutes() { function App() { return ( - - - - - - - + + + + + ); } diff --git a/frontend/src/components/AdminChatbot.jsx b/frontend/src/components/AdminChatbot.jsx index edaed0f..fac99be 100644 --- a/frontend/src/components/AdminChatbot.jsx +++ b/frontend/src/components/AdminChatbot.jsx @@ -2,8 +2,7 @@ import { useState, useRef, useEffect, useCallback } from 'react'; import { useAuth } from '../context/AuthContext'; import { useLocation } from 'react-router-dom'; -const STORAGE_KEY = 'admin_chat_history'; -const MAX_HISTORY = 40; // messages to persist +const STORAGE_KEY = 'admin_chat_session_id'; const FAQ_DATA = { "Document Review": [ @@ -43,26 +42,41 @@ export default function AdminChatbot() { const [pendingBulk, setPendingBulk] = useState(null); // bulk action awaiting confirmation const chatEndRef = useRef(null); - // ── Conversation memory via localStorage ────────────────────────────────── - const [messages, setMessages] = useState(() => { - try { - const saved = localStorage.getItem(STORAGE_KEY); - return saved ? JSON.parse(saved) : []; - } catch { return []; } - }); + const [messages, setMessages] = useState([]); + const [sessionId, setSessionId] = useState(null); - // Persist messages to localStorage whenever they change useEffect(() => { - try { - localStorage.setItem(STORAGE_KEY, JSON.stringify(messages.slice(-MAX_HISTORY))); - } catch { /* storage full — ignore */ } - }, [messages]); + if (!user) return; + async function loadHistory() { + const savedSession = localStorage.getItem(STORAGE_KEY); + const url = savedSession ? `/api/chatbot/history?session_id=${savedSession}` : '/api/chatbot/history'; + try { + const res = await authFetch(url); + if (res.ok) { + const data = await res.json(); + setSessionId(data.session_id); + localStorage.setItem(STORAGE_KEY, data.session_id); + const loaded = data.messages.map(m => ({ + type: m.role === 'user' ? 'user' : 'bot', + role: m.role, + text: m.content || '', + ...m + })).filter(m => m.role === 'user' || m.role === 'assistant'); + setMessages(loaded); + } + } catch (e) { + console.error("Failed to load admin chat history", e); + } + } + loadHistory(); + }, [authFetch, user]); useEffect(() => { setIsOpen(false); }, [location.pathname]); useEffect(() => { chatEndRef.current?.scrollIntoView({ behavior: 'smooth' }); }, [messages, view]); const clearHistory = () => { setMessages([]); + setSessionId(null); localStorage.removeItem(STORAGE_KEY); }; @@ -121,11 +135,8 @@ export default function AdminChatbot() { headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ stream: false, - messages: allMessages.map(m => ({ - role: m.role || (m.type === 'bot' ? 'assistant' : 'user'), - content: m.text, - reasoning_details: null, - })), + session_id: sessionId, + message: text, }), }); diff --git a/frontend/src/components/Chatbot.jsx b/frontend/src/components/Chatbot.jsx index bdd08e2..bd73377 100644 --- a/frontend/src/components/Chatbot.jsx +++ b/frontend/src/components/Chatbot.jsx @@ -2,8 +2,7 @@ import { useState, useRef, useEffect, useCallback } from 'react'; import { useAuth } from '../context/AuthContext'; import { useLocation, useNavigate } from 'react-router-dom'; -const STORAGE_KEY = 'user_chat_history'; -const MAX_HISTORY = 30; +const STORAGE_KEY = 'user_chat_session_id'; const FAQ_DATA = { "Account": [ @@ -48,23 +47,39 @@ export default function Chatbot() { const [isTyping, setIsTyping] = useState(false); const chatEndRef = useRef(null); - // ── Conversation memory via localStorage ────────────────────────────────── - const [messages, setMessages] = useState(() => { - try { - const saved = localStorage.getItem(STORAGE_KEY); - return saved ? JSON.parse(saved) : []; - } catch { return []; } - }); + const [messages, setMessages] = useState([]); + const [sessionId, setSessionId] = useState(null); useEffect(() => { - try { localStorage.setItem(STORAGE_KEY, JSON.stringify(messages.slice(-MAX_HISTORY))); } - catch { /* storage full */ } - }, [messages]); + if (!user) return; + async function loadHistory() { + const savedSession = localStorage.getItem(STORAGE_KEY); + const url = savedSession ? `/api/chatbot/history?session_id=${savedSession}` : '/api/chatbot/history'; + try { + const res = await authFetch(url); + if (res.ok) { + const data = await res.json(); + setSessionId(data.session_id); + localStorage.setItem(STORAGE_KEY, data.session_id); + const loaded = data.messages.map(m => ({ + type: m.role === 'user' ? 'user' : 'bot', + role: m.role, + text: m.content || '', + ...m + })).filter(m => m.role === 'user' || m.role === 'assistant'); + setMessages(loaded); + } + } catch (e) { + console.error("Failed to load chat history", e); + } + } + loadHistory(); + }, [authFetch, user]); useEffect(() => { setIsOpen(false); }, [location.pathname]); useEffect(() => { chatEndRef.current?.scrollIntoView({ behavior: 'smooth' }); }, [messages, view]); - const clearHistory = () => { setMessages([]); localStorage.removeItem(STORAGE_KEY); }; + const clearHistory = () => { setMessages([]); setSessionId(null); localStorage.removeItem(STORAGE_KEY); }; // ── Document status quick-check ──────────────────────────────────────────── const handleDocStatusCheck = async () => { @@ -127,11 +142,8 @@ export default function Chatbot() { headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ stream: false, - messages: allMessages.map(m => ({ - role: m.role || (m.type === 'bot' ? 'assistant' : 'user'), - content: m.text, - reasoning_details: null, - })), + session_id: sessionId, + message: text, }), }); if (res.ok) { diff --git a/frontend/src/components/ExpandableSummaryBlock.jsx b/frontend/src/components/ExpandableSummaryBlock.jsx index 4611171..8266d7d 100644 --- a/frontend/src/components/ExpandableSummaryBlock.jsx +++ b/frontend/src/components/ExpandableSummaryBlock.jsx @@ -8,14 +8,18 @@ const CONFIDENCE_STYLES = { unknown: { icon: '⚪', color: 'var(--muted)', bg: 'var(--paper)' }, }; -export default function ExpandableSummaryBlock({ extractedData }) { +export default function ExpandableSummaryBlock({ extractedData, onSave }) { const [expanded, setExpanded] = useState(false); + const [isEditing, setIsEditing] = useState(false); + const [editValue, setEditValue] = useState(""); + const [saveError, setSaveError] = useState(""); + const [isSaving, setIsSaving] = useState(false); // Separate _meta from the actual data fields const { _meta, ...dataFields } = extractedData || {}; const entries = Object.entries(dataFields); - if (entries.length === 0) { + if (entries.length === 0 && !isEditing) { return (
Blank form / No user data found. @@ -23,36 +27,147 @@ export default function ExpandableSummaryBlock({ extractedData }) { ); } + const handleEditClick = () => { + setEditValue(JSON.stringify(extractedData || {}, null, 2)); + setSaveError(""); + setIsEditing(true); + }; + + const handleCancelEdit = () => { + setIsEditing(false); + setSaveError(""); + }; + + const handleSave = async () => { + setSaveError(""); + let parsed = null; + try { + parsed = JSON.parse(editValue); + } catch (err) { console.error(err); + setSaveError("Invalid JSON format"); + return; + } + + if (onSave) { + setIsSaving(true); + try { + await onSave(parsed); + setIsEditing(false); + } catch (err) { console.error(err); + setSaveError("Failed to save changes"); + } finally { + setIsSaving(false); + } + } + }; + + const handleExport = () => { + // Convert extracted data into a 2-column CSV (Field, Value) + const { _meta, ...dataFields } = extractedData || {}; + + const escapeCsv = (str) => { + const s = String(str); + if (s.includes(',') || s.includes('"') || s.includes('\n')) { + return `"${s.replace(/"/g, '""')}"`; + } + return s; + }; + + const csvRows = ['Field,Value']; + Object.entries(dataFields).forEach(([key, val]) => { + let valStr = val; + if (Array.isArray(val)) { + valStr = val.join('; '); + } else if (typeof val === 'object' && val !== null) { + valStr = JSON.stringify(val); + } + csvRows.push(`${escapeCsv(key)},${escapeCsv(valStr)}`); + }); + + const csvContent = csvRows.join('\n'); + const blob = new Blob([csvContent], { type: "text/csv;charset=utf-8;" }); + const url = URL.createObjectURL(blob); + const a = document.createElement("a"); + a.href = url; + a.download = `extracted_data.csv`; + document.body.appendChild(a); + a.click(); + document.body.removeChild(a); + URL.revokeObjectURL(url); + }; + const showToggle = entries.length > 3; const entriesToShow = expanded ? entries : entries.slice(0, 3); const confidenceStyle = CONFIDENCE_STYLES[_meta?.tier] || CONFIDENCE_STYLES.unknown; + if (isEditing) { + return ( +
+
Edit Extracted Data (JSON)
+