@page
@model IndexModel
@{
    ViewData["Title"] = "Home page";
}

<div class="text-center">
    <h1 class="display-4">Welcome</h1>
    <div class="container-fluid">
        @if (User.Identity == null || !User.Identity.IsAuthenticated)
        {

            <h2>Please log in</h2>
            <a asp-page="/UserHome" style="display: inline-block;">
                <span style="white-space: nowrap;display: flex;">
                    Login with
                    <img style="no-repeat;width: 6em;background-size: contain;background-position: center;margin-left: 10px;" src="~/static/JackNet-auth-logo-orange.svg"></img>
                </span>
            </a>

        }
        else
        {
            <p>You're already logged in, please use the <a asp-area="" asp-page="/UserHome">User</a> tab to see your devices.</p>
        }
    </div>
