diff --git a/build.gradle.kts b/build.gradle.kts
index 010ad46..4b715ef 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -74,6 +74,7 @@ project(":user-api") {
project(":front") {
dependencies {
implementation("org.springframework.boot:spring-boot-starter-thymeleaf")
+ implementation("nz.net.ultraq.thymeleaf:thymeleaf-layout-dialect")
}
}
diff --git a/front/src/main/kotlin/com/sns/front/controller/HomeController.kt b/front/src/main/kotlin/com/sns/front/controller/HomeController.kt
deleted file mode 100644
index 1c2e175..0000000
--- a/front/src/main/kotlin/com/sns/front/controller/HomeController.kt
+++ /dev/null
@@ -1,17 +0,0 @@
-package com.sns.front.controller
-
-import org.springframework.stereotype.Controller
-import org.springframework.web.bind.annotation.GetMapping
-
-/**
- * @author Hyounglin Jun
- */
-@Controller
-class HomeController {
-
- @GetMapping("/")
- fun home(): String {
- return "home/home"
- }
-
-}
diff --git a/front/src/main/kotlin/com/sns/front/controller/UserController.kt b/front/src/main/kotlin/com/sns/front/controller/UserController.kt
new file mode 100644
index 0000000..086bc14
--- /dev/null
+++ b/front/src/main/kotlin/com/sns/front/controller/UserController.kt
@@ -0,0 +1,31 @@
+package com.sns.front.controller
+
+import org.springframework.stereotype.Controller
+import org.springframework.web.bind.annotation.GetMapping
+
+/**
+ * User 관련된 페이지 모음
+ * @author Hyounglin Jun
+ */
+@Controller
+class UserController {
+ @GetMapping("/home")
+ fun home(): String {
+ return "pages/home"
+ }
+
+ @GetMapping("/login")
+ fun login(): String {
+ return "pages/login"
+ }
+
+ @GetMapping("/register")
+ fun register(): String {
+ return "pages/register"
+ }
+
+ @GetMapping("/profile")
+ fun profile(): String {
+ return "pages/profile"
+ }
+}
diff --git a/front/src/main/resources/templates/fragments/footer.html b/front/src/main/resources/templates/fragments/footer.html
new file mode 100644
index 0000000..1b70639
--- /dev/null
+++ b/front/src/main/resources/templates/fragments/footer.html
@@ -0,0 +1,12 @@
+
+
+
+ +
+John Smith
+@johnsmith
+This username is available
+This email is invalid
+