From a6ae45d9cfc011abbcb2539c070f20ca0d7fca5d Mon Sep 17 00:00:00 2001 From: Laux Dev <2201104208@student.buksu.edu.ph> Date: Tue, 24 Feb 2026 10:50:14 +0800 Subject: [PATCH] Added navigations pages --- frontend/src/app/agents/page.jsx | 7 ++ frontend/src/app/agents/styles.module.css | 0 .../src/app/components/sidebar/Sidebar.jsx | 64 +++++++++++++++++-- .../app/components/sidebar/styles.module.css | 1 + frontend/src/app/credentials/page.jsx | 7 ++ .../src/app/credentials/styles.module.css | 0 frontend/src/app/home/page.jsx | 7 ++ frontend/src/app/home/styles.module.css | 0 frontend/src/app/layout.js | 2 +- frontend/src/app/organization/page.jsx | 14 ++++ .../src/app/organization/styles.module.css | 0 frontend/src/app/projects/page.jsx | 7 ++ frontend/src/app/projects/styles.module.css | 0 frontend/src/app/roles/page.jsx | 7 ++ frontend/src/app/roles/styles.module.css | 0 frontend/src/app/users/page.jsx | 7 ++ frontend/src/app/users/styles.module.css | 0 17 files changed, 115 insertions(+), 8 deletions(-) create mode 100644 frontend/src/app/agents/page.jsx create mode 100644 frontend/src/app/agents/styles.module.css create mode 100644 frontend/src/app/credentials/page.jsx create mode 100644 frontend/src/app/credentials/styles.module.css create mode 100644 frontend/src/app/home/page.jsx create mode 100644 frontend/src/app/home/styles.module.css create mode 100644 frontend/src/app/organization/page.jsx create mode 100644 frontend/src/app/organization/styles.module.css create mode 100644 frontend/src/app/projects/page.jsx create mode 100644 frontend/src/app/projects/styles.module.css create mode 100644 frontend/src/app/roles/page.jsx create mode 100644 frontend/src/app/roles/styles.module.css create mode 100644 frontend/src/app/users/page.jsx create mode 100644 frontend/src/app/users/styles.module.css diff --git a/frontend/src/app/agents/page.jsx b/frontend/src/app/agents/page.jsx new file mode 100644 index 0000000..5955013 --- /dev/null +++ b/frontend/src/app/agents/page.jsx @@ -0,0 +1,7 @@ +import React from "react"; + +const AgentsPage = () => { + return
; +}; + +export default AgentsPage; diff --git a/frontend/src/app/agents/styles.module.css b/frontend/src/app/agents/styles.module.css new file mode 100644 index 0000000..e69de29 diff --git a/frontend/src/app/components/sidebar/Sidebar.jsx b/frontend/src/app/components/sidebar/Sidebar.jsx index f378bb2..e593069 100644 --- a/frontend/src/app/components/sidebar/Sidebar.jsx +++ b/frontend/src/app/components/sidebar/Sidebar.jsx @@ -1,6 +1,35 @@ +"use client"; import React from "react"; import styles from "./styles.module.css"; + +import { usePathname, useRouter } from "next/navigation"; + const Sidebar = () => { + const router = useRouter(); + const navToHome = () => { + router.push("/home"); + }; + const navToOrganization = () => { + router.push("/organization"); + }; + const navToProject = () => { + router.push("/projects"); + }; + const navToUsers = () => { + router.push("/users"); + }; + const navToRoles = () => { + router.push("/roles"); + }; + const navToCredentials = () => { + router.push("/credentials"); + }; + const navToAgents = () => { + router.push("/agents"); + }; + + const pathname = usePathname(); + console.log(pathname); return (
@@ -61,7 +90,10 @@ const Sidebar = () => {
{/* Navigations */}
-
+
{

Home

-
+
{

Organization

-
+
{

Project

-
+
{

Users

-
+
{

Roles

-
+
{

Credentials

-
+
{ + return
; +}; + +export default CredentialsPage; diff --git a/frontend/src/app/credentials/styles.module.css b/frontend/src/app/credentials/styles.module.css new file mode 100644 index 0000000..e69de29 diff --git a/frontend/src/app/home/page.jsx b/frontend/src/app/home/page.jsx new file mode 100644 index 0000000..ef59498 --- /dev/null +++ b/frontend/src/app/home/page.jsx @@ -0,0 +1,7 @@ +import React from "react"; + +const HomePage = () => { + return
; +}; + +export default HomePage; diff --git a/frontend/src/app/home/styles.module.css b/frontend/src/app/home/styles.module.css new file mode 100644 index 0000000..e69de29 diff --git a/frontend/src/app/layout.js b/frontend/src/app/layout.js index af151fa..93f1bd0 100644 --- a/frontend/src/app/layout.js +++ b/frontend/src/app/layout.js @@ -1,4 +1,4 @@ -import { Geist, Geist_Mono, Inter } from "next/font/google"; +import { Inter } from "next/font/google"; import Sidebar from "./components/sidebar/Sidebar"; import Header from "./components/header/Header"; import "./globals.css"; diff --git a/frontend/src/app/organization/page.jsx b/frontend/src/app/organization/page.jsx new file mode 100644 index 0000000..c5ca088 --- /dev/null +++ b/frontend/src/app/organization/page.jsx @@ -0,0 +1,14 @@ +import React from "react"; +import styles from "./styles.module.css"; + +const OrganizationPage = () => { + return ( +
+
+
+
+
+ ); +}; + +export default OrganizationPage; diff --git a/frontend/src/app/organization/styles.module.css b/frontend/src/app/organization/styles.module.css new file mode 100644 index 0000000..e69de29 diff --git a/frontend/src/app/projects/page.jsx b/frontend/src/app/projects/page.jsx new file mode 100644 index 0000000..3b03d87 --- /dev/null +++ b/frontend/src/app/projects/page.jsx @@ -0,0 +1,7 @@ +import React from "react"; + +const ProjectsPage = () => { + return
; +}; + +export default ProjectsPage; diff --git a/frontend/src/app/projects/styles.module.css b/frontend/src/app/projects/styles.module.css new file mode 100644 index 0000000..e69de29 diff --git a/frontend/src/app/roles/page.jsx b/frontend/src/app/roles/page.jsx new file mode 100644 index 0000000..de62417 --- /dev/null +++ b/frontend/src/app/roles/page.jsx @@ -0,0 +1,7 @@ +import React from "react"; + +const RolesPage = () => { + return
; +}; + +export default RolesPage; diff --git a/frontend/src/app/roles/styles.module.css b/frontend/src/app/roles/styles.module.css new file mode 100644 index 0000000..e69de29 diff --git a/frontend/src/app/users/page.jsx b/frontend/src/app/users/page.jsx new file mode 100644 index 0000000..34f2e7d --- /dev/null +++ b/frontend/src/app/users/page.jsx @@ -0,0 +1,7 @@ +import React from "react"; + +const UsersPage = () => { + return
; +}; + +export default UsersPage; diff --git a/frontend/src/app/users/styles.module.css b/frontend/src/app/users/styles.module.css new file mode 100644 index 0000000..e69de29