Skip to content

Commit

Permalink
CardStyleの作成
Browse files Browse the repository at this point in the history
  • Loading branch information
kinako1415 committed Sep 1, 2024
1 parent 78e61e7 commit 589f801
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions src/components/member/Card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,22 @@ export function MemberCard({
}
`;

const CardStyle = styled(Flex)`
transition: background-color 100ms;
color: #374151;
border-radius: 16px;
height: fit-content;
cursor: pointer;
&:hover {
box-shadow:
inset 8px 8px 16px #b5bec9,
inset -8px -8px 16px #ffffff;
transition: 100ms;
}
`;

return (
<TableRow
<CardStyle
onClick={() => {
if (member.email == null) {
throw new Error("Member email is undefined");
Expand All @@ -48,6 +62,6 @@ export function MemberCard({
{point}pt
</Text>
</Table.Cell>
</TableRow>
</CardStyle>
);
}

0 comments on commit 589f801

Please sign in to comment.