-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'photocard-new-feature' into develop
- Loading branch information
Showing
16 changed files
with
328 additions
and
57 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,15 @@ | ||
import {Toast} from "./Toast"; | ||
|
||
export interface CompleteCopyToastProps { | ||
toast: JSX.Element | undefined | ||
setToast: (toast: JSX.Element | undefined) => void | ||
} | ||
|
||
export const CompleteCopyToast = (props: CompleteCopyToastProps) => { | ||
return <Toast | ||
currentToast={props.toast} | ||
setToast={props.setToast}> | ||
<img src={"/Check.svg"} width={"40px"} alt={""}/> | ||
<p className={"text-text-white text-[30px] font-p-regular"}>링크가 복사되었습니다!</p> | ||
</Toast> | ||
} |
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,33 @@ | ||
export interface ToastProps { | ||
children: JSX.Element[] | ||
className?: string | ||
currentToast: JSX.Element | undefined | ||
setToast: (value: JSX.Element | undefined) => void | ||
} | ||
|
||
export const Toast = (props: ToastProps) => { | ||
|
||
const animeId = setTimeout(() => { | ||
try { | ||
document.getElementById('toast')!.className += " toast-down-animation" | ||
} catch (e) { | ||
if (e instanceof TypeError) { | ||
// 상관 없음 | ||
return | ||
} | ||
console.error(e) | ||
} | ||
}, 4000) | ||
const removeId = setTimeout(() => { | ||
props.setToast(undefined) | ||
}, 5000) | ||
|
||
|
||
return ( | ||
<div | ||
id={`toast`} | ||
className={`fixed bottom-[30px] right-[30px] flex flex-row items-center h-[100px] bg-background-highlight border-[1px] border-solid border-photocard-stroke gap-[10px] px-[30px] py-[10px] rounded-[30px] toast-up-animation ${props.className}`}> | ||
{props.children} | ||
</div> | ||
) | ||
} |
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,24 @@ | ||
import {DivIconButton, IconProps} from "./DivIconButton"; | ||
|
||
export interface GotoDivIconButtonProps { | ||
iconProps: IconProps | ||
gap?: string | ||
text: string | ||
textSize: string | ||
gotoPath: string | ||
className?: string | ||
} | ||
|
||
export const GotoDivIconButton = (props: GotoDivIconButtonProps) => { | ||
return ( | ||
<a href={props.gotoPath}> | ||
<DivIconButton | ||
iconProps={props.iconProps} | ||
gap={props.gap ? props.gap : "10px"} | ||
text={props.text} | ||
textSize={props.textSize} | ||
className={`p-[10px] ${props.className}`} | ||
/> | ||
</a> | ||
) | ||
} |
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
Oops, something went wrong.