@using Microsoft.AspNetCore.Http;
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>@(string.IsNullOrWhiteSpace(ViewData["Title"].ToString()) ? "JTK PC방" : $"{ViewData["Title"]} - JTK PC방" )</title>

    @Html.Partial("_Favicons")
    <environment include="Development">
        <link rel="stylesheet" href="~/lib/bootstrap/dist/css/bootstrap.css" />
        <link rel="stylesheet" href="~/css/site.css" />
    </environment>
    <environment exclude="Development">
        <link rel="stylesheet" href="https://ajax.aspnetcdn.com/ajax/bootstrap/3.3.7/css/bootstrap.min.css"
              asp-fallback-href="~/lib/bootstrap/dist/css/bootstrap.min.css"
              asp-fallback-test-class="sr-only" asp-fallback-test-property="position" asp-fallback-test-value="absolute" />
        <link rel="stylesheet" href="~/css/site.min.css" asp-append-version="true" />
    </environment>
    <style type="text/css">
        h1, h1 .glyphicon, h2, h3, h4 {
            background: -webkit-linear-gradient(#333, #444, #333, #222, #000);
            font-weight:700;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }
        h1 .glyphicon {
            font-size: smaller;
        }
        a.glyphicon {
        }
        a:link.glyphicon {
            color: black;
        }

        a:visited.glyphicon {
            color: black;
        }

        a:hover.glyphicon {
            color: #888;
            text-decoration: none;
        }

        a:active.glyphicon {
            color: black;
        }
    </style>
</head>
<body>
    <nav class="navbar navbar-inverse navbar-fixed-top">
        <div class="container">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                    <span class="sr-only">Toggle navigation</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a asp-page="/Index" class="navbar-brand"><img src="~/images/logo.svg" style="display:inline; position:relative; left: 0px; top: -2px;" width="24" height="24" alt="JTK 로고" class="img-responsive" />PC방</a>
            </div>
            <div class="navbar-collapse collapse">
                <ul class="nav navbar-nav">
                    @*<li><a asp-page="/Index">홈</a></li>*@
                    <li><a asp-page="/PCBang/Index">PC방</a></li>
                    <li><a asp-page="/MyPage/Index">마이페이지</a></li>
                    <li><a asp-page="/About">제휴문의</a></li>
                    @if (ViewData["LoggedInUserId"]?.ToString() == "admin") {
                        <li><a href="/Manage">관리자</a></li>
                    }
                </ul>
            </div>
        </div>
    </nav>
    <div class="container body-content">
        @RenderBody()
        <hr />
        <footer>
            <span style="color:#888;">
                <img src="~/images/logo888.png" style="display:inline; position:relative; left: 0px; top: -2px;" width="43" height="16" alt="JTK 로고" class="img-responsive" />Copyright &copy; <strong>JTK Corp.</strong> All Rights Reserved.<br />
                대표 김정태 | 경기도 부천시 소사구 범안로 130-27 14778<br />
                사업자등록번호 220-81-62517 | 전화 010-4716-7251
            </span>&nbsp;
            @if (ViewData.TryGetValue("LoggedIn", out var loggedIn) == true && (bool)loggedIn == true) {
                <a asp-page="/Logout">로그아웃</a>

            } else {
                <a asp-page="/Login">로그인</a>
            }
        </footer>
    </div>

    <link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">

    <environment include="Development">
        <script src="~/lib/jquery/dist/jquery.js"></script>
        <script src="~/lib/bootstrap/dist/js/bootstrap.js"></script>
        <script src="~/js/site.js" asp-append-version="true"></script>
    </environment>
    <environment exclude="Development">
        <script src="https://ajax.aspnetcdn.com/ajax/jquery/jquery-2.2.0.min.js"
                asp-fallback-src="~/lib/jquery/dist/jquery.min.js"
                asp-fallback-test="window.jQuery"
                crossorigin="anonymous"
                integrity="sha384-K+ctZQ+LL8q6tP7I94W+qzQsfRV2a+AfHIi9k8z8l9ggpc8X+Ytst4yBo/hH+8Fk">
        </script>
        <script src="https://ajax.aspnetcdn.com/ajax/bootstrap/3.3.7/bootstrap.min.js"
                asp-fallback-src="~/lib/bootstrap/dist/js/bootstrap.min.js"
                asp-fallback-test="window.jQuery && window.jQuery.fn && window.jQuery.fn.modal"
                crossorigin="anonymous"
                integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa">
        </script>
        <script src="~/js/site.min.js" asp-append-version="true"></script>
    </environment>

    @RenderSection("Scripts", required: false)
</body>
</html>
