bo 로그인 퍼블 입히기

This commit is contained in:
주수현
2025-06-18 09:53:48 +09:00
parent 15a2eb7ccc
commit b4ca0b7ced
5 changed files with 102 additions and 107 deletions

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 67 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 149 KiB

View File

@@ -0,0 +1,8 @@
<svg width="136" height="56" viewBox="0 0 136 56" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M95.1143 14.4259C95.1143 15.8406 94.694 17.2234 93.9064 18.3996C93.1188 19.5759 91.9994 20.4926 90.6897 21.034C89.38 21.5753 87.9389 21.717 86.5485 21.441C85.1581 21.165 83.881 20.4838 82.8786 19.4835C81.8762 18.4832 81.1936 17.2088 80.917 15.8213C80.6405 14.4339 80.7824 12.9957 81.3249 11.6888C81.8674 10.3818 82.7861 9.26478 83.9648 8.47885C85.1434 7.69292 86.5292 7.27344 87.9468 7.27344C89.8477 7.27379 91.6705 8.02747 93.0146 9.36875C94.3587 10.71 95.114 12.5291 95.1143 14.4259Z" fill="#193A5D"/>
<path d="M11.6982 7.91797H1V47.1823H11.6982V7.91797Z" fill="#193A5D"/>
<path d="M67.7754 35.4962C69.8772 34.5195 71.6568 32.9656 72.9059 31.0163C74.1551 29.0671 74.822 26.8031 74.8287 24.4894V19.9422C74.8169 16.9084 73.6653 13.9894 71.6015 11.7617C69.5377 9.53406 66.7118 8.15971 63.682 7.91016H40.9062V47.1866H50.8981V36.634H56.0229L63.5557 47.1892H75.5459L67.7754 35.4962ZM65.2237 22.8356C65.2237 24.0441 64.7426 25.2031 63.8863 26.0576C63.03 26.9122 61.8686 27.3922 60.6575 27.3922H50.7315V16.6441H60.6562C61.8672 16.6441 63.0286 17.1241 63.885 17.9786C64.7413 18.8332 65.2224 19.9922 65.2224 21.2006L65.2237 22.8356Z" fill="#193A5D"/>
<path d="M115.233 18.2526C115.952 18.2528 116.641 18.5368 117.148 19.0436C117.656 19.5505 117.941 20.2382 117.94 20.9548C117.94 21.6714 117.655 22.3592 117.147 22.8659L110.188 29.8102C109.679 30.3115 108.992 30.5916 108.277 30.5895C107.562 30.5873 106.877 30.3031 106.371 29.7985C105.865 29.2939 105.58 28.6098 105.578 27.8962C105.576 27.1826 105.857 26.4976 106.359 25.9899L113.318 19.0436C113.826 18.537 114.515 18.2525 115.233 18.2526ZM120.486 1.00067C122.432 0.982092 124.363 1.34858 126.166 2.0788C127.969 2.80905 129.609 3.88895 130.992 5.25556C132.375 6.62211 133.473 8.24838 134.222 10.0407C134.971 11.8331 135.357 13.756 135.357 15.6979C135.358 17.64 134.972 19.5636 134.223 21.3561C133.474 23.1486 132.376 24.7756 130.993 26.1423C129.611 27.5089 127.97 28.5887 126.167 29.319C124.364 30.0494 122.433 30.4156 120.487 30.3972C120.071 30.3972 119.655 30.376 119.252 30.3425C118.613 30.3059 118.014 30.0218 117.582 29.5515C117.15 29.0812 116.919 28.4616 116.938 27.8239C116.956 27.186 117.224 26.5798 117.683 26.1354C118.142 25.6913 118.756 25.4432 119.396 25.444H119.465V25.4362C121.44 25.6433 123.432 25.248 125.177 24.3024C126.922 23.3567 128.339 21.9042 129.24 20.1384C130.141 18.3726 130.485 16.3754 130.226 14.4108C129.966 12.4462 129.115 10.6058 127.786 9.13348C126.457 7.66138 124.712 6.62587 122.781 6.16376C120.85 5.70164 118.824 5.83483 116.97 6.54559C115.116 7.25637 113.522 8.51163 112.397 10.1452C111.273 11.7788 110.672 13.7144 110.673 15.696C110.673 15.9599 110.688 16.2197 110.708 16.4782C110.722 16.5795 110.729 16.6817 110.73 16.7839C110.73 17.4358 110.47 18.0611 110.008 18.5222C109.546 18.9832 108.919 19.2428 108.266 19.2429C107.612 19.2429 106.985 18.9832 106.523 18.5222C106.061 18.0611 105.802 17.4359 105.802 16.7839V16.7722C105.775 16.4211 105.756 16.0617 105.756 15.6999C105.756 11.8016 107.308 8.06291 110.07 5.30634C112.833 2.54974 116.58 1.00067 120.486 1.00067Z" fill="#FFCC00"/>
<path d="M93.0114 26.3359H82.7402V41.4464C82.7635 42.9738 83.3878 44.4309 84.4782 45.503C85.5687 46.5752 87.038 47.1764 88.5688 47.1769H88.6319H93.0087L93.0114 26.3359Z" fill="#193A5D"/>
<path d="M37.1912 47.1836L22.8911 27.2647L37.0448 7.91797H25.5233L11.6973 27.6011L25.2037 47.1836H37.1912Z" fill="#193A5D"/>
</svg>

After

Width:  |  Height:  |  Size: 3.4 KiB

View File

@@ -1,22 +1,15 @@
<!DOCTYPE html>
<html xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout" xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8">
<meta content="IE=edge" http-equiv="X-UA-Compatible">
<meta content="width=device-width, initial-scale=1.0" name="viewport">
<meta content="noindex, nofollow" name="robots"/>
<title>layout 타이틀</title>
<link rel="stylesheet" th:href="@{/static/library/bootstrap/bootstrap.min.css}"/>
<link rel="stylesheet" th:href="@{/static/library/bootstrap/bootstrap-icons.css}"/>
<script th:src="@{/static/library/jquery/jquery-3.6.0.min.js}"></script>
</head>
<head th:replace="~{common/components :: head}"></head>
<body>
<section class="container" layout:fragment="content">
<p>Page content goes here</p>
</section>
<div id="wrap">
<div class="login-wrap" id="container" layout:fragment="content">
<p>Page content goes here</p>
</div>
<div th:replace="~{common/components :: footer}"></div>
</div>
<section layout:fragment="script"></section>
</body>
</html>

View File

@@ -2,104 +2,80 @@
<html layout:decorate="~{layout/layout-login}" xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
xmlns:th="http://www.thymeleaf.org">
<head>
<title>Sign in</title>
<style>
.bd-placeholder-img {
font-size: 1.125rem;
text-anchor: middle;
-webkit-user-select: none;
-moz-user-select: none;
user-select: none;
}
<div layout:fragment="content">
<div id="content" role="main">
<form method="post" th:action="@{/login}" name="loginForm">
@media (min-width: 768px) {
.bd-placeholder-img-lg {
font-size: 3.5rem;
}
}
html,
body {
height: 100%;
}
body {
display: flex;
align-items: center;
padding-top: 40px;
padding-bottom: 40px;
background-color: #f5f5f5;
}
.form-signin {
width: 100%;
max-width: 330px;
padding: 15px;
margin: auto;
}
.form-signin .checkbox {
font-weight: 400;
}
.form-signin .form-floating:focus-within {
z-index: 2;
}
.form-signin input[type="email"] {
margin-bottom: -1px;
border-bottom-right-radius: 0;
border-bottom-left-radius: 0;
}
.form-signin input[type="password"] {
margin-bottom: 10px;
border-top-left-radius: 0;
border-top-right-radius: 0;
}
</style>
</head>
<body class="text-center">
<section layout:fragment="content">
<main class="form-signin">
<form method="post" th:action="@{/login}">
<i class="bi bi-server fs-1"></i>
<h1 class="h3 mb-3 fw-normal">관리자 로그인</h1>
<div class="row" th:if="${session['SPRING_SECURITY_LAST_EXCEPTION']} != null">
<div class="inner">
<div class="logo">
<img th:src="@{/static/assets/images/common/logo_kri.svg}" class="profile-img" alt="kri 로고 이미지" />
</div>
<div class="content-inner">
<section class="form-area">
<div class="input-group">
<div class="input-label">
<p class="label-txt">
<label for="floatingInput">아이디</label>
</p>
</div>
<div class="component-input">
<div class="input-field">
<input type="text" id="floatingInput" name="username" placeholder="아이디 입력">
</div>
</div>
</div>
<div class="input-group">
<div class="input-label">
<p class="label-txt">
<label for="floatingPassword">비밀번호</label>
</p>
</div>
<div class="component-input">
<div class="input-field">
<input type="password" id="floatingPassword" name="password" placeholder="비밀번호 입력">
</div>
</div>
</div>
<div class="component-btns">
<button type="submit" class="btn btn-primary btn-full" >
<span class="btn-txt">로그인</span>
</button>
</div>
<ul class="info-bullet-list">
<li>정보시스템 보호 정책 강화로 IP접근 통제가 시행됩니다.</li>
<li><a href="">공식가입센터 관리자 바로가기</a></li>
</ul>
</section>
<ul class="logo-list">
<li>
<img th:src="@{/static/assets/images/common/logo_forest.svg}" class="profile-img" alt="kri 로고 이미지" />
</li>
<li>
<img th:src="@{/static/assets/images/common/logo_kofpi.svg}" class="profile-img" alt="kri 로고 이미지" />
</li>
</ul>
</div>
</div>
<!-- <div class="row" th:if="${session['SPRING_SECURITY_LAST_EXCEPTION']} != null">
<div class="alert alert-danger fw-bold"
th:utext="${session['SPRING_SECURITY_LAST_EXCEPTION'].message}">
</div>
</div>
</div>-->
<div class="form-floating">
<input autofocus class="form-control" id="floatingInput" name="username" placeholder="ID를 입력해주세요"
type="text">
<label for="floatingInput">ID</label>
</div>
<div class="form-floating">
<input class="form-control" id="floatingPassword" name="password" placeholder="Password"
type="password">
<label for="floatingPassword">Password</label>
</div>
<div class="checkbox mb-3">
<div aria-label="Basic checkbox toggle button group" class="btn-group" roleDto="group">
<input autocomplete="off" class="btn-check" id="btn_ck1" name="remember-me"
type="checkbox">
<label class="btn btn-outline-primary" for="btn_ck1">로그인 상태 유지하기</label>
</div>
</div>
<button class="w-100 btn btn-lg btn-primary" type="submit">Sign in</button>
</form>
</main>
</section>
</body>
</div>
</div>
<th:block layout:fragment="script">
<script th:inline="javascript">
document.addEventListener('DOMContentLoaded', function() {
const errorMessage = /*[[${session['SPRING_SECURITY_LAST_EXCEPTION']?.message}]]*/ null;
if (errorMessage) {
alert("입력하신 정보가 맞지 않습니다.\n 다시 확인해주세요.");
document.loginForm.reset();
}
});
</script>
</th:block>
</html>