Skip to content

Commit

Permalink
feat:UserCardのサイズを拡大
Browse files Browse the repository at this point in the history
  • Loading branch information
KikyoNanakusa committed Apr 5, 2024
1 parent 0d7ff84 commit 22e4b0e
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions typing-app/src/components/molecules/UserCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,15 @@ interface UserCardPresenterProps {

export const UserCardPresenter = ({ user }: UserCardPresenterProps) => {
return (
<Box bg="blue.600" p={5}>
<HStack spacing={4}>
<Avatar src={ "https://www.shizuoka.ac.jp/cms/files/shizudai/MASTER/0100/uISrbYCb_VL033_r03.png" } maxW="100px" borderRadius="0" />
<VStack align="start">
<Text fontSize="lg" fontWeight="bold" color="white">
名前: {user ? user.handleName : "ログインしていません"}
</Text>
<Text color="white">学籍番号: {user ? user.studentNumber : "未ログイン"}</Text>
</VStack>
</HStack>
</Box>
<HStack spacing={4} bg="blue.600">
<Avatar src={"https://www.shizuoka.ac.jp/cms/files/shizudai/MASTER/0100/uISrbYCb_VL033_r03.png"} boxSize="100px" borderRadius="0" />
<VStack align="start" paddingRight="8px">
<Text fontSize="lg" fontWeight="bold" color="white">
名前: {user ? user.handleName : "ログインしていません"}
</Text>
<Text color="white">学籍番号: {user ? user.studentNumber : "未ログイン"}</Text>
</VStack>
</HStack>
);
};

Expand Down

0 comments on commit 22e4b0e

Please sign in to comment.