1. HTML 뼈대만들기
2. 레이아웃 짜기
3. 시멘틱 쓰기
4. 이미지 (백그라운드 이미) - 글자 담기

london.jpg

image.png

1. HTML 뼈대 만들기

image.png

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      div {
        border: 1px solid black;
        padding: 5px;
      }
    </style>
  </head>
  <body>
    <div class="all_box">
      <main>
        <section>
          <div>Meet Guidebooks</div>
          <div>
            Discover hundreds of local spots recommended by Airbnb hosts
          </div>
          <div>
            <div>사진1</div>
            <div>사진2</div>
            <div>사진3</div>
          </div>
          <div>
            <button>See All Guidebooks</button>
          </div>
        </section>
        <section>
          <div>Just for the weekend</div>
          <div>
            Discover hundreds of local spots recommended by Airbnb hosts
          </div>
          <div>
            <div>사진1</div>
            <div>사진2</div>
            <div>사진3</div>
          </div>
          <div>
            <button>See All Destinations</button>
          </div>
        </section>
      </main>
    </div>
  </body>
</html>

image.png

2. 레이아웃 짜기

image.png

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      div {
        border: 1px solid black;
        padding: 5px;
      }
      .all_box {
        display: grid;
        justify-content: center;
      }
      main {
        width: 1000px;
      }
      .title {
        text-align: center;
      }
      .sub_title {
        text-align: center;
      }
      .grid_box {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
      }
      .btn_box {
        display: grid;
        justify-content: center;
      }
    </style>
  </head>
  <body>
    <div class="all_box">
      <main>
        <section>
          <div class="title">Meet Guidebooks</div>
          <div class="sub_title">
            Discover hundreds of local spots recommended by Airbnb hosts
          </div>
          <div class="grid_box">
            <div class="grid_item">사진1</div>
            <div class="grid_item">사진2</div>
            <div class="grid_item">사진3</div>
          </div>
          <div class="btn_box">
            <button>See All Guidebooks</button>
          </div>
        </section>
        <section>
          <div class="title">Just for the weekend</div>
          <div class="sub_title">
            Discover hundreds of local spots recommended by Airbnb hosts
          </div>
          <div class="grid_box">
            <div class="grid_item">사진1</div>
            <div class="grid_item">사진2</div>
            <div class="grid_item">사진3</div>
          </div>
          <div class="btn_box">
            <button>See All Destinations</button>
          </div>
        </section>
      </main>
    </div>
  </body>
</html>

3. 디자인하기

image.png

<aside> 💡

마진 여백은 젤 나중에 하기

</aside>

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      body {
        background-color: rgb(250, 250, 250);
      }
      div {
        padding: 10px;
      }
      .all_box {
        display: grid;
        justify-content: center;
      }
      main {
        width: 1000px;
      }
      .title {
        text-align: center;
        font-size: 40px;
        font-weight: 700;
        color: rgb(214, 115, 33);
      }
      .sub_title {
        text-align: center;
      }
      .grid_box {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
      }
      .btn_box {
        display: grid;
        justify-content: center;
      }
      .grid_item {
        height: 300px;
        background-image: url("/ex03/images/london.jpg");
        background-size: cover;
        display: grid;
        justify-content: center;
        align-items: center;

        color: white;
        font-size: 30px;
        font-weight: 500;
      }

      .btn_box > button {
        background-color: rgb(218, 70, 12);
        color: white;
        width: 300px;
        height: 30px;
        border-radius: 5px;
      }
    </style>
  </head>
  <body>
    <div class="all_box">
      <main>
        <section>
          <div class="title">Meet Guidebooks</div>
          <div class="sub_title">
            Discover hundreds of local spots recommended by Airbnb hosts
          </div>
          <div class="grid_box">
            <div class="grid_item">San Francisco</div>
            <div class="grid_item">San Francisco</div>
            <div class="grid_item">San Francisco</div>
          </div>
          <div class="btn_box">
            <button>See All Guidebooks</button>
          </div>
        </section>
        <section>
          <div class="title">Just for the weekend</div>
          <div class="sub_title">
            Discover hundreds of local spots recommended by Airbnb hosts
          </div>
          <div class="grid_box">
            <div class="grid_item">San Francisco</div>
            <div class="grid_item">San Francisco</div>
            <div class="grid_item">San Francisco</div>
          </div>
          <div class="btn_box">
            <button>See All Destinations</button>
          </div>
        </section>
      </main>
    </div>
  </body>
</html>