page.tsx 673 B

12345678910111213141516171819202122
  1. 'use client';
  2. import { useEffect } from 'react';
  3. import Image from 'next/image';
  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. <Image src="/resources/m-logo.png" alt="bitforum" width={256} height={64} className="w-36 sm:w-44 h-auto" priority />
  14. <div className="w-7 h-7 border-[3px] border-gray-200 border-t-[#F7931A] rounded-full animate-spin" />
  15. <p className="text-sm text-[var(--text-muted)]">Google 로그인 처리 중...</p>
  16. </div>
  17. );
  18. }