11<!DOCTYPE html>
2- < html lang ="ko " xmlns:th ="http://www.thymeleaf.org ">
3- < head >
4- < meta charset ="UTF-8 ">
5- < title > Yu's Blog</ title >
6- < link href ="/assets/css/bootstrap.min.css " rel ="stylesheet ">
7- < style >
8- .gradient-custom {
9- background : linear-gradient (to right, rgba (106 , 17 , 203 , 1 ), rgba (37 , 117 , 252 , 1 ))
10- }
11- </ style >
12- </ head >
13- < body class ="gradient-custom ">
14- < section class ="d-flex vh-100 ">
15- < div class ="container-fluid row justify-content-center align-content-center ">
16- < div class ="card bg-dark " style ="border-radius: 1rem; ">
17- < div class ="card-body p-5 text-center ">
18- < h2 class ="text-white "> LOGIN</ h2 >
19- < p class ="text-white-50 mt-2 mb-5 "> 서비스를 사용하려면 로그인을 해주세요!</ p >
20-
21- < div class = "mb-2 ">
22- < form action ="/login " method ="POST ">
23- < input type ="hidden " th:name ="${_csrf?.parameterName} " th:value ="${_csrf?.token} " />
24- < div class ="mb-3 ">
25- < label class ="form-label text-white "> Email address</ label >
26- < input type ="email " class ="form-control " name ="username ">
27- </ div >
28- < div class ="mb-3 ">
29- < label class ="form-label text-white "> Password</ label >
30- < input type ="password " class ="form-control " name ="password ">
31- </ div >
32- < button type ="submit " class ="btn btn-primary "> 로그인</ button >
33- </ form >
34-
35- < button type ="button " class ="btn btn-secondary mt-3 " onclick ="location.href='/signup' "> 회원가입</ button >
2+ < html lang ="ko "
3+ th:replace ="~{layout/subLayout :: layout(~{::mainSection}, ~{::scriptSection})} "
4+ xmlns:th ="http://www.thymeleaf.org ">
5+ < mainSection >
6+ < div class ="page ">
7+ < div class ="auth-shell ">
8+ < div class ="auth-card ">
9+ < div class ="auth-header ">
10+ < h1 class ="auth-title "> 로그인</ h1 >
11+ < p class ="auth-subtitle "> 서비스를 사용하려면 로그인이 필요합니다.</ p >
12+ </ div >
13+ < form action ="/login " method ="POST " class ="auth-form ">
14+ < input type ="hidden " th:name ="${_csrf?.parameterName} " th:value ="${_csrf?.token} " />
15+ < div class ="form-field ">
16+ < label class ="form-label "> Email address</ label >
17+ < input type ="email " class ="form-control " name ="username " placeholder ="name@example.com ">
18+ </ div >
19+ < div class ="form-field ">
20+ < label class ="form-label "> Password</ label >
21+ < input type ="password " class ="form-control " name ="password " placeholder ="비밀번호 ">
3622 </ div >
23+ < button type ="submit " class ="btn btn-primary w-100 "> 로그인</ button >
24+ </ form >
25+ < div class ="auth-footer ">
26+ < span > 계정 관련 문의는 관리자에게 연락해주세요.</ span >
3727 </ div >
3828 </ div >
3929 </ div >
40- </ section >
41- < script src =" /assets/js/bootstrap.min.js " > </ script >
42- < script src =" /assets/js/article.js " > </ script >
43- </ body >
44- </ html >
30+ </ div >
31+ </ mainSection >
32+ < scriptSection >
33+ </ scriptSection >
34+ </ html >
0 commit comments