diff --git a/frontend/src/app/components/topToolTip/TopToolTip.jsx b/frontend/src/app/components/topToolTip/TopToolTip.jsx new file mode 100644 index 0000000..b02d62d --- /dev/null +++ b/frontend/src/app/components/topToolTip/TopToolTip.jsx @@ -0,0 +1,43 @@ +import React from "react"; +import styles from "./styles.module.css"; + +const TopToolTip = () => { + return ( +
+
+ + + + + +

Complete the input field before saving

+
+
+ ); +}; + +export default TopToolTip; diff --git a/frontend/src/app/components/topToolTip/styles.module.css b/frontend/src/app/components/topToolTip/styles.module.css new file mode 100644 index 0000000..49b6f07 --- /dev/null +++ b/frontend/src/app/components/topToolTip/styles.module.css @@ -0,0 +1,23 @@ +.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; +} diff --git a/frontend/src/app/organization/add/page.jsx b/frontend/src/app/organization/add/page.jsx index 2a2a07f..353242d 100644 --- a/frontend/src/app/organization/add/page.jsx +++ b/frontend/src/app/organization/add/page.jsx @@ -3,6 +3,7 @@ import globalStyle from "../../globalStyle.module.css"; import TopHeader from "@/app/components/topHeader/TopHeader"; import styles from "./styles.module.css"; import Image from "next/image"; +import TopToolTip from "@/app/components/topToolTip/TopToolTip"; const AddCredentials = () => { return (
@@ -15,41 +16,8 @@ const AddCredentials = () => { topbarTitle="Create New Organization" />
-
-
- - - - - -

Complete the input field before saving

-
-
-
+ +
diff --git a/frontend/src/app/organization/add/styles.module.css b/frontend/src/app/organization/add/styles.module.css index a5968ff..a4533b8 100644 --- a/frontend/src/app/organization/add/styles.module.css +++ b/frontend/src/app/organization/add/styles.module.css @@ -29,7 +29,7 @@ font-weight: 400; line-height: normal; } -.createProjectForm { +.createOrganizationFormContainer { display: flex; padding: 24px; flex-direction: column; diff --git a/frontend/src/app/projects/add/page.jsx b/frontend/src/app/projects/add/page.jsx new file mode 100644 index 0000000..8d9a2e8 --- /dev/null +++ b/frontend/src/app/projects/add/page.jsx @@ -0,0 +1,112 @@ +import React from "react"; +import globalStyle from "../../globalStyle.module.css"; +import TopHeader from "@/app/components/topHeader/TopHeader"; +import styles from "./styles.module.css"; +import TopToolTip from "@/app/components/topToolTip/TopToolTip"; +const AddProject = () => { + return ( +
+
+
+ +
+ +
+
+
+

+ Project Name * +

+
+
+ +
+ + + + + +

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

+
+
+
+
+
+

+ Project Version * +

+
+
+ +
+
+
+
+

+ Organization * +

+
+
+ +
+
+
+
+

+ Agent * +

+
+
+ +
+
+
+
+
+
+
+ ); +}; + +export default AddProject; diff --git a/frontend/src/app/projects/add/styles.module.css b/frontend/src/app/projects/add/styles.module.css new file mode 100644 index 0000000..ae0fc03 --- /dev/null +++ b/frontend/src/app/projects/add/styles.module.css @@ -0,0 +1,108 @@ +.contentContainer { + display: flex; + flex-direction: column; + align-items: center; + gap: 48px; + flex: 1 0 0; + align-self: stretch; +} +.createProjectFormContainer { + display: flex; + padding: 24px; + flex-direction: column; + justify-content: center; + align-items: center; + gap: 24px; + border-radius: 8px; +} +.inputGroup { + display: flex; + width: 500px; + flex-direction: column; + align-items: flex-start; + gap: 12px; +} +.label { + display: flex; + align-items: flex-start; + gap: 2px; + align-self: stretch; +} +.label > 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; +} +.label > p span { + color: #cfb000; + font-family: Inter; + font-size: 16px; + font-style: normal; + font-weight: 600; + line-height: normal; +} +.inputField { + display: flex; + flex-direction: column; + align-items: flex-start; + gap: 8px; + align-self: stretch; +} +.inputField > input, +.inputField > select { + 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: white; + font-family: Inter; + font-size: 16px; + outline: none; + font-style: normal; + font-weight: 400; + line-height: normal; + caret-color: #575bc7; +} +.inputField > input:focus { + border-radius: 6px; + border: 1px solid #959aff; + background: rgba(75, 79, 109, 0.25); +} +.inputField > input:hover { + background: rgba(75, 79, 109, 0.25); +} +.inputField > input::placeholder, +.inputField > select { + 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/projects/page.jsx b/frontend/src/app/projects/page.jsx index 15d2e22..9efe766 100644 --- a/frontend/src/app/projects/page.jsx +++ b/frontend/src/app/projects/page.jsx @@ -169,7 +169,7 @@ const ProjectsPage = () => { - +
NameName Version CPU Used/Limit Memory Used/Limit