diff --git a/frontend/public/images/BadgeImage.png b/frontend/public/images/BadgeImage.png new file mode 100644 index 0000000..9444049 Binary files /dev/null and b/frontend/public/images/BadgeImage.png differ diff --git a/frontend/src/app/components/sidebar/Sidebar.jsx b/frontend/src/app/components/sidebar/Sidebar.jsx index 2201a46..8dfad43 100644 --- a/frontend/src/app/components/sidebar/Sidebar.jsx +++ b/frontend/src/app/components/sidebar/Sidebar.jsx @@ -91,7 +91,7 @@ const Sidebar = () => { {/* Navigations */}
{

Home

{
{
{
{
{
{ const pathName = usePathname(); - console.log(pathName); + const router = useRouter(); + const handleNavigateToAdd = () => { + router.push(`${pathName}/add`); + }; return (

{props.topbarTitle}

-
- - - -
+ {!props.state && ( +
+ + + +
+ )} {pathName === "/credentials" ? (
{ ) : ( "" )} -
- - - - -

{props.buttonText}

-
+ {!props.state && ( +
+ + + + +

{props.buttonText}

+
+ )} + {props.state === "add" ? ( + <> +
+ + + +

{props.buttonText}

+
+
router.back()}> +

{props.cancelButtonText}

+
+ + ) : ( + "" + )}
); diff --git a/frontend/src/app/components/topHeader/styles.module.css b/frontend/src/app/components/topHeader/styles.module.css index e36243d..7f6b869 100644 --- a/frontend/src/app/components/topHeader/styles.module.css +++ b/frontend/src/app/components/topHeader/styles.module.css @@ -55,6 +55,7 @@ border-radius: 6px; border-radius: 6px; border: 1px solid #5358f200; + cursor: pointer; } .mngEnvKeyButton > p { color: #8187ff; @@ -75,3 +76,19 @@ .mngEnvKeyButton:hover path { stroke: white; } +.cancelButton { + display: flex; + height: 36px; + padding: 9px 12px; + justify-content: center; + align-items: center; + gap: 8px; + border-radius: 6px; + border: 0.5px solid #4e537e; + cursor: pointer; +} +.cancelButton:hover { + border-radius: 6px; + border: 1px solid #8e98e7; + background: linear-gradient(180deg, #8e98e6 0%, #4d537e 100%); +} diff --git a/frontend/src/app/globals.css b/frontend/src/app/globals.css index ea52196..90815f3 100644 --- a/frontend/src/app/globals.css +++ b/frontend/src/app/globals.css @@ -1,11 +1,11 @@ :root { --background: #d2d3e0; - --foreground: #1c1d28; + --foreground: #191a24; } @media (prefers-color-scheme: dark) { :root { - --background: #1c1d28; + --background: #191a24; --foreground: #d2d3e0; } } diff --git a/frontend/src/app/organization/add/page.jsx b/frontend/src/app/organization/add/page.jsx new file mode 100644 index 0000000..2a2a07f --- /dev/null +++ b/frontend/src/app/organization/add/page.jsx @@ -0,0 +1,148 @@ +import React from "react"; +import globalStyle from "../../globalStyle.module.css"; +import TopHeader from "@/app/components/topHeader/TopHeader"; +import styles from "./styles.module.css"; +import Image from "next/image"; +const AddCredentials = () => { + return ( +
+
+
+ +
+
+
+ + + + + +

Complete the input field before saving

+
+
+
+
+
+
+
+
+ badge image +
+
+ + + + +
+
+
+
+

+ Organization Badge(Optional) +

+
+
+
+
+
+

+ Organization Name * +

+
+
+ +
+ + + + + +

The name is already in used. You can try another.

+
+
+
+
+
+
+
+
+ ); +}; + +export default AddCredentials; diff --git a/frontend/src/app/organization/add/styles.module.css b/frontend/src/app/organization/add/styles.module.css new file mode 100644 index 0000000..082363a --- /dev/null +++ b/frontend/src/app/organization/add/styles.module.css @@ -0,0 +1,191 @@ +.contentContainer { + display: flex; + flex-direction: column; + align-items: center; + gap: 48px; + flex: 1 0 0; + align-self: stretch; +} +.upperToolTips { + display: flex; + padding: 10px; + justify-content: center; + align-items: center; + gap: 10px; + align-self: stretch; + background: #959aff; +} +.upperToolTips > div { + display: flex; + align-items: center; + gap: 10px; +} +.upperToolTips > div > p { + color: #191a24; + text-align: center; + font-family: Inter; + font-size: 16px; + font-style: normal; + font-weight: 400; + line-height: normal; +} +.createProjectForm { + display: flex; + padding: 24px; + flex-direction: column; + justify-content: center; + align-items: center; + gap: 32px; +} +.organizationBadgeContainer { + display: flex; + align-items: center; + gap: 10px; + align-self: stretch; +} +.organizationBadge { + display: flex; + align-items: center; + gap: 10px; + flex: 1 0 0; +} +.organizationBadgeDetails { + display: flex; + padding: 4px; + justify-content: center; + align-items: center; + gap: 10px; +} +.relativeContainer { + display: flex; + padding: 4px; + justify-content: center; + align-items: center; + gap: 10px; + position: relative; +} +.imageContainer { + display: flex; + width: 70px; + height: 70px; + padding: 11px; + justify-content: center; + align-items: center; + aspect-ratio: 1/1; + border-radius: 100px; + border: 1px solid #616583; + background: #4b4f6d; +} +.addIconContainer { + display: flex; + width: 27.813px; + height: 27.813px; + flex-direction: column; + justify-content: center; + align-items: center; + position: absolute; + right: 4.188px; + bottom: 4.187px; + box-shadow: 0 0 6px 0 rgba(0, 0, 0, 0.25); + border-radius: 100px; + background: #696b95; +} +.labels { + display: flex; + align-items: flex-start; + gap: 2px; + flex: 1 0 0; +} +.labels > p { + color: #d2d3e1; + color: color(display-p3 0.8235 0.8275 0.8784); + font-family: Inter; + font-size: 16px; + font-style: normal; + font-weight: 400; + line-height: normal; +} +.labels > p span { + color: #85869b; + font-family: Inter; + font-size: 16px; + font-style: normal; + font-weight: 300; + line-height: normal; +} +.inputGroup { + display: flex; + width: 500px; + flex-direction: column; + align-items: flex-start; + gap: 12px; +} +.inputLabel { + display: flex; + align-items: flex-start; + gap: 2px; + align-self: stretch; +} +.inputLabel > p { + color: #d2d3e1; + font-family: Inter; + font-size: 16px; + font-style: normal; + font-weight: 400; + line-height: normal; +} + +.inputLabel > p span { + color: #cfb000; + + font-weight: 600; +} +.inputField { + display: flex; + flex-direction: column; + align-items: flex-start; + gap: 8px; + align-self: stretch; +} +.inputField > input { + display: flex; + height: 44px; + padding: 12px 16px; + flex-direction: column; + justify-content: center; + align-items: flex-start; + gap: 10px; + align-self: stretch; + border-radius: 6px; + border: 1px solid #616583; + background-color: transparent; + color: #85869b; + font-family: Inter; + font-size: 16px; + font-style: normal; + font-weight: 400; + line-height: normal; +} +.inputField > input::placeholder { + color: #85869b; + font-family: Inter; + font-size: 16px; + font-style: normal; + font-weight: 400; + line-height: normal; +} +.prompts { + display: flex; + align-items: center; + gap: 8px; + align-self: stretch; +} +.prompts > p { + color: #d49e3d; + font-family: Inter; + font-size: 14px; + font-style: normal; + font-weight: 400; + line-height: normal; + letter-spacing: -0.07px; +} diff --git a/frontend/src/app/organization/page.jsx b/frontend/src/app/organization/page.jsx index 798935d..a3ad9e0 100644 --- a/frontend/src/app/organization/page.jsx +++ b/frontend/src/app/organization/page.jsx @@ -69,9 +69,9 @@ const OrganizationPage = () => { - - - + + + diff --git a/frontend/src/app/organization/styles.module.css b/frontend/src/app/organization/styles.module.css index 304fecd..349bf30 100644 --- a/frontend/src/app/organization/styles.module.css +++ b/frontend/src/app/organization/styles.module.css @@ -17,7 +17,6 @@ padding: 12px 24px; gap: 17px; text-align: start; - align-self: stretch; } .tableContainer > table > thead > tr { border-bottom: 1px solid #212235;
Organization NameDate CreatedActionsOrganization NameDate CreatedActions