로그인 레이아웃 로그인 페이지 수정
This commit is contained in:
@@ -1,13 +1,13 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout" xmlns:th="http://www.thymeleaf.org">
|
<html xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout" xmlns:th="http://www.thymeleaf.org">
|
||||||
|
|
||||||
<head th:replace="~{common/components :: head}"></head>
|
<head th:replace="~{common/components :: head}"></head>
|
||||||
|
<section layout:fragment="script"></section>
|
||||||
<body>
|
<body>
|
||||||
|
<div id="wrap">
|
||||||
<section class="container" layout:fragment="content">
|
<div id="container" class = "login-wrap" layout:fragment="content">
|
||||||
<p>Page content goes here</p>
|
<p>Page content goes here</p>
|
||||||
</section>
|
</div>
|
||||||
|
<section th:replace="~{common/components :: footer}"></section>
|
||||||
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html layout:decorate="~{layout/layout}" xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
|
<html layout:decorate="~{layout/layout-login}" xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
|
||||||
xmlns:th="http://www.thymeleaf.org">
|
xmlns:th="http://www.thymeleaf.org">
|
||||||
|
|
||||||
<section layout:fragment="content">
|
<div layout:fragment="content">
|
||||||
<form method="post" th:action="@{/login}">
|
<form method="post" th:action="@{/login}">
|
||||||
|
|
||||||
<div class="" th:if="${session['SPRING_SECURITY_LAST_EXCEPTION']} != null">
|
<div class="" th:if="${session['SPRING_SECURITY_LAST_EXCEPTION']} != null">
|
||||||
@@ -11,35 +11,90 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<h3>
|
<main id="content" role="main">
|
||||||
<a href="/oauth2/authorization/kakao">카카오 로그인</a>
|
<div class="inner">
|
||||||
<a href="/oauth2/authorization/naver">네이버 로그인</a>
|
<hgroup class="login-tit-group">
|
||||||
</h3>
|
<span>2025</span>
|
||||||
|
<h3>
|
||||||
<div class="">
|
임가경제조사 일계부
|
||||||
<label for="floatingInput">ID</label>
|
</h3>
|
||||||
<input autofocus class="" id="floatingInput" name="username" placeholder="ID를 입력해주세요" value="11111"
|
</hgroup>
|
||||||
type="text">
|
<div class="login-form-group">
|
||||||
</div>
|
<div class="component-input">
|
||||||
<div class="">
|
<div class="input-label">
|
||||||
<label for="floatingPassword">Password</label>
|
<label for="floatingInput" class="label-txt">
|
||||||
<input class="f" id="floatingPassword" name="password" placeholder="Password" type="password" value="1111">
|
임가번호
|
||||||
</div>
|
</label>
|
||||||
|
</div>
|
||||||
<div class="">
|
<div class="input-field">
|
||||||
<div aria-label="Basic checkbox toggle button group" class="" roleDto="group">
|
<input autofocus class="" id="floatingInput" placeholder="임가번호를 입력해 주세요" value="11111"
|
||||||
<input autocomplete="off" class="" id="btn_ck1" name="remember-me" type="checkbox">
|
type="number" maxlength="5">
|
||||||
<label class="" for="btn_ck1">로그인 상태 유지하기</label>
|
</div>
|
||||||
|
<ul class="input-info" id="username-error" style="display: none;">
|
||||||
|
<li>임가번호를 입력해주세요</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<div class="component-input" data-props-toggle-Password="true">
|
||||||
|
<div class="input-label">
|
||||||
|
<label for="floatingPassword" class="label-txt">
|
||||||
|
비밀번호
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
<div class="input-field">
|
||||||
|
<input type="password" id="floatingPassword" placeholder="비밀번호 4자리를 입력해 주세요" value="1111" maxlength="4">
|
||||||
|
</div>
|
||||||
|
<ul class="input-info" id="password-error" style="display: none;">
|
||||||
|
<li>비밀번호를 입력해주세요</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<div class="component-input" roleDto="group" aria-label="Basic checkbox toggle button group">
|
||||||
|
<label for="btn_ck1" class="checkbox-inner">
|
||||||
|
<input autocomplete="off" type="checkbox" id="btn_ck1" name="remember-me">
|
||||||
|
<span class="checkbox-item">
|
||||||
|
<span class="checkbox-txt">로그인 상태 유지</span>
|
||||||
|
</span>
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
<button type="submit" class="btn btn-m btn-primary btn-full">
|
||||||
|
<span class="btn-txt">로그인</span>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</main>
|
||||||
<button class="" type="submit">Sign in</button>
|
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<div>
|
</div>
|
||||||
<a href="/user/register">회원가입</a>
|
<th:block layout:fragment="script">
|
||||||
</div>
|
<script th:inline="javascript">
|
||||||
|
|
||||||
</section>
|
|
||||||
|
|
||||||
|
document.getElementById('floatingPassword').addEventListener('focusout', function() {
|
||||||
|
const passwordInput = this;
|
||||||
|
const passwordValue = passwordInput.value;
|
||||||
|
const errorContainer = document.getElementById('password-error');
|
||||||
|
const parentComponent = passwordInput.closest('.component-input');
|
||||||
|
if (passwordValue.length < 4) {
|
||||||
|
parentComponent.classList.add('input-invalid');
|
||||||
|
errorContainer.style.display = 'block';
|
||||||
|
} else {
|
||||||
|
parentComponent.classList.remove('input-invalid');
|
||||||
|
errorContainer.style.display = 'none';
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
document.getElementById('floatingInput').addEventListener('focusout', function() {
|
||||||
|
const floatingInput = this;
|
||||||
|
const userNameValue = floatingInput.value;
|
||||||
|
const errorContainer = document.getElementById('username-error');
|
||||||
|
const parentComponent = floatingInput.closest('.component-input');
|
||||||
|
if (userNameValue.length < 5) {
|
||||||
|
parentComponent.classList.add('input-invalid');
|
||||||
|
errorContainer.style.display = 'block';
|
||||||
|
} else {
|
||||||
|
parentComponent.classList.remove('input-invalid');
|
||||||
|
errorContainer.style.display = 'none';
|
||||||
|
}
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
</th:block>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
Reference in New Issue
Block a user