@page "/auth"
@page "/am/auth"

<div class="flex flex-col items-center justify-center min-h-screen bg-gray-100">
    <h1 class="text-2xl font-bold mb-4">로그인</h1>
    <div class="w-full max-w-xs">
        @if (NavigationManager.Uri.Contains("/am/auth"))
        {
            <button type="button" class="w-full mb-4 p-2 rounded focus:outline-none" 
            @onclick="@(() => KakaoLogin("/am/intro"))" >
                <img src="//k.kakaocdn.net/14/dn/btqCn0WEmI3/nijroPfbpCa4at5EIsjyf0/o.jpg"
                     alt="카카오 로그인"
                     class="rounded w-full transition duration-150 hover:brightness-90" />
            </button>
        }
        else
        {
            <button type="button" class="w-full mb-4 p-2 rounded focus:outline-none" 
            @onclick="@(() => KakaoLogin("/about"))" >
                <img src="//k.kakaocdn.net/14/dn/btqCn0WEmI3/nijroPfbpCa4at5EIsjyf0/o.jpg"
                     alt="카카오 로그인"
                     class="rounded w-full transition duration-150 hover:brightness-90" />
            </button>
        }
    </div>
</div>