Skip to content

Commit

Permalink
[refactor] 질문한 내용과 답변을 페이지를 시각적으로 더 이쁘게 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
The-Martin-Kim authored Sep 20, 2024
1 parent ad43a08 commit c83aaef
Showing 1 changed file with 56 additions and 5 deletions.
61 changes: 56 additions & 5 deletions src/main/resources/templates/history/view.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,62 @@
<html lang="ko-kr">
<head>
<meta charset="UTF-8">
<title>Title</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>History Detail</title>
<style>
* {
box-sizing: border-box;
margin: 0;
padding: 0;
font-family: Arial, sans-serif;
}

body {
background-color: #f5f5f5;
padding: 20px;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
}

.container {
background-color: white;
padding: 30px;
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
max-width: 600px;
width: 100%;
}

.time {
font-size: 14px;
color: #666;
margin-bottom: 10px;
text-align: right;
}

h1 {
font-size: 24px;
color: #333;
margin-bottom: 20px;
border-bottom: 2px solid #4a90e2;
padding-bottom: 10px;
}

p {
font-size: 16px;
color: #555;
line-height: 1.6;
white-space: pre-line;
}
</style>
</head>
<body>
<span th:text="${history.talkedTime}"/>
<h1 th:text="${history.question}"/>
<p th:utext="${#strings.replace(history.answer, '\n', '<br/>')}"/>
<div class="container">
<div class="time" th:text="${history.talkedTime}"></div>
<h1 th:text="${history.question}"></h1>
<p th:utext="${#strings.replace(history.answer, '\n', '<br/>')}"></p>
</div>
</body>
</html>
</html>

0 comments on commit c83aaef

Please sign in to comment.