Skip to content

Commit

Permalink
Merge pull request #67 from softeerbootcamp4th/hotfix/clipboard
Browse files Browse the repository at this point in the history
[Hotfix] 숨은캐스퍼찾기 랜딩페이지 UI 오류 수정 및 불필요한 코드 삭제
  • Loading branch information
minani-0621 authored Aug 23, 2024
2 parents 9eef881 + 835a240 commit 0901dcb
Showing 1 changed file with 1 addition and 24 deletions.
25 changes: 1 addition & 24 deletions Caecae/src/features/FindingGameLanding/LadingPageTitle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,33 +52,10 @@ const LadingPageTitle = ({ onClick }: LadingPageTitleProps) => {
console.error('URL 복사에 실패했습니다.', err);
setIsAnimating(false);
});

navigator.clipboard
.writeText(url)
.then(() => {
setShowMessage(true);

setTimeout(() => {
setAnimate(true);

setTimeout(() => {
setAnimate(false);

setTimeout(() => {
setShowMessage(false);
setIsAnimating(false);
}, 500);
}, 3000);
}, 10);
})
.catch((err: Error) => {
console.error("URL 복사에 실패했습니다.", err);
setIsAnimating(false);
});
};
return (
<>
<div className="flex w-screen h-screen justify-center items-center relative overflow-hidden min-h-[950px]">
<div className="flex w-full h-screen justify-center items-center relative overflow-hidden min-h-[950px]">
<div className="absolute z-20 flex flex-col items-center h-screen justify-center min-h-[950px]">
<p className="text-[#CCCCCC] text-[20px]">
<span className="font-bold text-[white]">CASPER Electric</span> 신차
Expand Down

0 comments on commit 0901dcb

Please sign in to comment.