-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
62 changed files
with
1,955 additions
and
410 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
// InviteModal.style.ts | ||
import { css } from "@styled-system/css"; | ||
|
||
export const modalContentContainer = css({ | ||
display: "flex", | ||
gap: "16px", | ||
flexDirection: "column", | ||
width: "400px", | ||
padding: "16px", | ||
}); | ||
|
||
export const titleText = css({ | ||
color: "gray.800", | ||
fontSize: "xl", | ||
fontWeight: "bold", | ||
}); | ||
|
||
export const descriptionText = css({ | ||
color: "gray.600", | ||
fontSize: "sm", | ||
}); | ||
|
||
export const emailInput = css({ | ||
outline: "none", | ||
border: "1px solid", | ||
borderColor: "gray.200", | ||
borderRadius: "md", | ||
// ๊ธฐ๋ณธ input ์คํ์ผ ์ถ๊ฐ | ||
width: "100%", | ||
padding: "8px 12px", | ||
fontSize: "sm", | ||
_placeholder: { | ||
color: "gray.400", | ||
}, | ||
_focus: { | ||
borderColor: "blue.500", | ||
boxShadow: "0 0 0 1px blue.500", | ||
}, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
// InviteModal.tsx | ||
import { useState } from "react"; | ||
import { modalContentContainer, titleText, descriptionText, emailInput } from "./InviteModal.style"; | ||
import { Modal } from "./modal"; | ||
|
||
interface InviteModalProps { | ||
isOpen: boolean; | ||
onClose: () => void; | ||
onInvite: (email: string) => void; | ||
} | ||
|
||
export const InviteModal = ({ isOpen, onClose, onInvite }: InviteModalProps) => { | ||
const [email, setEmail] = useState(""); | ||
|
||
const handleInvite = () => { | ||
onInvite(email); | ||
setEmail(""); | ||
onClose(); | ||
}; | ||
|
||
return ( | ||
<Modal | ||
isOpen={isOpen} | ||
primaryButtonLabel="์ด๋ํ๊ธฐ" | ||
primaryButtonOnClick={handleInvite} | ||
secondaryButtonLabel="์ทจ์" | ||
secondaryButtonOnClick={onClose} | ||
> | ||
<div className={modalContentContainer}> | ||
<h2 className={titleText}>์ํฌ์คํ์ด์ค ์ด๋</h2> | ||
<p className={descriptionText}>์ด๋ํ ์ฌ์ฉ์์ ์ด๋ฉ์ผ์ ์ ๋ ฅํด์ฃผ์ธ์</p> | ||
<input | ||
className={emailInput} | ||
onChange={(e) => setEmail(e.target.value)} | ||
placeholder="์ด๋ฉ์ผ ์ฃผ์ ์ ๋ ฅ" | ||
type="email" | ||
value={email} | ||
/> | ||
</div> | ||
</Modal> | ||
); | ||
}; |
Oops, something went wrong.