File tree 1 file changed +35
-2
lines changed
frontend/src/components/landing
1 file changed +35
-2
lines changed Original file line number Diff line number Diff line change
1
+ import { MouseEventHandler } from "react" ;
2
+
1
3
const LandingLinkModal = ( { close } : { close : ( ) => void } ) => {
4
+ const handleCloseClick : MouseEventHandler <
5
+ HTMLButtonElement | HTMLDivElement
6
+ > = ( { target, currentTarget } : React . MouseEvent ) => {
7
+ if ( target !== currentTarget ) return ;
8
+ close ( ) ;
9
+ } ;
10
+
2
11
return (
3
- < div className = "w-full h-full bg-black-30 flex justify-center items-center" >
4
- < div className = "w-[40.625rem]" > hello world</ div >
12
+ < div
13
+ className = "top-0 left-0 absolute w-screen h-screen flex justify-center items-center bg-black bg-opacity-30"
14
+ onClick = { handleCloseClick }
15
+ >
16
+ < div className = "w-[40.625rem] bg-white flex flex-col p-9 gap-9 rounded-lg shadow-box" >
17
+ < p className = "text-m font-bold" > | 링크 추가하기</ p >
18
+ < div className = "flex gap-8 items-center" >
19
+ < p className = "text-xs shrink-0" > 링크 주소</ p >
20
+ < input className = "rounded-lg w-full border border-text-gray text-xs py-1 px-2" />
21
+ </ div >
22
+ < div className = "flex gap-8 items-center" >
23
+ < p className = "text-xs shrink-0" > 링크 이름</ p >
24
+ < input className = "rounded-lg w-full border border-text-gray text-xs py-1 px-2" />
25
+ </ div >
26
+ < div className = "flex gap-3 justify-end" >
27
+ < button className = "rounded-lg bg-middle-green text-white text-xs px-3 py-1 hover:bg-dark-green" >
28
+ 완료
29
+ </ button >
30
+ < button
31
+ className = "rounded-lg border border-light-gray text-xs px-3 py-1 hover:bg-light-gray"
32
+ onClick = { handleCloseClick }
33
+ >
34
+ 취소
35
+ </ button >
36
+ </ div >
37
+ </ div >
5
38
</ div >
6
39
) ;
7
40
} ;
You can’t perform that action at this time.
0 commit comments