본문 바로가기

항해99_10기/사전학습_웹개발 종합반

[1회독] [1주차] HTML, CSS, 기초 JS 문법 & Bootstrap

1주차 수업내용

  1. 서버와 클라이언트의 역할 이해
  2. HTML, CSS의 기초 지식 그리고 부트스트랩
  3. Javascript 기초 문법

 

유용한 것들

<이모지 리스트 링크>

https://kr.piliapp.com/facebook-symbols/

 

<css 세트>

1. background 이미지 넣기와 정렬

background-image: linear-gradient(

            0deg,
            rgba(0, 0, 0, 0),
            rgba(0, 0, 0, 0)
          ),
          url("");

background-position: top;
background-size: cover;

 

2. 콘텐츠 정렬

display: flex;
flex-direction: column;
justify-content: center;
align-items: center;

 
 
 

1주차 숙제

 좋아하는 가수 팬명록 만들기

 

나는 에일리의 팬명록을 만들었음!

<!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=Roboto:wght@300&display=swap"
      rel="stylesheet"
    />
    <style>
      * {
        font-family: "Roboto", sans-serif;
      }
      .mytitle {
        width: 100%;
        height: 700px;

        background-image: linear-gradient(
            0deg,
            rgba(0, 0, 0, 0.5),
            rgba(0, 0, 0, 0.5)
          ),
          url("https://search.pstatic.net/common/?src=http%3A%2F%2Fimgnews.naver.net%2Fimage%2F311%2F2016%2F10%2F04%2F1475565877648_99_20161004162605.jpg&type=sc960_832");
        background-position: top;
        background-size: cover;

        color: white;

        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
      }

      .mycomment {
        max-width: 500px;
        width: 95%;
        margin: 20px auto;
      }
      .mycomment > .card {
        margin-bottom: 10px;
      }
      .mypost {
        max-width: 500px;
        width: 95%;
        margin: 20px auto 0px auto;
        box-shadow: 0px 0px 3px 0px gray;
        padding: 20px;
      }
    </style>
  </head>

  <body>
    <div class="mytitle">
      <h1>에일리 팬명록</h1>
    </div>

    <div class="mypost">
      <div class="form-floating mb-3">
        <input
          type="text"
          class="form-control"
          id="floatingInput"
          placeholder="닉네임"
        />
        <label for="floatingInput">닉네임</label>
      </div>

      <div class="form-floating mt-3">
        <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 mt-3">응원 남기기</button>
    </div>

    <div class="mycomment">
      <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>
</html>