サイト模写 | lodge(予約サイト)

※サイト模写用に作成したページの解説です。

※使用画像はフリー素材からダウンロードしています。

※下記、模写サイトへボタンから該当のサイトへGo!!

MEMO

1.body

  • 最大幅980px

2.メインビジュアル

  • コンテンツ幅に合わせる
  • 高さは450px固定
  • スマホの際、高さはauto表示

3.おすすめPOINT

  • 画像を2カラムで中央寄せ

4.施設の特徴

  • 背景は白

5.lake side Lodge

  • 画像とテキストを2カラムで中央寄せ

5.レスポンシブ

  • ブレークポイントは600px
  • メインビジュアル以外の左右の余白は20px
  • おすすめPOINT、lake side Lodgeの横並びを解除し縦表示

HTML

<!DOCTYPE html>
<html lang="ja">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>lodge|サイト模写</title>
  <meta name="description" content="テキストテキストテキストテキストテキスト">
  <link rel="shortcut icon" href="img/favicon.ico" type="image/x-icon">
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css">
  <link rel="stylesheet" href="style.css">
</head>
<body>
  <div class="container">
    <header>
      <h1 class="logo">
        <img src="img/logo.png" alt="logo">
      </h1>
    </header>
    <main>
      <div id="mv">
        <img src="img/mv.jpg" alt="">
      </div>

      <section id="point" class="inner">
        <h2 class="section-title">おすすめPOINT</h2>
        <div class="point-wrap">
          <div class="img">
            <img src="img/01.jpg" alt="lodge">
            <p class="point-title">テキストテキスト</p>
            <p>テキストテキストテキストテキスト
              テキストテキスト
            </p>
          </div>
          <div class="img">
            <img src="img/02.jpg" alt="lodge">
            <p class="point-title">テキストテキスト</p>
            <p>テキストテキストテキストテキスト
              テキストテキスト
            </p>
          </div>
        </div>
      </section>

      <section id="feature">
        <div class="inner">
          <p class="section-title">施設の特徴</p>
          <p>テキストテキストテキストテキストテキストテキストテキストテキストテキストテキストテキストテキストテキストテキストテキストテキストテキストテキストテキストテキストテキストテキストテキストテキストテキストテキストテキストテキストテキストテキストテキストテキストテキストテキストテキストテキストテキストテキストテキストテキスト
          </p>
        </div>
      </section>

      <section id="access">
          <h2 class="section-title">lake side Lodge</h2>
          <div class="access-wrap">
            <div class="img">
              <img src="img/03.jpg" alt="lodge">
            </div>
            <div class="txt">
              <p>ご予約を開始しております</p>
              <dl>
                <dt>住所</dt>
                <dd>〒000-0000<br>
                  テキストテキストテキストテキストテキスト</dd>
                <dt>電話番号</dt>
                <dd>00-0000-0000</dd>
                <dt>場内設備</dt>
                <dd>テキストテキストテキストテキストテキストテキストテキストテキストテキストテキスト</dd>
                <dt>周辺施設</dt>
                <dd>テキストテキストテキストテキストテキスト
                  テキストテキストテキストテキストテキスト
                  テキストテキストテキストテキストテキスト
                </dd>
              </dl>
              <a href="#">オンライン予約はこちら</a>
            </div>
          </div>
      </section>
    </main>
    <footer>
      <div class="source">
        <a href="index02.html#memo">MEMO</a>
        <a href="index02.html#html">HTML</a>
        <a href="index02.html#css">CSS</a>
      </div>
      <p class="copy">© Lodge</p>
    </footer>
  </div>
</body>
</html>

css

html {
  font-size: 100%;
}

body {
  background-color: #f3f7d0;
  line-height: 1.6;
}

*, *::before, *::after {
  box-sizing: border-box;
}

a {
  color: #333;
  display: block;
  text-decoration: none;
}

img {
  max-width: 100%;
  vertical-align: bottom;
}

.inner {
  max-width: 600px;
  margin: 0 auto;
}

.section-title {
  font-weight: bold;
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.container {
  max-width: 980px;
  margin: 0 auto;
}

.container header {
  height: 120px;
  display: flex;
  align-items: flex-end;
}

.container header .logo {
  width: 160px;
}

.container header .logo img {
  width: 100%;
}

.container main #mv {
  margin-bottom: 80px;
}

.container main #mv img {
  width: 100%;
  height: 450px;
  object-fit: cover;
}

.container main #feature {
  background-color: #fff;
  padding: 60px 0;
  margin-bottom: 80px;
}

.container main #point {
  margin-bottom: 80px;
}

.container main #point .point-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.container main #point .point-wrap .img {
  width: 48%;
}

.container main #point .point-wrap .img img {
  width: 100%;
  margin-bottom: 20px;
}

.container main #point .point-wrap .img .point-title {
  font-weight: bold;
  margin-bottom: 10px;
}

.container main #access .access-wrap {
  display: flex;
  justify-content: space-between;
}

.container main #access .access-wrap .img {
  width: 50%;
  margin-right: 30px;
}

.container main #access .access-wrap .img img {
  width: 100%;
}

.container main #access .access-wrap .txt {
  width: 50%;
  font-size: 0.9rem;
}

.container main #access .access-wrap .txt p {
  margin-bottom: 10px;
}

.container main #access .access-wrap .txt dl {
  border-top: 1px solid #ccc;
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.container main #access .access-wrap .txt dl dt {
  padding: 20px 0;
  width: 20%;
  border-bottom: 1px solid #ccc;
}

.container main #access .access-wrap .txt dl dd {
  padding: 20px 0;
  width: 80%;
  border-bottom: 1px solid #ccc;
}

.container main #access .access-wrap .txt a {
  margin-left: 40%;
  width: 60%;
  padding: 10px 0;
  text-align: center;
  border: 1px solid #ccc;
}

.container footer {
  padding: 100px 0 10px;
  text-align: center;
}

.container footer .source {
  display: flex;
  justify-content: end;
}

.container footer .source a {
  font-size: 0.8rem;
  padding: 10px 30px;
  border: 1px solid #333;
  margin: 0 2px 20px;
}

.container footer .copy {
  font-size: 0.75em;
}

@media screen and (max-width: 600px) {
  .container {
    font-size: 0.9rem;
  }
  .container header {
    height: 60px;
    align-items: center;
  }
  .container header .logo {
    width: 120px;
  }
  .container main #mv img {
    height: auto;
  }
  .container main #point {
    padding: 0 20px;
  }
  .container main #point .point-wrap {
    flex-direction: column;
  }
  .container main #point .point-wrap .img {
    width: 100%;
    margin-bottom: 30px;
  }
  .container main #point .point-wrap .img:last-child {
    margin-bottom: 0;
  }
  .container main #feature .inner {
    padding: 0 20px;
  }
  .container main #access {
    padding: 0 20px;
    margin-bottom: 80px;
  }
  .container main #access .access-wrap {
    flex-direction: column;
  }
  .container main #access .access-wrap .img {
    width: 100%;
    margin-left: 0;
    margin-bottom: 60px;
  }
  .container main #access .access-wrap .txt {
    width: 100%;
  }
  .container main #access .access-wrap .txt a {
    margin-left: 0;
    width: 100%;
  }
  .container footer {
    padding: 0 20px;
  }
  .container footer .source {
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 20px;
  }
  .container footer .source a {
    width: 49.5%;
    margin: 0 0 2px;
  }
}

TOPページへ戻る