Skip to content

Commit b23d989

Browse files
committed
Create dummy Job Card in Posts Page of TPO Side
Fixes TeamOpencampus#85
1 parent 4173b38 commit b23d989

File tree

1 file changed

+61
-1
lines changed

1 file changed

+61
-1
lines changed

src/pages/dashboard/collage/PostsPage.tsx

Lines changed: 61 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ import {
88
FormErrorMessage,
99
FormHelperText,
1010
FormLabel,
11+
Grid,
12+
GridItem,
1113
Heading,
1214
HStack,
1315
Input,
@@ -21,6 +23,9 @@ import {
2123
NumberInput,
2224
NumberInputField,
2325
Select,
26+
Stack,
27+
Tag,
28+
Text,
2429
Textarea,
2530
useDisclosure,
2631
VStack,
@@ -191,12 +196,67 @@ export function PostsPage() {
191196
</Modal>
192197
<VStack spacing='4' align='stretch'>
193198
<HStack justify='space-between' align='center'>
194-
<Heading>Posts</Heading>
199+
<Heading>Job Posted</Heading>
195200
<Button leftIcon={<Icon name='add' />} onClick={onOpen}>
196201
New Post
197202
</Button>
198203
</HStack>
204+
<Grid templateColumns='repeat(2, 1fr)' gap='4'>
205+
<GridItem>
206+
<JobFeedItem />
207+
</GridItem>
208+
</Grid>
199209
</VStack>
200210
</>
201211
);
202212
}
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

Comments
 (0)