page.tsx 645 B

123456789101112131415161718192021222324
  1. 'use client';
  2. import { useEffect } from 'react';
  3. import Logo from '@/app/component/Logo';
  4. import useAuth from '@/hooks/useAuth';
  5. export default function Page()
  6. {
  7. const { login } = useAuth();
  8. useEffect(() => {
  9. login(true);
  10. }, []);
  11. return (
  12. <div className="fixed inset-0 flex flex-col items-center justify-center gap-6 bg-[var(--bg-page)] z-50">
  13. <span className="auth-logo inline-block">
  14. <Logo size="lg" />
  15. </span>
  16. <div className="w-7 h-7 border-[3px] border-gray-200 border-t-[var(--color-accent)] rounded-full animate-spin" />
  17. <p className="text-sm text-[var(--text-muted)]">Google 로그인 중...</p>
  18. </div>
  19. );
  20. }