diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..5aee630 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,65 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "type": "edge", + "request": "launch", + "name": "Launch Chrome against localhost", + "url": "http://localhost:8080", + "webRoot": "${workspaceFolder}" + }, + { + "type": "pwa-msedge", + "name": "Launch Microsoft Edge", + "request": "launch", + "runtimeArgs": [ + "--remote-debugging-port=9222" + ], + "url": "c:\\Users\\tilan\\.vscode\\extensions\\ms-edgedevtools.vscode-edge-devtools-2.1.8\\out\\startpage\\index.html", // Provide your project's url to finish configuring + "presentation": { + "hidden": true + } + }, + { + "type": "pwa-msedge", + "name": "Launch Microsoft Edge in headless mode", + "request": "launch", + "runtimeArgs": [ + "--headless", + "--remote-debugging-port=9222" + ], + "url": "c:\\Users\\tilan\\.vscode\\extensions\\ms-edgedevtools.vscode-edge-devtools-2.1.8\\out\\startpage\\index.html", // Provide your project's url to finish configuring + "presentation": { + "hidden": true + } + }, + { + "type": "vscode-edge-devtools.debug", + "name": "Open Edge DevTools", + "request": "attach", + "url": "c:\\Users\\tilan\\.vscode\\extensions\\ms-edgedevtools.vscode-edge-devtools-2.1.8\\out\\startpage\\index.html", // Provide your project's url to finish configuring + "presentation": { + "hidden": true + } + } + ], + "compounds": [ + { + "name": "Launch Edge Headless and attach DevTools", + "configurations": [ + "Launch Microsoft Edge in headless mode", + "Open Edge DevTools" + ] + }, + { + "name": "Launch Edge and attach DevTools", + "configurations": [ + "Launch Microsoft Edge", + "Open Edge DevTools" + ] + } + ] +} \ No newline at end of file diff --git a/src/App.css b/src/App.css index 74b5e05..4199fa7 100644 --- a/src/App.css +++ b/src/App.css @@ -1,38 +1,133 @@ -.App { - text-align: center; +/* General Styling */ +body { + font-family: 'Source Sans Pro', sans-serif; + background-color: #f8f9fa; + margin: 0; + padding: 0; } -.App-logo { - height: 40vmin; - pointer-events: none; +/* Page Header Styling */ +.page-header { + background: linear-gradient(to right, #007bff, #6610f2); + padding: 30px 0; + text-align: center; + border-radius: 10px; + margin-bottom: 20px; + box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1); } -@media (prefers-reduced-motion: no-preference) { - .App-logo { - animation: App-logo-spin infinite 20s linear; - } +.page-header h1 { + font-family: 'Oxygen', sans-serif; + font-size: 2rem; + font-weight: bold; + color: white; + margin: 0; } -.App-header { - background-color: #282c34; - min-height: 100vh; +.breadcrumb { display: flex; - flex-direction: column; - align-items: center; justify-content: center; - font-size: calc(10px + 2vmin); - color: white; + gap: 10px; + padding: 0; + margin-bottom: 10px; + list-style: none; +} + +.breadcrumb li { + font-size: 1rem; +} + +.breadcrumb li a { + color: #f8f9fa; + text-decoration: none; + transition: all 0.3s ease-in-out; +} + +.breadcrumb li a:hover { + text-decoration: underline; + color: #ffea00; +} + +/* Statistics Cards */ +.stat-card { + padding: 20px; + text-align: center; + font-weight: bold; + border-radius: 10px; + box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1); + transition: all 0.3s ease-in-out; +} + +.stat-card:hover { + transform: scale(1.05); + box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.2); +} + +/* Chart Cards */ +.chart-card { + padding: 20px; + text-align: center; + border-radius: 10px; + box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1); + background: white; + transition: all 0.3s ease-in-out; } -.App-link { - color: #61dafb; +.chart-card:hover { + transform: scale(1.02); + box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.2); } -@keyframes App-logo-spin { - from { - transform: rotate(0deg); +/* Responsive Design */ +@media (max-width: 768px) { + .container { + padding: 15px; } - to { - transform: rotate(360deg); + + .page-header { + padding: 20px 0; + } + + .page-header h1 { + font-size: 1.5rem; + } + + .breadcrumb { + font-size: 0.9rem; } + + .stat-card { + padding: 15px; + } + + .chart-card { + padding: 15px; + } +} + +/* User Profile Card Styling */ +.user-profile-card { + border: none; + border-radius: 15px; + overflow: hidden; +} + +.user-profile-img { + width: 150px; + height: 150px; + object-fit: cover; +} + +.user-name { + font-size: 1.25rem; + font-weight: bold; +} + +.user-email { + font-size: 1rem; +} + +.user-contact { + font-size: 1rem; + margin-top: 10px; } diff --git a/src/App.js b/src/App.js index 83757e1..20e149f 100644 --- a/src/App.js +++ b/src/App.js @@ -1,41 +1,82 @@ import React from "react"; import { BrowserRouter as Router, Routes, Route, Link } from "react-router-dom"; +import { Navbar, Nav, NavDropdown, Container } from "react-bootstrap"; import UserViewModel from "./viewmodels/UserViewModel"; +import "bootstrap/dist/css/bootstrap.min.css"; +import "./App.css"; +// Import Components +import DashBoard from "./components/DashBoard"; +import AssignTasksMonitoring from "./components/AssignTasksMonitoring"; import UserList from "./components/UserList"; import AddUserForm from "./components/AddUserForm"; import AssignTasks from "./components/AssignTasks"; import TaskList from "./components/TaskList"; -import DashBoard from "./components/DashBoard"; +import Footer from "./components/Footer"; +import TaskDetails from "./components/TaskDetails"; +import EditTask from "./components/EditTask"; +import ReadUser from "./components/UserDetails"; +import EditUser from "./components/EditUser"; const App = () => { - const { handleusers, handleAddUser, handleAssignTasks, handleDashboard} = UserViewModel(); + let handleusers, handleAddUser, handleAssignTasks, handleDashboard, handleassignTasksMonitoring, handleDelete; + + try { + ({ handleusers, handleAddUser, handleAssignTasks, handleDashboard, handleassignTasksMonitoring, handleDelete } = UserViewModel()); + } catch (error) { + console.error("Error initializing UserViewModel:", error); + } return (
-

Management App

- - {/* Navigation Links */} - + {/* Navigation Bar */} + + + Task Manager + + + + + + {/* Routes */} - - } /> - } /> - } /> - } /> - } /> + + } /> + } /> + } /> + } /> + } /> + + {/* User Routes */} + } /> + } /> + } /> + + {/* Task Routes */} + } /> + } />
+ + {/* Footer */} +