-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feat: home page card added to schedule page atm
- Loading branch information
Showing
2 changed files
with
111 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
import React from "react" | ||
import { | ||
Flex, | ||
Heading, | ||
Text, | ||
Box, | ||
Circle | ||
} from "@chakra-ui/react"; | ||
|
||
type Props = { | ||
room: string | number; | ||
residentId: number; | ||
}; | ||
|
||
const RoomCard = ({ | ||
room, | ||
residentId | ||
}: Props): React.ReactElement => { | ||
|
||
return ( | ||
<Box | ||
p="10px" | ||
ml="30px" | ||
mr="20px" | ||
mt="20px" | ||
border="solid" | ||
borderRadius="10px" | ||
borderColor="gray.300" | ||
w="17vw" | ||
> | ||
{/* <Avatar name="Jane Doe" src="https://bit.ly/2k1H1t6" /> */} | ||
<Flex flexDir="column" ml={4} my={4}> | ||
<Heading size="sm" color="purple.500"> | ||
Room {room} — ID{residentId} | ||
</Heading> | ||
<Flex flexDir="column" my="5px"> | ||
<Flex flexDir="row"> | ||
<Circle | ||
size="35px" | ||
border="solid" | ||
borderColor="gray.300" | ||
my={1} | ||
> | ||
<Flex alignItems="center" justifyContent="center" fontSize="sm"> | ||
1 | ||
</Flex> | ||
</Circle> | ||
<Flex alignItems="center" justifyContent="center" fontSize="md" ml={3}> | ||
Pending Tasks | ||
</Flex> | ||
</Flex> | ||
<Flex flexDir="row"> | ||
<Circle | ||
size="35px" | ||
border="solid" | ||
borderColor="gray.300" | ||
my={1} | ||
> | ||
<Flex alignItems="center" justifyContent="center" fontSize="sm"> | ||
2 | ||
</Flex> | ||
</Circle> | ||
<Flex alignItems="center" justifyContent="center" fontSize="md" ml={3}> | ||
Tasks Assigned | ||
</Flex> | ||
</Flex> | ||
<Flex flexDir="row"> | ||
<Circle | ||
size="35px" | ||
border="solid" | ||
borderColor="gray.300" | ||
my={1} | ||
> | ||
<Flex alignItems="center" justifyContent="center" fontSize="sm"> | ||
2 | ||
</Flex> | ||
</Circle> | ||
<Flex alignItems="center" justifyContent="center" fontSize="md" ml={3}> | ||
Active Warnings | ||
</Flex> | ||
</Flex> | ||
</Flex> | ||
</Flex> | ||
</Box> | ||
) | ||
} | ||
|
||
export default RoomCard; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters