내일배움캠프 사전캠프 2일차
정말 빠르고 간단하게 HTML, CSS 강의가 훅 지나가버렸다.
진짜 재밌게 잘 가르쳐주시는듯..
CSS꾸러미 부트스트랩 만세..
https://getbootstrap.com/docs/5.0/components/buttons/
Buttons
Use Bootstrap’s custom button styles for actions in forms, dialogs, and more with support for multiple sizes, states, and more.
getbootstrap.com
<!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>
</head>
<body>
<h1>이걸로 시작해보죠!</h1>
</body>
</html>
부트스트랩 시작템플릿.
위의 템플릿은 따로 스스로 사용하는법을 익혀두자
그리고 폰트사이트!
https://fonts.google.com/?subset=korean
Google Fonts
Making the web more beautiful, fast, and open through great typography
fonts.google.com
모바일 에서도 잘 보이게 하려면 ( 반응형 ?) CSS를
width : 1200px;
이런식이 아니라
max-width: 1200px;
width:95%;
이런 식으로 써주는게 좋다
자동정렬과 관련된 코드
display : flex;
flex-direction: row;
justify-content: center;
align-items: center;
이 4줄이 한세트라고 보면 편하다고함!
flex-direction:row에서 row 부분은 column으로 가로세로 변환
background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("https://movie-phinf.pstatic.net/20210715_95/1626338192428gTnJl_JPEG/movie_image.jpg");
background-position: center;
background-size:cover;
여기서 linear-gradient를 제외한 다른 코드들도 거의 한세트로 따라다니는? 예쁘게 정렬해주는 코드다