Skip to content

Commit

Permalink
enhancement: 편지 조회 기능 업데이트
Browse files Browse the repository at this point in the history
  • Loading branch information
unanchoi committed Jan 28, 2024
1 parent 5089668 commit 81f4926
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@ out/
.vscode/

.env
application-SECRET.properties
secret.properties
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import org.springframework.web.bind.annotation.GetMapping
@Controller
class IndexController {

@GetMapping("/")
@GetMapping("/doserver")
fun index(): String {
return "index"
return "doserver"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import com.example.demoserver.service.dto.response.ServiceLetterResponse
import org.springframework.stereotype.Controller
import org.springframework.ui.Model
import org.springframework.web.bind.annotation.GetMapping
import org.springframework.web.bind.annotation.PostMapping
import org.springframework.web.bind.annotation.RequestParam


Expand Down
7 changes: 6 additions & 1 deletion src/main/resources/application-dev.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
server:
servlet:
encoding:
force-response: true

spring:
datasource:
driver-class-name: com.mysql.cj.jdbc.Driver
Expand All @@ -13,7 +18,7 @@ spring:
config:
activate:
on-profile: dev
import: application-SECRET-properties
import: secret.properties
web:
resources:
static-locations: classpath:/static/
Expand Down
Binary file added src/main/resources/static/image/unan.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -29,19 +29,19 @@
<body>

<div>
<h1> Welcome To DO SOPT Demo Server!</h1>
<h1> 얘들아 고생 많았다!!</h1>
</div>

<div>
<img src="/image/server.jpg" alt=""/>
<img src="/image/unan.png" alt=""/>
</div>

<div>
<form action="/letter" method="GET">
<label for="code">
<input type="text" name="code" />
<input type="text" name="code" placeholder="코드 입력"/>
</label>
<button type="submit" value="확인"></button>
<button type="submit" value="확인"> 확인 </button>
</form>

</div>
Expand Down
11 changes: 11 additions & 0 deletions src/main/resources/templates/letter.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,28 @@
}
.member-name {
color: #1DEDA2;
margin-bottom: 20px;
}
.letter-content {
color: black;
width: 300px;
height: 600px;
border: 1px solid black;
padding: 20px;
overflow: scroll;
}
.background {
width: 100%;
height: 100%;
position: absolute;
top: 0;
left: 0;
background-color: black;
}
img {
width: 300px;
height: 300px;
Expand Down

0 comments on commit 81f4926

Please sign in to comment.