Skip to content

Commit 227675e

Browse files
authored
Merge pull request #103 from YAPP-Github/feat/login-lottie
2 parents 4929051 + 13ef8f9 commit 227675e

File tree

4 files changed

+356
-5
lines changed

4 files changed

+356
-5
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,11 @@
2727
"@vanilla-extract/css": "^1.17.2",
2828
"@vanilla-extract/dynamic": "^2.1.5",
2929
"@vanilla-extract/recipes": "^0.5.7",
30-
"framer-motion": "^12.23.9",
3130
"es-toolkit": "^1.39.7",
31+
"framer-motion": "^12.23.9",
3232
"iron-session": "^8.0.4",
3333
"ky": "1.7.5",
34+
"lottie-react": "^2.4.1",
3435
"next": "15.3.2",
3536
"react": "^19.0.0",
3637
"react-dom": "^19.0.0",

pnpm-lock.yaml

Lines changed: 23 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/app/(auth)/login/callback/page.tsx

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
"use client";
22

3+
import Lottie from "lottie-react";
34
import { useRouter, useSearchParams } from "next/navigation";
45
import { useEffect } from "react";
56

67
import { useLoginMutation } from "@/app/(auth)/_api/auth/auth.queries";
8+
import loginSpinner from "@/assets/login-spinner.json";
9+
import { VStack } from "@/components/ui/Stack";
10+
import { Text } from "@/components/ui/Text";
711

812
export default function AuthCallbackPage() {
913
const router = useRouter();
@@ -38,5 +42,33 @@ export default function AuthCallbackPage() {
3842
}
3943
}, [code, login, router, next]);
4044

41-
return <div>로그인 중입니다...</div>;
45+
return (
46+
<VStack
47+
gap={12}
48+
align='center'
49+
justify='center'
50+
style={{ minHeight: "100dvh" }}
51+
>
52+
<Lottie animationData={loginSpinner} style={{ width: 76, height: 76 }} />
53+
54+
<VStack gap={4} align='center'>
55+
<Text
56+
as='h1'
57+
typo='title2Md'
58+
color='text.normal'
59+
style={{ fontWeight: 700, textAlign: "center" }}
60+
>
61+
로그인 중입니다..
62+
</Text>
63+
<Text
64+
as='p'
65+
typo='body2Md'
66+
color='text.alternative'
67+
style={{ textAlign: "center" }}
68+
>
69+
잠시만 기다려 주세요
70+
</Text>
71+
</VStack>
72+
</VStack>
73+
);
4274
}

0 commit comments

Comments
 (0)