-
Notifications
You must be signed in to change notification settings - Fork 1
[Feature/#176] 임시 안내 화면 및 알림 구현 #177
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 hidden or 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,52 @@ | ||
| import type { ReactNode } from "react"; | ||
| import { memo } from "react"; | ||
| import { twMerge } from "tailwind-merge"; | ||
|
|
||
| import WarningIcon from "@/assets/icon/ai/warning.svg?react"; | ||
|
|
||
| export interface IComingSoonPlaceholderProps { | ||
| title: ReactNode; | ||
| description: ReactNode; | ||
| footer: ReactNode; | ||
| className?: string; | ||
| } | ||
|
|
||
| const ComingSoonPlaceholder = memo(function ComingSoonPlaceholder({ | ||
| title, | ||
| description, | ||
| footer, | ||
| className, | ||
| }: IComingSoonPlaceholderProps) { | ||
| return ( | ||
| <div | ||
| className={twMerge( | ||
| "flex h-full min-h-[70vh] w-full flex-1 flex-col items-center justify-center p-4", | ||
| className, | ||
| )} | ||
| > | ||
| <div | ||
| className="coming-soon-stagger flex w-full max-w-[420px] flex-col items-center rounded-[32px] bg-white px-8 py-12 text-center shadow-card transition-smooth hover:shadow-card-hover tablet:px-6" | ||
| role="status" | ||
| aria-live="polite" | ||
| > | ||
| <div className="mb-6 flex items-center justify-center"> | ||
| <WarningIcon className="h-30 w-auto shrink-0" aria-hidden /> | ||
| </div> | ||
|
|
||
| <h1 className="mb-4 text-balance font-heading1 font-bold leading-snug tracking-tight text-text-main"> | ||
| {title} | ||
| </h1> | ||
|
|
||
| <p className="break-keep font-body1 leading-relaxed text-text-auth-sub"> | ||
| {description} | ||
| </p> | ||
|
|
||
| <div className="mt-8 flex w-full items-center justify-center rounded-component-md bg-chart-inactive px-6 py-4"> | ||
| <p className="font-body1 font-medium text-text-main">{footer}</p> | ||
| </div> | ||
| </div> | ||
| </div> | ||
| ); | ||
| }); | ||
|
|
||
| export default ComingSoonPlaceholder; | ||
This file contains hidden or 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 hidden or 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,16 @@ | ||
| import { useCallback } from "react"; | ||
| import { toast } from "sonner"; | ||
|
|
||
| const DEFAULT_MESSAGE = | ||
| "해당 기능은 아직 준비 중이에요. 곧 이용하실 수 있어요!"; | ||
|
|
||
| export function useComingSoon() { | ||
| const showComingSoon = useCallback((message: string = DEFAULT_MESSAGE) => { | ||
| toast.info(message, { | ||
| id: "coming-soon", | ||
| duration: 4000, | ||
| }); | ||
| }, []); | ||
|
|
||
| return { showComingSoon }; | ||
| } |
This file contains hidden or 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 hidden or 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 |
|---|---|---|
| @@ -1,3 +1,21 @@ | ||
| import ComingSoonPlaceholder from "@/components/common/ComingSoonPlaceholder"; | ||
|
|
||
| export default function Timeline() { | ||
| return <div>Timeline</div>; | ||
| return ( | ||
| <ComingSoonPlaceholder | ||
| title={ | ||
| <> | ||
| <span className="block">성과 타임라인을</span> | ||
| <span className="block">준비하고 있어요</span> | ||
| </> | ||
| } | ||
| description={ | ||
| <> | ||
| <span className="block">캠페인 흐름을 한눈에 파악할 수 있도록,</span> | ||
| <span className="block">더 유용한 기능으로 찾아올게요.</span> | ||
| </> | ||
| } | ||
| footer="조금만 기다려 주시면 감사하겠습니다" | ||
| /> | ||
| ); | ||
| } |
This file contains hidden or 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 |
|---|---|---|
| @@ -1,3 +1,23 @@ | ||
| import ComingSoonPlaceholder from "@/components/common/ComingSoonPlaceholder"; | ||
|
|
||
| export default function Billing() { | ||
| return <div>Billing</div>; | ||
| return ( | ||
| <ComingSoonPlaceholder | ||
| title={ | ||
| <> | ||
| <span className="block">플랜 및 결제 기능을</span> | ||
| <span className="block">준비하고 있어요</span> | ||
| </> | ||
| } | ||
| description={ | ||
| <> | ||
| <span className="block"> | ||
| 플랜 선택과 결제 정보를 편하게 관리할 수 있는 | ||
| </span> | ||
| <span className="block">기능을 열심히 만들고 있습니다.</span> | ||
| </> | ||
| } | ||
| footer="정식 오픈 후 이용하실 수 있습니다" | ||
| /> | ||
| ); | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.