<!DOCTYPE html>
<html lang="ko" xmlns:th="http://www.thymeleaf.org"
      xmlns:sec="http://www.thymeleaf.org/extras/spring-security">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>owrawww</title>
    <link rel="stylesheet" th:href="@{/css/style.css}">
</head>
<body>
<header>
    <nav>
        <span>owrawww</span>
        <div sec:authorize="isAuthenticated()">
            <span sec:authentication="name"></span>님 환영합니다.
            <a th:href="@{/auth/logout}">로그아웃</a>
        </div>
        <div sec:authorize="!isAuthenticated()">
            <a th:href="@{/auth/login}">로그인</a>
        </div>
    </nav>
</header>

<main>
    <h1>메인 페이지</h1>
    <p>Spring Boot + Thymeleaf + MyBatis + Spring Security</p>
</main>
</body>
</html>
