Skip to content

Commit 990bb12

Browse files
committed
feat(web): Implement installation page
1 parent 55db26d commit 990bb12

4 files changed

Lines changed: 35 additions & 8 deletions

File tree

web/src/App.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Route, Routes, useLocation } from 'react-router';
22
import MainLayout from '@/components/layouts/main-layout/main-layout';
33
import TerraformTemplate from '@/pages/terraform-template/components/layout';
4-
import { Argocd, Docker, EC2, IAM, S3 } from './pages';
4+
import { Argocd, Docker, EC2, IAM, Installation, S3 } from './pages';
55

66
function App() {
77
const location = useLocation();
@@ -17,6 +17,7 @@ function App() {
1717
<Route path="iam" element={<IAM />} />
1818
<Route path="argocd" element={<Argocd />} />
1919
</Route>
20+
<Route path="installation" element={<Installation />} />
2021
</Route>
2122
</Routes>
2223
</div>

web/src/pages/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@ import Docker from './terraform-template/Docker/docker';
33
import EC2 from './terraform-template/EC2/ec2';
44
import IAM from './terraform-template/IAM/iam';
55
import S3 from './terraform-template/S3/s3';
6+
import Installation from './installation/installation';
67

7-
export { Argocd, Docker, EC2, IAM, S3 };
8+
export { Argocd, Docker, EC2, IAM, S3, Installation };
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
import { FC } from 'react';
2+
3+
const Installation: FC = () => {
4+
return (
5+
<div className="flex items-center justify-center w-full h-full">
6+
<div className="w-full max-w-96">
7+
<div className="border border-gray-500 divide-y divide-gray-500 rounded-md">
8+
<input
9+
placeholder="os (example: ubuntu)"
10+
className="block w-full p-2 outline-none rounded-t-md"
11+
/>
12+
<input
13+
placeholder="tool (example: nginx)"
14+
className="block w-full p-2 outline-none rounded-b-md"
15+
/>
16+
</div>
17+
<button className="w-full mt-3 text-white btn bg-orange-base hover:bg-orange-base/70">
18+
Submit
19+
</button>
20+
</div>
21+
</div>
22+
);
23+
};
24+
25+
export default Installation;

web/src/pages/terraform-template/ARGOCD/argocd.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ const Argocd: FC = () => {
3030

3131
return (
3232
<div className="w-full max-w-96">
33-
<div className="border border-gray-500 rounded-md">
33+
<div className="rounded-md border border-gray-500">
3434
<div className="divide-y divide-gray-500">
35-
<div className="flex items-center justify-between w-full px-3 py-3">
35+
<div className="flex w-full items-center justify-between px-3 py-3">
3636
<p>Argo Application</p>
3737
<input
3838
type="checkbox"
@@ -52,7 +52,7 @@ const Argocd: FC = () => {
5252
)}
5353
>
5454
<div
55-
className="flex items-center justify-between py-3 pl-10 pr-3 cursor-pointer"
55+
className="flex cursor-pointer items-center justify-between py-3 pl-10 pr-3"
5656
onClick={() => handleDropdown('sync_policy')}
5757
>
5858
<p>Sync Policy</p>
@@ -94,7 +94,7 @@ const Argocd: FC = () => {
9494
</div>
9595
</div>
9696
</div>
97-
<div className="flex items-center justify-between w-full px-3 py-3">
97+
<div className="flex w-full items-center justify-between px-3 py-3">
9898
<p>Argocd Repository</p>
9999
<input
100100
type="checkbox"
@@ -105,7 +105,7 @@ const Argocd: FC = () => {
105105
onChange={() => handleServices('argocd_repository')}
106106
/>
107107
</div>
108-
<div className="flex items-center justify-between w-full px-3 py-3">
108+
<div className="flex w-full items-center justify-between px-3 py-3">
109109
<p>Application Depends Repository</p>
110110
<input
111111
type="checkbox"
@@ -118,7 +118,7 @@ const Argocd: FC = () => {
118118
</div>
119119
</div>
120120
</div>
121-
<button className="w-full mt-3 text-white btn bg-orange-base hover:bg-orange-base/70">
121+
<button className="btn mt-3 w-full bg-orange-base text-white hover:bg-orange-base/70">
122122
Submit
123123
</button>
124124
</div>

0 commit comments

Comments
 (0)