Skip to content

Commit 1dccc19

Browse files
committed
๐ŸŽจ design: ์–ผ๊ตด ์ธ์‹ ๋ฐ•์Šค UI ์ˆ˜์ • (goorm-6zo#189)
1 parent b481274 commit 1dccc19

5 files changed

Lines changed: 104 additions & 12 deletions

File tree

โ€Žsrc/components/card/user/conferenceCard/ConferenceCard.tsxโ€Ž

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ const ConferenceCard: React.FC<ConferenceCardProps> = ({
3030
imageUrl,
3131
onClick,
3232
}) => {
33+
console.log('img:', imageUrl);
3334
return (
3435
<S.CardContainer onClick={onClick}>
3536
{imageUrl && <Img size={100} imageUrl={imageUrl} />}

โ€Žsrc/pages/face-recognition/FaceRecognition.style.tsโ€Ž

Lines changed: 55 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,66 @@ export const ToastBox = styled.span`
2121
left: 50%;
2222
transform: translate(-50%, -50%);
2323
`;
24+
// export const Box = styled.div<BoxProps>`
25+
// position: absolute;
26+
// width: ${({ $boxWidth }) => `${$boxWidth}px`};
27+
// height: ${({ $boxHeight }) => `${$boxHeight}px`};
28+
// border: ${({ $isFaceInside }) =>
29+
// $isFaceInside ? '3px solid blue' : '3px solid red'};
30+
// top: 50%;
31+
// left: 50%;
32+
// display: flex;
33+
// justify-content: center;
34+
// align-items: center;
35+
// transform: translate(-50%, -50%);
36+
// `;
37+
2438
export const Box = styled.div<BoxProps>`
2539
position: absolute;
2640
width: ${({ $boxWidth }) => `${$boxWidth}px`};
2741
height: ${({ $boxHeight }) => `${$boxHeight}px`};
28-
border: ${({ $isFaceInside }) =>
29-
$isFaceInside ? '3px solid blue' : '3px solid red'};
3042
top: 50%;
3143
left: 50%;
32-
display: flex;
33-
justify-content: center;
34-
align-items: center;
3544
transform: translate(-50%, -50%);
45+
pointer-events: none;
46+
47+
&::before,
48+
&::after,
49+
> div::before,
50+
> div::after {
51+
content: '';
52+
position: absolute;
53+
width: 40px;
54+
height: 40px;
55+
border: ${({ $isFaceInside }) =>
56+
$isFaceInside ? `3px solid #1466FF` : '3px solid white'};
57+
}
58+
59+
&::before {
60+
top: 0;
61+
left: 0;
62+
border-right: none;
63+
border-bottom: none;
64+
}
65+
66+
&::after {
67+
top: 0;
68+
right: 0;
69+
border-left: none;
70+
border-bottom: none;
71+
}
72+
73+
> div::before {
74+
bottom: 0;
75+
left: 0;
76+
border-right: none;
77+
border-top: none;
78+
}
79+
80+
> div::after {
81+
bottom: 0;
82+
right: 0;
83+
border-left: none;
84+
border-top: none;
85+
}
3686
`;

โ€Žsrc/pages/face-recognition/FaceRecognition.tsxโ€Ž

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,9 @@ const FaceRecognition = () => {
119119
$boxWidth={boxSize}
120120
$boxHeight={boxSize}
121121
$isFaceInside={isFaceInside || faceState === 'success'}
122-
></S.Box>
122+
>
123+
<div />
124+
</S.Box>
123125
)}
124126
{isVideoLoaded && (
125127
<S.ToastBox>

โ€Žsrc/pages/user/FaceRegistration.style.tsโ€Ž

Lines changed: 42 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,52 @@ export const Box = styled.div<BoxProps>`
2020
position: absolute;
2121
width: ${({ $boxWidth }) => `${$boxWidth}px`};
2222
height: ${({ $boxHeight }) => `${$boxHeight}px`};
23-
border: ${({ $isFaceInside }) =>
24-
$isFaceInside ? '3px solid green' : '3px solid red'};
2523
top: 50%;
2624
left: 50%;
27-
display: flex;
28-
justify-content: center;
29-
align-items: center;
3025
transform: translate(-50%, -50%);
26+
pointer-events: none;
27+
28+
&::before,
29+
&::after,
30+
> div::before,
31+
> div::after {
32+
content: '';
33+
position: absolute;
34+
width: 30px;
35+
height: 30px;
36+
border: ${({ $isFaceInside }) =>
37+
$isFaceInside ? `3px solid #1466FF` : '3px solid white'};
38+
}
39+
40+
&::before {
41+
top: 0;
42+
left: 0;
43+
border-right: none;
44+
border-bottom: none;
45+
}
46+
47+
&::after {
48+
top: 0;
49+
right: 0;
50+
border-left: none;
51+
border-bottom: none;
52+
}
53+
54+
> div::before {
55+
bottom: 0;
56+
left: 0;
57+
border-right: none;
58+
border-top: none;
59+
}
60+
61+
> div::after {
62+
bottom: 0;
63+
right: 0;
64+
border-left: none;
65+
border-top: none;
66+
}
3167
`;
68+
3269
export const ToastBox = styled.span`
3370
position: absolute;
3471
bottom: 10%;

โ€Žsrc/pages/user/FaceRegistration.tsxโ€Ž

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,9 @@ const FaceRegistration = () => {
7777
$boxWidth={230}
7878
$boxHeight={230}
7979
$isFaceInside={isFaceInside}
80-
></S.Box>
80+
>
81+
<div />
82+
</S.Box>
8183
)}
8284
{isCameraVisible && isVideoLoaded && (
8385
<S.ToastBox>

0 commit comments

Comments
ย (0)