Added add project page
This commit is contained in:
112
frontend/src/app/projects/add/page.jsx
Normal file
112
frontend/src/app/projects/add/page.jsx
Normal file
@@ -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 (
|
||||
<div className={globalStyle.section}>
|
||||
<div className={globalStyle.mainContainer}>
|
||||
<div className={globalStyle.container}>
|
||||
<TopHeader
|
||||
buttonText="Save"
|
||||
cancelButtonText="Cancel"
|
||||
state="add"
|
||||
topbarTitle="Create New Project"
|
||||
/>
|
||||
<div className={styles.contentContainer}>
|
||||
<TopToolTip />
|
||||
<div className={styles.createProjectFormContainer}>
|
||||
<div className={styles.inputGroup}>
|
||||
<div className={styles.label}>
|
||||
<p>
|
||||
Project Name <span>*</span>
|
||||
</p>
|
||||
</div>
|
||||
<div className={styles.inputField}>
|
||||
<input type="text" placeholder="Enter project name" />
|
||||
<div className={styles.prompts}>
|
||||
<svg
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
width={20}
|
||||
height={20}
|
||||
viewBox="0 0 20 20"
|
||||
fill="none"
|
||||
>
|
||||
<path
|
||||
d="M2.5 10C2.5 10.9849 2.69399 11.9602 3.0709 12.8701C3.44781 13.7801 4.00026 14.6069 4.6967 15.3033C5.39314 15.9997 6.21993 16.5522 7.12987 16.9291C8.03982 17.306 9.01509 17.5 10 17.5C10.9849 17.5 11.9602 17.306 12.8701 16.9291C13.7801 16.5522 14.6069 15.9997 15.3033 15.3033C15.9997 14.6069 16.5522 13.7801 16.9291 12.8701C17.306 11.9602 17.5 10.9849 17.5 10C17.5 8.01088 16.7098 6.10322 15.3033 4.6967C13.8968 3.29018 11.9891 2.5 10 2.5C8.01088 2.5 6.10322 3.29018 4.6967 4.6967C3.29018 6.10322 2.5 8.01088 2.5 10Z"
|
||||
stroke="#CCA04F"
|
||||
strokeWidth={1.5}
|
||||
strokeLinecap="round"
|
||||
strokeLinejoin="round"
|
||||
/>
|
||||
<path
|
||||
d="M10 6.66699V10.0003"
|
||||
stroke="#CCA04F"
|
||||
strokeWidth={1.5}
|
||||
strokeLinecap="round"
|
||||
strokeLinejoin="round"
|
||||
/>
|
||||
<path
|
||||
d="M10 13.333H10.0083"
|
||||
stroke="#CCA04F"
|
||||
strokeWidth={1.5}
|
||||
strokeLinecap="round"
|
||||
strokeLinejoin="round"
|
||||
/>
|
||||
</svg>
|
||||
<p>The name is already in used. You can try another.</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div className={styles.inputGroup}>
|
||||
<div className={styles.label}>
|
||||
<p>
|
||||
Project Version <span>*</span>
|
||||
</p>
|
||||
</div>
|
||||
<div className={styles.inputField}>
|
||||
<input type="text" placeholder="Version" />
|
||||
</div>
|
||||
</div>
|
||||
<div className={styles.inputGroup}>
|
||||
<div className={styles.label}>
|
||||
<p>
|
||||
Organization <span>*</span>
|
||||
</p>
|
||||
</div>
|
||||
<div className={styles.inputField}>
|
||||
<select name="" id="">
|
||||
<option value="">Select</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div className={styles.inputGroup}>
|
||||
<div className={styles.label}>
|
||||
<p>
|
||||
Agent <span>*</span>
|
||||
</p>
|
||||
</div>
|
||||
<div className={styles.inputField}>
|
||||
<select name="" id="">
|
||||
<option value="">Select</option>
|
||||
<option value="">Select</option>
|
||||
<option value="">Select</option>
|
||||
<option value="">Select</option>
|
||||
<option value="">Select</option>
|
||||
<option value="">Select</option>
|
||||
<option value="">Select</option>
|
||||
<option value="">Select</option>
|
||||
<option value="">Select</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export default AddProject;
|
||||
108
frontend/src/app/projects/add/styles.module.css
Normal file
108
frontend/src/app/projects/add/styles.module.css
Normal file
@@ -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;
|
||||
}
|
||||
@@ -169,7 +169,7 @@ const ProjectsPage = () => {
|
||||
<table className={styles.table}>
|
||||
<thead>
|
||||
<tr>
|
||||
<th width="25%">Name</th>
|
||||
<th>Name</th>
|
||||
<th>Version</th>
|
||||
<th>CPU Used/Limit</th>
|
||||
<th>Memory Used/Limit</th>
|
||||
|
||||
Reference in New Issue
Block a user