入門編:フォトサイト/LP

フォトサイト:LP

code-step.com


PHOTO BOOK

INDEX
1.タイトルタイトルタイトルタイトルタイトルタイトルタイトルタイトル
2.タイトルタイトルタイトルタイトルタイトルタイトルタイトルタイトル
3.タイトルタイトルタイトルタイトルタイトルタイトルタイトルタイトル
4.タイトルタイトルタイトルタイトルタイトルタイトルタイトルタイトル
5.タイトルタイトルタイトルタイトルタイトルタイトルタイトルタイトル

DETAIL
タイトルタイトルタイトル

著者
タイトルタイトルタイトル
出版社
タイトルタイトルタイトル
発行年
タイトルタイトルタイトル

テキストテキストテキストテキストテキストテキスト テキストテキストテキストテキストテキストテキスト

オンラインストアで見る

© 2022 PHOTO BOOK
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="UTF-8">
<title>【コーディング練習】フォトサイト / LP</title>
<meta name="viewport" content="width=device-width">
<link rel="shortcut icon" href="img/favicon.ico">
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<!-- .header -->
<header class="header">
  <h1 class="site-title">
    <a href="index.html"><img src="img/logo.svg" alt="PHOTO BOOK"></a>
  </h1>
</header>
<!-- /.header -->

<!-- .main-content -->
<main class="main-content">
  <div class="mainvisual">
    <img src="img/mainvisual.jpg" alt="テキストテキストテキスト">
  </div><!-- /.mainvisual -->
  <section class="index">
    <div class="inner">
      <h2 class="section-title">INDEX</h2>
      <ol class="index-list">
        <li>タイトルタイトルタイトルタイトルタイトルタイトルタイトルタイトル</li>
        <li>タイトルタイトルタイトルタイトルタイトルタイトルタイトルタイトル</li>
        <li>タイトルタイトルタイトルタイトルタイトルタイトルタイトルタイトル</li>
        <li>タイトルタイトルタイトルタイトルタイトルタイトルタイトルタイトル</li>
        <li>タイトルタイトルタイトルタイトルタイトルタイトルタイトルタイトル</li>
      </ol>
    </div><!-- /.inner -->
  </section><!-- /.index -->
  <section class="detail">
    <div class="inner">
      <h2 class="section-title">DETAIL</h2>
      <div class="content">
        <img class="img" src="img/detail.jpg" alt="">
        <div class="text-block">
          <p class="title">タイトルタイトルタイトル</p>
          <dl>
            <dt>著者</dt>
            <dd>タイトルタイトルタイトル</dd>
            <dt>出版社</dt>
            <dd>タイトルタイトルタイトル</dd>
            <dt>発行年</dt>
            <dd>タイトルタイトルタイトル</dd>
          </dl>
          <p>
            テキストテキストテキストテキストテキストテキスト
            テキストテキストテキストテキストテキストテキスト
          </p>
          <a class="link" href="#" target="_blank" rel="noopener noreferrer">オンラインストアで見る</a>
        </div><!-- /.text-block -->
      </div><!-- /.inner -->
    </div><!-- /.content -->
  </section><!-- /.detail -->
</main>
<!-- /.main-content -->

<!-- .footer -->
<footer class="footer">
  <p class="inner">&copy; 2020 PHOTO BOOK</p>
</footer>
<!-- /.footer -->
</body>
</html>
@charset "URF-8";

/* --------------------------------------
  reset
-------------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
ul, li {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  vertical-align: bottom;
}


/* --------------------------------------
  body
-------------------------------------- */
body {
  background-color: #f4f9fe;
  color: #333;
  font-size: 16px;
  font-family: sans-serif;
  line-height: 1.0;
}


/* --------------------------------------
  layout
-------------------------------------- */
.main-content {
  max-width: 1000px;
  margin: 0 auto;
}
.mainvisual {
  margin-bottom: 65px;
}
.index {
  margin-bottom: 34px;
  padding: 34px 40px 10px;
  background-color: #fff;
}
.detail {
  margin-bottom: 80px;
  padding: 30px 40px;
}
  .inner > .section-title {
    margin-bottom: 14px;
    font-size: 18px;
  }
  .content > .img {
    width: 100%;
    margin-bottom: 28px;
  }
  .index-list > li {
    margin: 0 0 20px 20px;
    list-style: decimal;
    line-height: 1.5;
    font-size: 14px;
  }
  .text-block > .title {
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 700;
  }
  .text-block dl {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding: 14px 0;
    border-top: 1px dotted #333;
    border-bottom: 1px dotted #333;
    font-size: 14px;
  }
    .text-block dt {
      flex-basis: 70px;
      line-height: 1.6;
    }
    .text-block dd {
      width: 70%;
      line-height: 1.6;
    }
  .text-block p {
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.6;
  }
    .text-block a {
      font-size: 14px;
      text-decoration: underline;
    }

@media screen and (min-width: 768px) {
  .main-content {
    max-width: 1000px;
    margin: 0 auto;
  }
  .inner {
    max-width: 600px;
    margin: 0 auto;
  }
  .content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
  }
    .content > .img {
      width: 270px;
      height: 270px;
    }
}


/* --------------------------------------
  header
-------------------------------------- */
.site-title img {
  width: 160px;
  margin: 60px 0 14px 10px;
}

@media screen and (min-width: 768px) {
  .header {
    max-width: 1000px;
    margin: 0 auto;
  }
}


/* --------------------------------------
  footer
-------------------------------------- */
.footer {
  padding: 15px 0;
  color: #666;
  text-align: center;
  font-size: 13px;
}