<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js"
integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM"
crossorigin="anonymous"></script>
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Jua&family=Nanum+Gothic&display=swap" rel="stylesheet">
<title>팬미팅 방명록</title>
<style>
* {
font-family: 'Jua', sans-serif;
}
.myTitle {
width: 100%;
height: 500px;
background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://cdn.nba.com/manage/2020/10/Kobe-memorial-v3-1-784x441.jpg');
background-position: center;
background-size: cover;
color: white;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.myPost {
width: 95%;
max-width: 500px;
margin: 20px auto 0px auto;
padding: 20px;
box-shadow: 0px 0px 3px 0px gray;
}
.myList {
width: 100%;
max-width: 550px;
margin: 20px auto 20px auto;
padding: 20px;
}
.myList > .card {
margin-top: 10px;
margin-bottom: 10px;
}
</style>
</head>
<body>
<div class="myTitle">
<h1>코비 브라이언트 팬명록!</h1>
</div>
<form onsubmit="checkFrm(); return false;">
<div class="myPost">
<div class="mb-3">
<input type="text" class="form-control" id="nickName" placeholder="닉네임" required>
</div>
<div class="mb-3">
<textarea class="form-control" id="comment" rows="3" placeholder="응원댓글" required></textarea>
</div>
<button type="submit" class="btn btn-dark">응원 남기기</button>
</div>
</form>
<div class="myList">
<div class="card">
<div class="card-body">
<blockquote class="blockquote mb-0">
<p>너무 멋져요!</p>
<footer class="blockquote-footer">호빵맨</footer>
</blockquote>
</div>
</div>
<div class="card">
<div class="card-body">
<blockquote class="blockquote mb-0">
<p>새로운 앨범 너무 멋져요!</p>
<footer class="blockquote-footer">호빵맨</footer>
</blockquote>
</div>
</div>
<div class="card">
<div class="card-body">
<blockquote class="blockquote mb-0">
<p>새로운 앨범 너무 멋져요!</p>
<footer class="blockquote-footer">호빵맨</footer>
</blockquote>
</div>
</div>
</div>
</body>
<script>
function checkFrm() {
const nickName = $("#nickName").val();
const comment = $("#comment").val();
if (!nickName) {
alert("닉네임을 임력해주세요.");
return false;
} else if (!comment) {
alert("응원댓글을 입력해주세요.");
return false;
} else {
alert("준비중에 있습니다.");
return false;
}
}
</script>
</html>