-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from boostcampaitech6/sanggi
update: sakura theme
- Loading branch information
Showing
9 changed files
with
1,153 additions
and
159 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
<!DOCTYPE html> | ||
<html lang="ko"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>오늘의 시</title> | ||
<link href="https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;700&display=swap" rel="stylesheet"> | ||
<script src="https://cdn.tailwindcss.com"></script> | ||
<link rel="stylesheet" type="text/css" href="./static/css/style.css"> | ||
</head> | ||
<body class="bg-gray-100"> | ||
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script> | ||
<script> | ||
$(window).load(function () { | ||
$('body').sakura(); | ||
}); | ||
</script> | ||
<div class="min-h-screen flex items-center justify-center"> | ||
<div class="bg-white p-8 rounded-lg shadow-lg max-w-md w-full"> | ||
<h1 class="text-2xl font-bold mb-4">오늘의 기분은?</h1> | ||
<p class="mb-4">오늘 하루 어떠셨나요?</p> | ||
<p class="mb-4 font-semibold">오늘의 감정을 선택해 보세요!</p> | ||
<form id="moodForm" action="/submit_keyword" method="post"> | ||
<div class="mb-4"> | ||
<label class="inline-flex items-center"> | ||
<input type="radio" name="mood" value="행복하다" class="form-radio h-5 w-5 text-blue-600" onchange="checkSelection()"> | ||
<span class="ml-2">행복하다</span> | ||
</label> | ||
</div> | ||
<div class="mb-4"> | ||
<label class="inline-flex items-center"> | ||
<input type="radio" name="mood" value="슬프다" class="form-radio h-5 w-5 text-blue-600" onchange="checkSelection()"> | ||
<span class="ml-2">슬프다</span> | ||
</label> | ||
</div> | ||
<div class="mb-4"> | ||
<label class="inline-flex items-center"> | ||
<input type="radio" name="mood" value="화나다" class="form-radio h-5 w-5 text-blue-600" onchange="checkSelection()"> | ||
<span class="ml-2">화나다</span> | ||
</label> | ||
</div> | ||
<div class="mb-4"> | ||
<label class="inline-flex items-center"> | ||
<input type="radio" name="mood" value="지루하다" class="form-radio h-5 w-5 text-blue-600" onchange="checkSelection()"> | ||
<span class="ml-2">지루하다</span> | ||
</label> | ||
</div> | ||
<div class="mb-6"> | ||
<label class="inline-flex items-center"> | ||
<input type="radio" name="mood" value="놀라다" class="form-radio h-5 w-5 text-blue-600" onchange="checkSelection()"> | ||
<span class="ml-2">놀라다</span> | ||
</label> | ||
</div> | ||
<button type="submit" id="submitButton" class="px-4 py-2 bg-blue-500 text-white rounded hover:bg-blue-700 focus:outline-none w-full" disabled>선택완료</button> | ||
</form> | ||
</div> | ||
</div> | ||
<script> | ||
// 라디오 버튼 선택 확인 | ||
function checkSelection() { | ||
const submitButton = document.getElementById('submitButton'); | ||
const radios = document.forms['moodForm'].elements['mood']; | ||
let isSelected = false; | ||
for(let i = 0; i < radios.length; i++) { | ||
if(radios[i].checked) isSelected = true; | ||
} | ||
submitButton.disabled = !isSelected; // | ||
} | ||
|
||
// 함수 초기 상태 확인 | ||
document.addEventListener('DOMContentLoaded', checkSelection); | ||
</script> | ||
<script src="./static/js/sakura.js"></script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<!-- result_page.html --> | ||
<!DOCTYPE html> | ||
<html lang="ko"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title>Result Page</title> | ||
</head> | ||
<body> | ||
<h1>You selected: {{ quote }}</h1> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.