8
8
FormErrorMessage ,
9
9
FormHelperText ,
10
10
FormLabel ,
11
+ Grid ,
12
+ GridItem ,
11
13
Heading ,
12
14
HStack ,
13
15
Input ,
@@ -21,6 +23,9 @@ import {
21
23
NumberInput ,
22
24
NumberInputField ,
23
25
Select ,
26
+ Stack ,
27
+ Tag ,
28
+ Text ,
24
29
Textarea ,
25
30
useDisclosure ,
26
31
VStack ,
@@ -191,12 +196,67 @@ export function PostsPage() {
191
196
</ Modal >
192
197
< VStack spacing = '4' align = 'stretch' >
193
198
< HStack justify = 'space-between' align = 'center' >
194
- < Heading > Posts </ Heading >
199
+ < Heading > Job Posted </ Heading >
195
200
< Button leftIcon = { < Icon name = 'add' /> } onClick = { onOpen } >
196
201
New Post
197
202
</ Button >
198
203
</ HStack >
204
+ < Grid templateColumns = 'repeat(2, 1fr)' gap = '4' >
205
+ < GridItem >
206
+ < JobFeedItem />
207
+ </ GridItem >
208
+ </ Grid >
199
209
</ VStack >
200
210
</ >
201
211
) ;
202
212
}
213
+
214
+ // Job Post
215
+
216
+ function JobFeedItem ( ) {
217
+ return (
218
+ < Box w = { [ 'full' , 'full' ] } shadow = 'md' rounded = 'lg' >
219
+ < VStack py = { 4 } px = { 6 } align = 'flex-start' spacing = '2' >
220
+ < Heading fontSize = '2xl' color = 'gray.800' >
221
+ Full Stack Developer
222
+ </ Heading >
223
+ < Text pt = '1' color = 'gray.600' >
224
+ Tesla Motors India
225
+ </ Text >
226
+ < HStack spacing = { 2 } >
227
+ < Tag variant = 'outline' colorScheme = 'teal' >
228
+ React Js
229
+ </ Tag >
230
+ < Tag variant = 'outline' colorScheme = 'teal' >
231
+ Express Js
232
+ </ Tag >
233
+ </ HStack >
234
+ < Grid
235
+ templateColumns = { [ 'repeat(2, 1fr)' , 'repeat(5, 1fr)' ] }
236
+ gap = { [ '3' , '2' ] }
237
+ >
238
+ { [
239
+ [ 'Offer' , '6 LPA' ] ,
240
+ [ 'Mode' , 'Remote' ] ,
241
+ [ 'Start Date' , '15 Aug 2022' ] ,
242
+ [ 'Positions' , '15' ] ,
243
+ [ 'Deadline' , '10 Sept 2022' ] ,
244
+ ] . map ( ( item , key ) => (
245
+ < VStack key = { key } spacing = '1' align = 'center' py = '2' >
246
+ < Text color = 'gray.500' > { item [ 0 ] } </ Text >
247
+ < Text color = 'blackAlpha.900' > { item [ 1 ] } </ Text >
248
+ </ VStack >
249
+ ) ) }
250
+ </ Grid >
251
+ < Stack direction = 'row' spacing = { 4 } align = 'center' >
252
+ < Button colorScheme = 'teal' variant = 'solid' >
253
+ Edit Details
254
+ </ Button >
255
+ { /* <Button colorScheme='teal' variant='outline'>
256
+ View Details
257
+ </Button> */ }
258
+ </ Stack >
259
+ </ VStack >
260
+ </ Box >
261
+ ) ;
262
+ }
0 commit comments