From f44258d134dda61bed137a30de78e7daee4d1c38 Mon Sep 17 00:00:00 2001 From: Laux Dev <2201104208@student.buksu.edu.ph> Date: Fri, 13 Mar 2026 14:38:46 +0800 Subject: [PATCH] add responsiveness --- .../buttons/primarybutton/styles.module.css | 2 +- frontend/src/app/components/icons/publish.jsx | 22 +++ .../src/app/components/icons/viewLogs.jsx | 23 +++ .../src/app/components/sidebar/Sidebar.jsx | 61 ++++++-- .../app/components/sidebar/styles.module.css | 28 +++- .../app/components/topHeader/TopHeader.jsx | 18 ++- .../components/topHeader/styles.module.css | 7 +- frontend/src/app/credentials/card/Card.jsx | 25 ++++ .../app/credentials/card/styles.module.css | 42 ++++++ frontend/src/app/credentials/page.jsx | 66 +++++---- .../src/app/credentials/styles.module.css | 11 ++ frontend/src/app/globals.css | 12 ++ frontend/src/app/hooks/useIsMobile.jsx | 15 ++ .../app/organization/add/styles.module.css | 4 +- frontend/src/app/organization/card/Card.jsx | 25 ++++ .../app/organization/card/styles.module.css | 42 ++++++ frontend/src/app/organization/page.jsx | 71 +++++---- .../src/app/organization/styles.module.css | 15 +- .../src/app/projects/add/styles.module.css | 4 +- frontend/src/app/projects/page.jsx | 137 ++++++++++-------- .../src/app/projects/project-card/Card.jsx | 46 ++++++ .../projects/project-card/styles.module.css | 48 ++++++ frontend/src/app/projects/styles.module.css | 23 ++- .../projects/view/add-from-scratch/page.jsx | 4 +- frontend/src/app/projects/view/page.jsx | 2 +- .../src/app/projects/view/styles.module.css | 10 +- .../AddConfigMap/AddConfigMapModal.jsx | 2 +- .../AddVolumes/AddVolumeModal.jsx | 2 +- 28 files changed, 617 insertions(+), 150 deletions(-) create mode 100644 frontend/src/app/components/icons/publish.jsx create mode 100644 frontend/src/app/components/icons/viewLogs.jsx create mode 100644 frontend/src/app/credentials/card/Card.jsx create mode 100644 frontend/src/app/credentials/card/styles.module.css create mode 100644 frontend/src/app/hooks/useIsMobile.jsx create mode 100644 frontend/src/app/organization/card/Card.jsx create mode 100644 frontend/src/app/organization/card/styles.module.css create mode 100644 frontend/src/app/projects/project-card/Card.jsx create mode 100644 frontend/src/app/projects/project-card/styles.module.css diff --git a/frontend/src/app/components/buttons/primarybutton/styles.module.css b/frontend/src/app/components/buttons/primarybutton/styles.module.css index 0df0348..223f4c6 100644 --- a/frontend/src/app/components/buttons/primarybutton/styles.module.css +++ b/frontend/src/app/components/buttons/primarybutton/styles.module.css @@ -1,6 +1,6 @@ .button { display: flex; - padding: 7px 15px; + padding: 8px 12px; justify-content: center; align-items: center; gap: 10px; diff --git a/frontend/src/app/components/icons/publish.jsx b/frontend/src/app/components/icons/publish.jsx new file mode 100644 index 0000000..697c2ae --- /dev/null +++ b/frontend/src/app/components/icons/publish.jsx @@ -0,0 +1,22 @@ +import React from "react"; + +const PublishIcon = () => { + return ( + + ); +}; + +export default PublishIcon; diff --git a/frontend/src/app/components/icons/viewLogs.jsx b/frontend/src/app/components/icons/viewLogs.jsx new file mode 100644 index 0000000..102c4ab --- /dev/null +++ b/frontend/src/app/components/icons/viewLogs.jsx @@ -0,0 +1,23 @@ +import React from "react"; + +const ViewLogsIcon = () => { + return ( + + ); +}; + +export default ViewLogsIcon; diff --git a/frontend/src/app/components/sidebar/Sidebar.jsx b/frontend/src/app/components/sidebar/Sidebar.jsx index fa6bb22..b8d70a6 100644 --- a/frontend/src/app/components/sidebar/Sidebar.jsx +++ b/frontend/src/app/components/sidebar/Sidebar.jsx @@ -1,5 +1,5 @@ "use client"; -import React from "react"; +import React, { useState } from "react"; import styles from "./styles.module.css"; import { usePathname, useRouter } from "next/navigation"; @@ -15,6 +15,7 @@ import LogoIcon from "../icons/logo"; const Sidebar = () => { const router = useRouter(); + const [isCollapsed, setIsCollapsed] = useState(false); const navToHome = () => { router.push("/home"); }; @@ -40,15 +41,19 @@ const Sidebar = () => { const pathname = usePathname(); console.log(pathname); return ( -
Internal Developer Platform
By Project Moonshot Inc.
Home
++ Home +
Organization
++ Organization +
Project
++ Project +
Users
++ Users +
Roles
++ Roles +
Credentials
++ Credentials +
Agents
++ Agents +
Download ICTL v3
++ Download ICTL v3 +
View Logs
+Publish Service
+Name
+mongo tls ca crt
+Organization ID
+67160a5ae69144ff19aafb86
+| Name | -Organization ID | -- |
|---|
| Name | +Organization ID | ++ |
|---|---|---|
| {org.name} | -{org.organizationID} | -
-
-
- |
-
Organization Name
+ProjectMoonShot Inc.
+Date Created
+2024-10-21 08:01:30.556 +0000 UTC
+| Organization Name | -Date Created | -- |
|---|
| Organization Name | +Date Created | ++ |
|---|---|---|
| {org.organizationName} | -{org.dateCreated} | -
-
-
- |
-
| Name | -Version | -CPU Used/Limit | -Memory Used/Limit | -Storage Used/Limit | -Date Created | -- | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {project.name} | -{project.version} | -- {project.cpuUsed} /{" "} - {project.cpuLimit} - | -- - {project.memoryUsed} - {" "} - /{" "} - - {project.memoryLimit} - - | -- - {project.storageUsed} - {" "} - /{" "} - - {project.storageLimit} - - | -{project.dateCreated} | -
-
-
-
+
+ ) : (
+
+
+
|
+
Name
+DOKS One Cooperative Bank Backend Develop
+CPU Used/Limit
++ 13500 /{" "} + 20000 +
+Memory Used/Limit
++ 13500 /{" "} + 20000 +
+Storage Used/Limit
++ 10000 /{" "} + 1000000 +
+Date Created
+2025-11-07 01:43:18.313 +0000 UTC
+