- CSS 사용하기 (구글웹폰트, 이미지 넣기)
- 부트스트랩사용하기
- 포스팅박스 만들기
<!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>
<title>스파르타코딩클럽 | 부트스트랩 연습하기</title>
<link href="https://fonts.googleapis.com/css2?family=Poor+Story&display=swap" rel="stylesheet">
<style>
*{
font-family: 'Poor Story', cursive;
}
.mytitle {
max-width: 100%;
height: 600px;
background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("https://img.vogue.co.kr/vogue/2021/12/style_61c299401f4b3.jpeg");
background-position: center;
background-size: cover;
color: white;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
.card {
max-width: 95%;
width: 500px;
height:100px;
margin: 10px auto 0px auto;
;
}
.mypost {
max-width: 95%;
width: 500px;
height: 300px;
background-color: transparent;
color: black;
border-radius: 5px;
border: 1px solid grey;
margin: 20px auto;
padding: 20px;
}
.mypost > button {
margin: 20px auto;
}
</style>
</head>
<body>
<div class="mytitle">
<h1>아이유 팬명록</h1>
</div>
<div class="mypost">
<div class="form-floating mb-3">
<input type="email" class="form-control" id="floatingInput" placeholder="닉네임">
<label for="floatingInput">닉네임</label>
</div>
<div class="form-floating">
<textarea class="form-control" placeholder="Leave a comment here" id="floatingTextarea2"
style="height: 100px"></textarea>
<label for="floatingTextarea2">응원댓글</label>
</div>
<button type="button" class="btn btn-dark">응원남기기</button>
</div>
<div class="card">
<div class="card-body">
<blockquote class="blockquote mb-0">
<p>앨범 너무 좋아요!</p>
<footer class="blockquote-footer">아이러브유</cite></footer>
</blockquote>
</div>
</div>
<div class="card">
<div class="card-body">
<blockquote class="blockquote mb-0">
<p>앨범 너무 좋아요!</p>
<footer class="blockquote-footer">아이러브유</cite></footer>
</blockquote>
</div>
</div>
<div class="card">
<div class="card-body">
<blockquote class="blockquote mb-0">
<p>앨범 너무 좋아요!</p>
<footer class="blockquote-footer">아이러브유</cite></footer>
</blockquote>
</div>
</div>
</body>
</html>
'개발 이야기 > 항해99' 카테고리의 다른 글
[항해99] 2주차 - JWT(JSON Web Token)란? (0) | 2022.03.13 |
---|---|
[항해99] 시작 전 사전수업 - 5주차: AWS서버연결, Gitbash, 가비아 도메인연결 (0) | 2022.02.10 |
[항해99] 시작 전 사전수업 - 4주차: flask, 크롤링, DB연결 (0) | 2022.02.09 |
[항해99] 시작 전 사전수업 - 3주차: mongoDB연결 및 작동법 (feat.mongoDB 연결 오류) (0) | 2022.02.07 |
[항해99] 시작 전 사전수업 - 2주차 (0) | 2022.02.03 |