login : home page
This commit is contained in:
@@ -10,6 +10,6 @@ public class HomeController {
|
||||
|
||||
@GetMapping("/")
|
||||
public String home() {
|
||||
return "redirect:/items";
|
||||
return "home";
|
||||
}
|
||||
}
|
||||
31
login/src/main/resources/templates/home.html
Normal file
31
login/src/main/resources/templates/home.html
Normal file
@@ -0,0 +1,31 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html xmlns:th="http://www.thymeleaf.org">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<link th:href="@{/css/bootstrap.min.css}"
|
||||
href="../css/bootstrap.min.css" rel="stylesheet">
|
||||
</head>
|
||||
<body>
|
||||
<div class="container" style="max-width: 600px">
|
||||
<div class="py-5 text-center">
|
||||
<h2>홈 화면</h2>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<button class="w-100 btn btn-secondary btn-lg" type="button"
|
||||
th:onclick="|location.href='@{/members/add}'|">
|
||||
회원 가입
|
||||
</button>
|
||||
</div>
|
||||
<div class="col">
|
||||
<button class="w-100 btn btn-dark btn-lg"
|
||||
onclick="location.href='items.html'"
|
||||
th:onclick="|location.href='@{/login}'|" type="button">
|
||||
로그인
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<hr class="my-4">
|
||||
</div> <!-- /container -->
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user