-
+
setIsGeneric(true)}
+ >
Generic
-
-
Generic
+
setIsGeneric(false)}
+ >
+
Connection String
-
-
-
-
Key
-
+ {isGeneric ? (
+ <>
+
-
-
Value
-
+
+
+
+
Description (Optional)
+
+
+
+
-
-
+ >
+ ) : (
+ <>
+
+
+
+
Authentication (Optional)
+
+
+ >
+ )}
+
);
};
-export default AddConfigMapModal;
+export default AddVariableModal;
diff --git a/frontend/src/app/projects/view/add-from-scratch/variableModals/AddVariableModal/styles.module.css b/frontend/src/app/projects/view/add-from-scratch/variableModals/AddVariableModal/styles.module.css
index e69de29..597ca7e 100644
--- a/frontend/src/app/projects/view/add-from-scratch/variableModals/AddVariableModal/styles.module.css
+++ b/frontend/src/app/projects/view/add-from-scratch/variableModals/AddVariableModal/styles.module.css
@@ -0,0 +1,201 @@
+.container {
+ width: 100vw;
+ height: 100vh;
+ position: absolute;
+ top: 0;
+ left: 0;
+ z-index: 10;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ background-color: #00000037;
+}
+.modal {
+ display: flex;
+ width: 593px;
+ height: 566px;
+ padding: 16px 16px 24px 16px;
+ flex-direction: column;
+ align-items: flex-start;
+ gap: 24px;
+ border-radius: 8px;
+ background: #21232f;
+ animation-name: modalAnimation;
+ animation-duration: 200ms;
+}
+@keyframes modalAnimation {
+ 0% {
+ opacity: 0;
+ transform: translateY(-10%);
+ }
+ 100% {
+ opacity: 1;
+ transform: translateY(0);
+ }
+}
+.header {
+ display: flex;
+ justify-content: space-between;
+ align-items: flex-start;
+ align-self: stretch;
+}
+.header > svg {
+ cursor: pointer;
+}
+
+.header > p {
+ color: #d2d3e1;
+ font-size: 24px;
+ font-style: normal;
+ font-weight: 500;
+ line-height: normal;
+ letter-spacing: 0.24px;
+}
+.contentContainer {
+ display: flex;
+ flex-direction: column;
+ align-items: flex-start;
+ flex: 1 0 0;
+ align-self: stretch;
+}
+.contentContainer > div {
+ display: flex;
+ flex-direction: column;
+ align-items: flex-start;
+ gap: 32px;
+ flex: 1 0 0;
+ align-self: stretch;
+}
+.contentHeader {
+ display: flex;
+ padding-top: 8px;
+ align-items: flex-start;
+ gap: 17px;
+ align-self: stretch;
+}
+.contentHeader > div {
+ display: flex;
+ padding: 0 6px 6px 6px;
+ flex-direction: column;
+ justify-content: center;
+ align-items: flex-start;
+ gap: 5px;
+ color: #d2d3e1;
+ font-size: 16px;
+ font-style: normal;
+ font-weight: 500;
+ line-height: normal;
+ letter-spacing: 0.16px;
+ cursor: pointer;
+}
+.selectActive {
+ border-bottom: 2px solid #8187ff;
+}
+.fieldContainer {
+ display: flex;
+ flex-direction: column;
+ justify-content: space-between;
+ align-items: flex-start;
+ flex: 1 0 0;
+ align-self: stretch;
+}
+.fields {
+ display: flex;
+ flex-direction: column;
+ align-items: flex-start;
+ gap: 16px;
+ align-self: stretch;
+}
+.horizontalInput {
+ display: flex;
+ align-items: center;
+ align-self: stretch;
+}
+.horizontalInput > div {
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ gap: 8px;
+ flex: 1 0 0;
+}
+
+.horizontalInput > div > div {
+ display: flex;
+ flex-direction: column;
+ justify-content: center;
+ align-items: flex-start;
+ gap: 12px;
+ flex: 1 0 0;
+}
+.verticalInput {
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ gap: 16px;
+ align-self: stretch;
+}
+.verticalInput > div {
+ display: flex;
+ flex-direction: column;
+ justify-content: center;
+ align-items: flex-start;
+ gap: 12px;
+
+ flex: 1 0 0;
+}
+.verticalInput p {
+ color: #d2d3e1;
+ font-size: 16px;
+ font-style: normal;
+ font-weight: 400;
+ line-height: normal;
+ letter-spacing: 0.16px;
+}
+
+.verticalInput textarea {
+ display: flex;
+ height: 120px;
+ padding: 12px;
+ width: 100%;
+ flex-direction: column;
+ align-items: flex-start;
+ background-color: transparent;
+ gap: 10px;
+ align-self: stretch;
+ border-radius: 4px;
+ border: 1px solid #4b4f6d;
+ resize: none;
+ color: #85869b;
+ font-size: 16px;
+ font-family: inter;
+ font-style: normal;
+ font-weight: 400;
+ line-height: normal;
+ letter-spacing: 0.16px;
+}
+.authenticationContainer {
+ display: flex;
+ padding: 12px 12px 32px 12px;
+ flex-direction: column;
+ justify-content: center;
+ align-items: flex-start;
+ gap: 16px;
+ align-self: stretch;
+ border-radius: 6px;
+ background: #272b3a;
+}
+.authenticationContainer > p {
+ color: #85869b;
+ font-size: 16px;
+ font-style: normal;
+ font-weight: 400;
+ line-height: normal;
+ letter-spacing: 0.16px;
+}
+.addButtonContainer {
+ display: flex;
+ justify-content: flex-end;
+ align-items: center;
+ gap: 16px;
+ align-self: stretch;
+}
diff --git a/frontend/src/app/projects/view/add-from-scratch/variableModals/AddVolumes/AddVolumeModal.jsx b/frontend/src/app/projects/view/add-from-scratch/variableModals/AddVolumes/AddVolumeModal.jsx
index e69de29..6f2ffdd 100644
--- a/frontend/src/app/projects/view/add-from-scratch/variableModals/AddVolumes/AddVolumeModal.jsx
+++ b/frontend/src/app/projects/view/add-from-scratch/variableModals/AddVolumes/AddVolumeModal.jsx
@@ -0,0 +1,71 @@
+import React, { useState } from "react";
+import styles from "./styles.module.css";
+import CloseIcon from "@/app/components/icons/close";
+import TextField from "@/app/components/fields/textfield";
+import AddIcon from "@/app/components/icons/add";
+import PrimaryButton from "@/app/components/buttons/primarybutton/PrimaryButton";
+const AddVolumeModal = (props) => {
+ const [isGeneric, setIsGeneric] = useState(true);
+ return (
+
+
+
+
Volumes
+
props.setTriggerAddVolume(false)} />
+
+
+
+
+
+
+
+
+
+
Existing Claim (Optional)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ );
+};
+export default AddVolumeModal;
diff --git a/frontend/src/app/projects/view/add-from-scratch/variableModals/AddVolumes/styles.module.css b/frontend/src/app/projects/view/add-from-scratch/variableModals/AddVolumes/styles.module.css
index e69de29..fae6e73 100644
--- a/frontend/src/app/projects/view/add-from-scratch/variableModals/AddVolumes/styles.module.css
+++ b/frontend/src/app/projects/view/add-from-scratch/variableModals/AddVolumes/styles.module.css
@@ -0,0 +1,201 @@
+.container {
+ width: 100vw;
+ height: 100vh;
+ position: absolute;
+ top: 0;
+ left: 0;
+ z-index: 10;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ background-color: #00000037;
+}
+.modal {
+ display: flex;
+ width: 593px;
+
+ padding: 16px 16px 24px 16px;
+ flex-direction: column;
+ align-items: flex-start;
+ gap: 24px;
+ border-radius: 8px;
+ background: #21232f;
+ animation-name: modalAnimation;
+ animation-duration: 200ms;
+}
+@keyframes modalAnimation {
+ 0% {
+ opacity: 0;
+ transform: translateY(-10%);
+ }
+ 100% {
+ opacity: 1;
+ transform: translateY(0);
+ }
+}
+.header {
+ display: flex;
+ justify-content: space-between;
+ align-items: flex-start;
+ align-self: stretch;
+}
+.header > svg {
+ cursor: pointer;
+}
+
+.header > p {
+ color: #d2d3e1;
+ font-size: 24px;
+ font-style: normal;
+ font-weight: 500;
+ line-height: normal;
+ letter-spacing: 0.24px;
+}
+.contentContainer {
+ display: flex;
+ flex-direction: column;
+ align-items: flex-start;
+ flex: 1 0 0;
+ align-self: stretch;
+}
+.contentContainer > div {
+ display: flex;
+ flex-direction: column;
+ align-items: flex-start;
+ gap: 32px;
+ flex: 1 0 0;
+ align-self: stretch;
+}
+.contentHeader {
+ display: flex;
+ padding-top: 8px;
+ align-items: flex-start;
+ gap: 17px;
+ align-self: stretch;
+}
+.contentHeader > div {
+ display: flex;
+ padding: 0 6px 6px 6px;
+ flex-direction: column;
+ justify-content: center;
+ align-items: flex-start;
+ gap: 5px;
+ color: #d2d3e1;
+ font-size: 16px;
+ font-style: normal;
+ font-weight: 500;
+ line-height: normal;
+ letter-spacing: 0.16px;
+ cursor: pointer;
+}
+.selectActive {
+ border-bottom: 2px solid #8187ff;
+}
+.fieldContainer {
+ display: flex;
+ flex-direction: column;
+ justify-content: space-between;
+ align-items: flex-start;
+ flex: 1 0 0;
+ align-self: stretch;
+}
+.fields {
+ display: flex;
+ flex-direction: column;
+ align-items: flex-start;
+ gap: 16px;
+ align-self: stretch;
+}
+.horizontalInput {
+ display: flex;
+ align-items: center;
+ align-self: stretch;
+}
+.horizontalInput > div {
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ gap: 8px;
+ flex: 1 0 0;
+}
+
+.horizontalInput > div > div {
+ display: flex;
+ flex-direction: column;
+ justify-content: center;
+ align-items: flex-start;
+ gap: 12px;
+ flex: 1 0 0;
+}
+.verticalInput {
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ gap: 16px;
+ align-self: stretch;
+}
+.verticalInput > div {
+ display: flex;
+ flex-direction: column;
+ justify-content: center;
+ align-items: flex-start;
+ gap: 12px;
+
+ flex: 1 0 0;
+}
+.verticalInput p {
+ color: #d2d3e1;
+ font-size: 16px;
+ font-style: normal;
+ font-weight: 400;
+ line-height: normal;
+ letter-spacing: 0.16px;
+}
+
+.verticalInput textarea {
+ display: flex;
+ height: 120px;
+ padding: 12px;
+ width: 100%;
+ flex-direction: column;
+ align-items: flex-start;
+ background-color: transparent;
+ gap: 10px;
+ align-self: stretch;
+ border-radius: 4px;
+ border: 1px solid #4b4f6d;
+ resize: none;
+ color: #85869b;
+ font-size: 16px;
+ font-family: inter;
+ font-style: normal;
+ font-weight: 400;
+ line-height: normal;
+ letter-spacing: 0.16px;
+}
+.authenticationContainer {
+ display: flex;
+ padding: 12px 12px 32px 12px;
+ flex-direction: column;
+ justify-content: center;
+ align-items: flex-start;
+ gap: 16px;
+ align-self: stretch;
+ border-radius: 6px;
+ background: #272b3a;
+}
+.authenticationContainer > p {
+ color: #85869b;
+ font-size: 16px;
+ font-style: normal;
+ font-weight: 400;
+ line-height: normal;
+ letter-spacing: 0.16px;
+}
+.addButtonContainer {
+ display: flex;
+ justify-content: flex-end;
+ align-items: center;
+ gap: 16px;
+ align-self: stretch;
+}
diff --git a/frontend/src/app/projects/view/add-from-scratch/variableStyles.module.css b/frontend/src/app/projects/view/add-from-scratch/variableStyles.module.css
index fa6f5c1..98754a4 100644
--- a/frontend/src/app/projects/view/add-from-scratch/variableStyles.module.css
+++ b/frontend/src/app/projects/view/add-from-scratch/variableStyles.module.css
@@ -145,6 +145,26 @@
border-radius: 4px;
background: #1d1e2a;
}
+.variable {
+ display: flex;
+ padding: 8px 0;
+ align-items: center;
+ align-self: stretch;
+ border-bottom: 0.5px solid #2e3042;
+ width: 100%;
+}
+.variable p {
+ display: flex;
+ align-items: center;
+ flex: 1 0 0;
+ align-self: stretch;
+ color: #d2d3e1;
+ font-size: 15px;
+ font-style: normal;
+ font-weight: 400;
+ line-height: normal;
+ letter-spacing: 0.15px;
+}
.environmentVariablesContainer {
display: flex;
padding-bottom: 50px;
@@ -199,13 +219,14 @@
}
.variableList {
display: flex;
- padding: 24px 16px 0 16px;
- align-items: flex-start;
+ padding: 0 16px 16px 16px;
+ flex-direction: column;
+ align-items: center;
align-self: stretch;
}
.emptyVariableList {
display: flex;
- padding-bottom: 24px;
+ padding: 24px 16px 0 16px;
flex-direction: column;
align-items: flex-start;
gap: 10px;
@@ -224,7 +245,6 @@
flex: 1 0 0;
color: #85869b;
text-align: center;
- font-family: Inter;
font-size: 16px;
font-style: normal;
font-weight: 500;