Skip to content

Commit

Permalink
fix: 버그 수정 및 사이즈 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
Doeunnkimm committed Sep 13, 2024
1 parent b4c9ff4 commit 90771e4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 6 additions & 4 deletions packages/web-domains/src/common/animates/Confetti.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,20 @@ interface ConfettiProps {
top: number;
left: number;
};
size?: number;
width?: number;
height?: number;
}

export const Confetti = (props: ConfettiProps) => {
const {
position: { top, left },
size = 500,
width,
height,
} = props;

const canvasStyles: CSSProperties = {
width: size,
height: size,
width: width ?? '100%',
height: height ?? '100%',
zIndex: '3',
position: 'absolute',
top,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const ClosingMessage = (props: ClosingMessageProps) => {

return (
<>
<Confetti position={{ top: 0, left: 0 }} size={600} />
<Confetti position={{ top: 0, left: 0 }} height={350} />
<div
css={{
position: 'absolute',
Expand Down

0 comments on commit 90771e4

Please sign in to comment.