Skip to content

Commit d1e2488

Browse files
committed
feat(web): Implement basic page
1 parent 990bb12 commit d1e2488

4 files changed

Lines changed: 102 additions & 3 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, Installation, S3 } from './pages';
4+
import { Argocd, Basic, Docker, EC2, IAM, Installation, S3 } from '@/pages';
55

66
function App() {
77
const location = useLocation();
@@ -10,6 +10,7 @@ function App() {
1010
<div className="container mx-auto border-l border-r border-gray-700 h-dvh max-w-7xl">
1111
<Routes location={location}>
1212
<Route element={<MainLayout />}>
13+
<Route index element={<Basic />} />
1314
<Route path="terraform-template" element={<TerraformTemplate />}>
1415
<Route path="docker" element={<Docker />} />
1516
<Route path="ec2" element={<EC2 />} />

web/src/pages/basic/basic.tsx

Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
import { FC } from 'react';
2+
import { Send } from 'lucide-react';
3+
4+
const Basic: FC = () => {
5+
return (
6+
<div className="flex items-center justify-center w-full h-full">
7+
<div className="w-full max-w-[768px]">
8+
<div className="w-full p-2 rounded-md">
9+
<div className="flex items-center justify-center w-full h-full gap-3">
10+
<div className="flex flex-col w-full">
11+
<label htmlFor="min_token" className="mb-2">
12+
Min Token
13+
</label>
14+
<input
15+
id="min_token"
16+
className="w-full p-3 rounded-md outline-none"
17+
/>
18+
</div>
19+
<div className="flex flex-col w-full">
20+
<label htmlFor="min_token" className="mb-2">
21+
Max Token
22+
</label>
23+
<input
24+
id="min_token"
25+
className="w-full p-3 rounded-md outline-none"
26+
/>
27+
</div>
28+
<div className="flex flex-col w-full">
29+
<label htmlFor="min_token" className="mb-2">
30+
Service
31+
</label>
32+
<input
33+
id="min_token"
34+
className="w-full p-3 rounded-md outline-none"
35+
/>
36+
</div>
37+
</div>
38+
<div className="mt-4">
39+
<div className="w-full p-3 overflow-y-auto rounded-md scrollbar-corner-transparent scrollbar-thin scrollbar-track-transparent h-96 bg-slate-900">
40+
<div className="max-w-full chat chat-end">
41+
<div className="text-white bg-gray-600 chat-bubble">
42+
You underestimate my power!
43+
</div>
44+
</div>
45+
<div className="max-w-full chat chat-start">
46+
<div className="text-white chat-bubble">
47+
You underestimate my power!
48+
</div>
49+
</div>
50+
<div className="max-w-full chat chat-end">
51+
<div className="text-white bg-gray-600 chat-bubble">
52+
You underestimate my power!
53+
</div>
54+
</div>
55+
<div className="max-w-full chat chat-start">
56+
<div className="text-white chat-bubble">
57+
You underestimate my power!
58+
</div>
59+
</div>
60+
<div className="max-w-full chat chat-end">
61+
<div className="text-white bg-gray-600 chat-bubble">
62+
You underestimate my power!
63+
</div>
64+
</div>
65+
<div className="max-w-full chat chat-start">
66+
<div className="text-white chat-bubble">
67+
You underestimate my power!
68+
</div>
69+
</div>
70+
<div className="max-w-full chat chat-end">
71+
<div className="text-white bg-gray-600 chat-bubble">
72+
You underestimate my power!
73+
</div>
74+
</div>
75+
<div className="max-w-full chat chat-start">
76+
<div className="text-white chat-bubble">
77+
You underestimate my power!
78+
</div>
79+
</div>
80+
</div>
81+
</div>
82+
<div className="relative mt-4">
83+
<textarea
84+
className="w-full p-4 pr-16 rounded-md outline-none resize-none"
85+
rows={2}
86+
/>
87+
<button className="absolute flex items-center justify-center p-2 bg-white rounded-full right-3 top-5">
88+
<Send className="size-6 stroke-[#121212]" />
89+
</button>
90+
</div>
91+
</div>
92+
</div>
93+
</div>
94+
);
95+
};
96+
97+
export default Basic;

web/src/pages/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@ import EC2 from './terraform-template/EC2/ec2';
44
import IAM from './terraform-template/IAM/iam';
55
import S3 from './terraform-template/S3/s3';
66
import Installation from './installation/installation';
7+
import Basic from './basic/basic';
78

8-
export { Argocd, Docker, EC2, IAM, S3, Installation };
9+
export { Argocd, Docker, EC2, IAM, S3, Installation, Basic };

web/tailwind.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ export default {
1616
}
1717
}
1818
},
19-
plugins: [require("tailwindcss-animate"), require('daisyui')],
19+
plugins: [require("tailwind-scrollbar"), require('daisyui')],
2020
}
2121

0 commit comments

Comments
 (0)