Add components
This commit is contained in:
@@ -5,11 +5,12 @@ import TopHeader from "@/app/components/topHeader/TopHeader";
|
||||
import styles from "./styles.module.css";
|
||||
import variableStyles from "./variableStyles.module.css";
|
||||
import TextField from "@/app/components/fields/textfield";
|
||||
import AddVariableModal from "./variableModals/AddVariableModal/AddVariableModal";
|
||||
import AddVolumeModal from "./variableModals/AddVolumes/AddVolumeModal";
|
||||
import AddConfigMapModal from "./variableModals/AddConfigMap/AddConfigMapModal";
|
||||
import AddVariableModal from "../variableModals/AddVariableModal/AddVariableModal";
|
||||
import AddVolumeModal from "../variableModals/AddVolumes/AddVolumeModal";
|
||||
import AddConfigMapModal from "../variableModals/AddConfigMap/AddConfigMapModal";
|
||||
import DeleteIcon from "@/app/components/icons/delete";
|
||||
import CustomCheckbox from "@/app/components/checkbox/CheckBox";
|
||||
import SelectField from "@/app/components/select/SelectField";
|
||||
const AddServices = () => {
|
||||
const [triggerVariableDropDown, setTriggerVariableDropDown] = useState(false);
|
||||
const [triggerAddVariable, setTriggerAddVariable] = useState(false);
|
||||
@@ -78,15 +79,25 @@ const AddServices = () => {
|
||||
<div>
|
||||
<div>
|
||||
<p>Ingress</p>
|
||||
<select name="" id="">
|
||||
<option value="">Select</option>
|
||||
</select>
|
||||
<SelectField
|
||||
label="Select"
|
||||
options={[
|
||||
{ label: "Option", value: "option" },
|
||||
{ label: "Option 1", value: "option 1" },
|
||||
{ label: "Option 2", value: "option 2" },
|
||||
]}
|
||||
/>
|
||||
</div>
|
||||
<div>
|
||||
<p>Ingress</p>
|
||||
<select name="" id="">
|
||||
<option value="">Select</option>
|
||||
</select>
|
||||
<SelectField
|
||||
label="Select"
|
||||
options={[
|
||||
{ label: "Option", value: "option" },
|
||||
{ label: "Option 1", value: "option 1" },
|
||||
{ label: "Option 2", value: "option 2" },
|
||||
]}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -131,13 +142,13 @@ const AddServices = () => {
|
||||
<div>
|
||||
<div>
|
||||
<div>
|
||||
<p>Name</p>
|
||||
<p>Minimum pods</p>
|
||||
|
||||
<TextField placeHolder="Enter service name" />
|
||||
<TextField placeHolder="1" />
|
||||
</div>
|
||||
<div>
|
||||
<p>Version</p>
|
||||
<TextField placeHolder="Services version" />
|
||||
<p>Maximum pods</p>
|
||||
<TextField placeHolder="1" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -157,17 +168,12 @@ const AddServices = () => {
|
||||
<div>
|
||||
<div>
|
||||
<p>Readiness Path</p>
|
||||
<input
|
||||
type="text"
|
||||
placeholder="Enter Readiness path"
|
||||
/>
|
||||
|
||||
<TextField placeHolder="Enter Readiness path" />
|
||||
</div>
|
||||
<div>
|
||||
<p>Readiness Port</p>
|
||||
<input
|
||||
type="text"
|
||||
placeholder="Enter Readiness port"
|
||||
/>
|
||||
<TextField placeHolder="Enter Readiness port" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -146,7 +146,7 @@
|
||||
}
|
||||
.additionalDetails {
|
||||
display: flex;
|
||||
padding: 20px;
|
||||
padding: 16px;
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
gap: 16px;
|
||||
@@ -228,24 +228,3 @@
|
||||
line-height: normal;
|
||||
letter-spacing: 0.16px;
|
||||
}
|
||||
.additionalDetailsFields input {
|
||||
display: flex;
|
||||
padding: 12px;
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
width: 100%;
|
||||
gap: 10px;
|
||||
align-self: stretch;
|
||||
background-color: transparent;
|
||||
border-radius: 4px;
|
||||
border: 1px solid #4b4f6d;
|
||||
color: white;
|
||||
font-size: 16px;
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
line-height: normal;
|
||||
letter-spacing: 0.16px;
|
||||
}
|
||||
.additionalDetailsFields input::placeholder {
|
||||
color: #85869b;
|
||||
}
|
||||
|
||||
@@ -1,79 +0,0 @@
|
||||
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 AddConfigMapModal = (props) => {
|
||||
const [isGeneric, setIsGeneric] = useState(true);
|
||||
return (
|
||||
<div className={styles.container}>
|
||||
<div className={styles.modal}>
|
||||
<div className={styles.header}>
|
||||
<p>Volumes</p>
|
||||
<CloseIcon onClick={() => props.setTriggerAddConfigMap(false)} />
|
||||
</div>
|
||||
<div className={styles.contentContainer}>
|
||||
<div>
|
||||
<div className={styles.fieldContainer}>
|
||||
<div className={styles.fields}>
|
||||
<div className={styles.horizontalInput}>
|
||||
<div>
|
||||
<div>
|
||||
<p>Sub Path</p>
|
||||
<TextField placeHolder="Enter volume name" />
|
||||
</div>
|
||||
<div>
|
||||
<p>Mount Path</p>
|
||||
<TextField placeHolder="Enter path " />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className={styles.radioButtonsContainer}>
|
||||
<div>
|
||||
<p>Type</p>
|
||||
<div>
|
||||
{" "}
|
||||
<div>
|
||||
<label className={styles.radio}>
|
||||
<input type="radio" name="typeOption" />
|
||||
<span className={styles.custom}></span>
|
||||
Raw
|
||||
</label>
|
||||
</div>
|
||||
<div>
|
||||
<label className={styles.radio}>
|
||||
<input type="radio" name="typeOption" />
|
||||
<span className={styles.custom}></span>
|
||||
Credential
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div className={styles.verticalInput}>
|
||||
<div>
|
||||
<div>
|
||||
<p>Value</p>
|
||||
</div>
|
||||
|
||||
<textarea
|
||||
name=""
|
||||
id=""
|
||||
placeholder="Enter a description"
|
||||
></textarea>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div className={styles.addButtonContainer}>
|
||||
<PrimaryButton />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
export default AddConfigMapModal;
|
||||
@@ -1,253 +0,0 @@
|
||||
.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;
|
||||
}
|
||||
.radioButtonsContainer {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
gap: 16px;
|
||||
align-self: stretch;
|
||||
}
|
||||
.radioButtonsContainer > div {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: flex-start;
|
||||
gap: 12px;
|
||||
flex: 1 0 0;
|
||||
}
|
||||
.radioButtonsContainer p {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
color: #d2d3e1;
|
||||
font-size: 16px;
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
line-height: normal;
|
||||
letter-spacing: 0.16px;
|
||||
}
|
||||
.radioButtonsContainer > div > div {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
gap: 24px;
|
||||
}
|
||||
.radioButtonsContainer > div > div > div {
|
||||
display: flex;
|
||||
padding: 12px 4px;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
}
|
||||
.radio {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
cursor: pointer;
|
||||
gap: 8px;
|
||||
}
|
||||
.radio input {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.radio .custom {
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
border: 2px solid #4b4f6d;
|
||||
border-radius: 50%;
|
||||
position: relative;
|
||||
background-color: #fff;
|
||||
}
|
||||
|
||||
.radio .custom::after {
|
||||
content: "";
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
background: #5980f1;
|
||||
border-radius: 50%;
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%) scale(0);
|
||||
}
|
||||
|
||||
.radio input:checked + .custom::after {
|
||||
transform: translate(-50%, -50%) scale(1);
|
||||
}
|
||||
|
||||
.addButtonContainer {
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
align-items: center;
|
||||
gap: 16px;
|
||||
align-self: stretch;
|
||||
}
|
||||
@@ -1,112 +0,0 @@
|
||||
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 AddVariableModal = (props) => {
|
||||
const [isGeneric, setIsGeneric] = useState(true);
|
||||
return (
|
||||
<div className={styles.container}>
|
||||
<div className={styles.modal}>
|
||||
<div className={styles.header}>
|
||||
<p>Environment Variables</p>
|
||||
<CloseIcon onClick={() => props.setTriggerAddVariable(false)} />
|
||||
</div>
|
||||
<div className={styles.contentContainer}>
|
||||
<div>
|
||||
<div className={styles.contentHeader}>
|
||||
<div
|
||||
className={isGeneric ? styles.selectActive : ""}
|
||||
onClick={() => setIsGeneric(true)}
|
||||
>
|
||||
<p>Generic</p>
|
||||
</div>
|
||||
<div
|
||||
className={!isGeneric ? styles.selectActive : ""}
|
||||
onClick={() => setIsGeneric(false)}
|
||||
>
|
||||
<p>Connection String</p>
|
||||
</div>
|
||||
</div>
|
||||
<div className={styles.fieldContainer}>
|
||||
<div className={styles.fields}>
|
||||
{isGeneric ? (
|
||||
<>
|
||||
<div className={styles.horizontalInput}>
|
||||
<div>
|
||||
<div>
|
||||
<p>Key</p>
|
||||
<TextField placeHolder="Enter variable key" />
|
||||
</div>
|
||||
<div>
|
||||
<p>Value</p>
|
||||
<TextField placeHolder="Enter Value" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div className={styles.verticalInput}>
|
||||
<div>
|
||||
<div>
|
||||
<p>Description (Optional)</p>
|
||||
</div>
|
||||
|
||||
<textarea
|
||||
name=""
|
||||
id=""
|
||||
placeholder="Enter a description"
|
||||
></textarea>
|
||||
</div>
|
||||
</div>
|
||||
</>
|
||||
) : (
|
||||
<>
|
||||
<div className={styles.verticalInput}>
|
||||
<div>
|
||||
<div>
|
||||
<p>Variable Name</p>
|
||||
</div>
|
||||
<TextField />
|
||||
</div>
|
||||
</div>
|
||||
<div className={styles.horizontalInput}>
|
||||
<div>
|
||||
<div>
|
||||
<p>Protocol</p>
|
||||
<TextField placeHolder="MongoDB" />
|
||||
</div>
|
||||
<div>
|
||||
<p>Service</p>
|
||||
<TextField placeHolder="Select a service" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div className={styles.authenticationContainer}>
|
||||
<p>Authentication (Optional)</p>
|
||||
<div className={styles.horizontalInput}>
|
||||
<div>
|
||||
<div>
|
||||
<p>Protocol</p>
|
||||
<TextField placeHolder="MongoDB" />
|
||||
</div>
|
||||
<div>
|
||||
<p>Service</p>
|
||||
<TextField placeHolder="Select a service" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div className={styles.addButtonContainer}>
|
||||
<PrimaryButton />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
export default AddVariableModal;
|
||||
@@ -1,201 +0,0 @@
|
||||
.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;
|
||||
}
|
||||
@@ -1,71 +0,0 @@
|
||||
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 (
|
||||
<div className={styles.container}>
|
||||
<div className={styles.modal}>
|
||||
<div className={styles.header}>
|
||||
<p>Volumes</p>
|
||||
<CloseIcon onClick={() => props.setTriggerAddVolume(false)} />
|
||||
</div>
|
||||
<div className={styles.contentContainer}>
|
||||
<div>
|
||||
<div className={styles.fieldContainer}>
|
||||
<div className={styles.fields}>
|
||||
<div className={styles.horizontalInput}>
|
||||
<div>
|
||||
<div>
|
||||
<p>Name</p>
|
||||
<TextField placeHolder="Enter volume name" />
|
||||
</div>
|
||||
<div>
|
||||
<p>Path</p>
|
||||
<TextField placeHolder="Enter path " />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div className={styles.horizontalInput}>
|
||||
<div>
|
||||
<div>
|
||||
<p>Existing Claim (Optional)</p>
|
||||
<TextField placeHolder="Create new PVC" />
|
||||
</div>
|
||||
<div>
|
||||
<p>Volume size (MB)</p>
|
||||
<TextField placeHolder="0" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div className={styles.verticalInput}>
|
||||
<div>
|
||||
<div>
|
||||
<p>Storage Class name</p>
|
||||
</div>
|
||||
<TextField placeHolder="e.g., efs-sc" />
|
||||
</div>
|
||||
</div>
|
||||
<div className={styles.verticalInput}>
|
||||
<div>
|
||||
<div>
|
||||
<p>Access Mode</p>
|
||||
</div>
|
||||
<TextField placeHolder="ReadWriteOnce (RWO) - Single node read-write" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div className={styles.addButtonContainer}>
|
||||
<PrimaryButton />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
export default AddVolumeModal;
|
||||
@@ -1,201 +0,0 @@
|
||||
.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;
|
||||
}
|
||||
Reference in New Issue
Block a user