「HTML」タピオカ网页源代码
in HTML with 0 comment

「HTML」タピオカ网页源代码

in HTML with 0 comment

使用Bootstrap做的一个响应式网页,在此存档它的源代码。
本项目GitHub地址为:tapioka(HTML练习)
改进:
1.因为是纯静态的网页,之后想要做一个后台可以上传相册的系统。
2.HTML的开发我现在只是入门状态,页面元素也不太会调整。多学习一下HTML方向的开发,以后重写所有的页面。

页面预览(或点击Github Pages地址)
预览图1.jpg
预览图2.jpg
预览图3.jpg
预览图4.jpg

<html lang="zh-CN">

<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <!-- 上述3个meta标签*必须*放在最前面,任何其他内容都*必须*跟随其后! -->
  <title>珍珠奶茶-Album</title>

  <!-- Bootstrap -->

  <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"
    integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
  <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.7.2/css/all.css"
    integrity="sha384-fnmOCqbTlWIlj8LyTjo7mOUStjsKC4pOpQbqyi7RrhN7udi9RwhKkMHpvLbHG9Sr" crossorigin="anonymous">
  <link rel="stylesheet" href="./css/main.css">
  <link rel="stylesheet" href="./css/mobile-main.css">

  <!-- HTML5 shim 和 Respond.js 是为了让 IE8 支持 HTML5 元素和媒体查询(media queries)功能 -->
  <!-- 警告:通过 file:// 协议(就是直接将 html 页面拖拽到浏览器中)访问页面时 Respond.js 不起作用 -->
  <!--[if lt IE 9]>
      <script src="https://cdn.jsdelivr.net/npm/html5shiv@3.7.3/dist/html5shiv.min.js"></script>
      <script src="https://cdn.jsdelivr.net/npm/respond.js@1.4.2/dest/respond.min.js"></script>
    <![endif]-->
</head>

<body>
  <header>
    <!-- 导航栏部分 -->
    <div class="container-fluid p-0" id="Home">
      <nav class="navbar navbar-expand-lg">
        <a class="navbar-brand" href="#">
          <i class="fab fa-gitkraken fa-2x mx-3" aria-hidden="true"></i>タピオカ</a>
        <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNavAltMarkup"
          aria-controls="navbarNavAltMarkup" aria-expanded="false" aria-label="Toggle navigation">
          <span class="navbar-toggler-icon"></span>
          <i class="fas fa-align-right text-light"></i>
        </button>
        <div class="collapse navbar-collapse" id="navbarNavAltMarkup">
          <div class="mr-auto"></div>
          <div class="navbar-nav">
            <a class="nav-item nav-link active" href="#Home">Home <span class="sr-only">(current)</span></a>
            <a class="nav-item nav-link" href="#About">About</a>
            <a class="nav-item nav-link" href="#Album">Album</a>
          </div>
        </div>
      </nav>
    </div>

    <div class="container">
      <div class="row">
        <div class="col-md-7 col-sm-12 text-white left text-center">
          <h6 class="text">来自ハイカラ的乌贼和章鱼Team</h6>
          <h1 class="text">IKa Milk Tea</h1>
          <p class="text">イカ、よろしく---!</p>
          <button class="btn btn-light px-5 py-2 primary-btn">Memoirs</button>
        </div>
        <div class="col-md-5 col-sm-12 right">
          <img src="./images/splatoon-ika.png" alt="ika" />
        </div>
      </div>
    </div>

  </header>
  <main>
    <!-- 介绍部分 -->
    <section class="section-1">
      <div class="container text-left">
        <h1 class="text-dark" id="About">About us</h1>
      </div>
      <div class="container text-center">
        <div class="row">
          <div class="col-md-6 col-12">
            <div class="pray">
              <img src="./images/1.JPG" alt="Pray" class="" />
            </div>
          </div>
          <div class="col-md-6 col-12">
            <div class="panel text-left">
              <h1>活跃于ハイカラ的喝奶茶小队(?</h1>
              <p class="pt-4">
                是喜欢喝奶茶的乌贼/章鱼们www
              </p>
              <p>
                We Love Splatoon
              </p>
            </div>
          </div>
        </div>
      </div>
    </section>
    <!-- 相册部分 -->
    <div class="album py-5 bg-light">
      <div class="container text-center">
        <h1 class="text-dark" id="Album">Memoirs Album</h1>
      </div>
      <div class="container">
        <div class="row">
          <div class="col-md-6">
            <div class="card mb-4 shadow-sm">
              <img class="bd-placeholder-img card-img-top" width="100%" height="100%" focusable="false" role="img"
                aria-label="Placeholder: Thumbnail" src="./images/memoirs/1.png">
              </img>
              <div class="card-body">
                <div class="d-flex justify-content-between align-items-center">
                </div>
              </div>
            </div>
          </div>
          <div class="col-md-6">
            <div class="card mb-4 shadow-sm">
              <img class="bd-placeholder-img card-img-top" width="100%" height="100%"
                preserveAspectRatio="xMidYMid slice" focusable="false" role="img" aria-label="Placeholder: Thumbnail"
                src="./images/memoirs/2.png">
              </img>
              <div class="card-body">
                <div class="d-flex justify-content-between align-items-center">
                </div>
              </div>
            </div>
          </div>
          <div class="col-md-6">
            <div class="card mb-4 shadow-sm">
              <img class="bd-placeholder-img card-img-top" width="100%" height="100%"
                preserveAspectRatio="xMidYMid slice" focusable="false" role="img" aria-label="Placeholder: Thumbnail"
                src="./images/memoirs/3.png">
              </img>
              <div class="card-body">
                <div class="d-flex justify-content-between align-items-center">
                </div>
              </div>
            </div>
          </div>
          <div class="col-md-6">
            <div class="card mb-4 shadow-sm">
              <img class="bd-placeholder-img card-img-top" width="100%" height="100%"
                preserveAspectRatio="xMidYMid slice" focusable="false" role="img" aria-label="Placeholder: Thumbnail"
                src="./images/memoirs/4.png">
              </img>
              <div class="card-body">
                <div class="d-flex justify-content-between align-items-center">
                </div>
              </div>
            </div>
          </div>
          <div class="col-md-6">
            <div class="card mb-4 shadow-sm">
              <img class="bd-placeholder-img card-img-top" width="100%" height="100%"
                preserveAspectRatio="xMidYMid slice" focusable="false" role="img" aria-label="Placeholder: Thumbnail"
                src="./images/memoirs/10.png">
              </img>
              <div class="card-body">
                <div class="d-flex justify-content-between align-items-center">
                </div>
              </div>
            </div>
          </div>
          <div class="col-md-6">
            <div class="card mb-4 shadow-sm">
              <img class="bd-placeholder-img card-img-top" width="100%" height="100%"
                preserveAspectRatio="xMidYMid slice" focusable="false" role="img" aria-label="Placeholder: Thumbnail"
                src="./images/memoirs/6.png">
              </img>
              <div class="card-body">
                <div class="d-flex justify-content-between align-items-center">
                </div>
              </div>
            </div>
          </div>
          <div class="col-md-6">
            <div class="card mb-4 shadow-sm">
              <img class="bd-placeholder-img card-img-top" width="100%" height="100%"
                preserveAspectRatio="xMidYMid slice" focusable="false" role="img" aria-label="Placeholder: Thumbnail"
                src="./images/memoirs/7.png">
              </img>
              <div class="card-body">
                <div class="d-flex justify-content-between align-items-center">
                </div>
              </div>
            </div>
          </div>
          <div class="col-md-6">
            <div class="card mb-4 shadow-sm">
              <img class="bd-placeholder-img card-img-top" width="100%" height="100%"
                preserveAspectRatio="xMidYMid slice" focusable="false" role="img" aria-label="Placeholder: Thumbnail"
                src="./images/memoirs/8.png">
              </img>
              <div class="card-body">
                <div class="d-flex justify-content-between align-items-center">
                </div>
              </div>
            </div>
          </div>
          <div class="col-md-6">
            <div class="card mb-4 shadow-sm">
              <img class="bd-placeholder-img card-img-top" width="100%" height="100%"
                preserveAspectRatio="xMidYMid slice" focusable="false" role="img" aria-label="Placeholder: Thumbnail"
                src="./images/memoirs/9.png">
              </img>
              <div class="card-body">
                <div class="d-flex justify-content-between align-items-center">
                </div>
              </div>
            </div>
          </div>
          <div class="col-md-6">
            <div class="card mb-4 shadow-sm">
              <img class="bd-placeholder-img card-img-top" width="100%" height="100%"
                preserveAspectRatio="xMidYMid slice" focusable="false" role="img" aria-label="Placeholder: Thumbnail"
                src="./images/memoirs/12.png">
              </img>
              <div class="card-body">
                <div class="d-flex justify-content-between align-items-center">
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </main>
  <footer>
    <div class="container-fluid p-0">
      <div class="row text-left">
        <div class="col-md-6 col-sm-6">
          <h4 class="text-light">About this page</h4>
          <p class="text-muted">使用Bootstrap做的一个响应式网页。太懒了所以没更新。</p>
          <p class="pt-4 text-muted">Copyright ©2019 All rights reserved | This Web is made with by
            <span> Kame</span>
          </p>
        </div>
        <!--
        还未完善的内容 之后有空会改进
        <div class="col-md-5 col-sm-12">
          <h4 class="text-light">Newsletter</h4>
          <p class="text-muted">Stay Updated</p>
          <form class="form-inline">
            <div class="col pl-0">
              <div class="input-group pr-5">
                <input type="text" class="form-control bg-dark text-white" id="inlineFormInputGroupUsername2"
                  placeholder="Email">
                <div class="input-group-prepend">
                  <div class="input-group-text">
                    <i class="fas fa-arrow-right"></i>
                  </div>
                </div>
              </div>
            </div>
          </form>
        </div>
                -->
        <div class="col-md-6 col-sm-12">
          <h4 class="text-light">Follow Me</h4>
          <div class="column text-light">
            <a href="https://weibo.com/3323858292/profile?rightmod=1&wvr=6&mod=personinfo&is_all=1">
              <i class="fab fa-weibo"></i>
              <span class="text-muted">@Kameee</span>
            </a>
            <p>
              <a href="https://github.com/Kameees">
                <i class="fab fa-github"></i>
                <span class="text-muted">Github Project</span>
              </a>
            </p>
          </div>
        </div>
      </div>
    </div>
  </footer>
  <!-- jQuery (Bootstrap 的所有 JavaScript 插件都依赖 jQuery,所以必须放在前边) -->
  <!-- 加载 Bootstrap 的所有 JavaScript 插件。你也可以根据需要只加载单个插件。 -->
  <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"
    integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous">
  </script>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"
    integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous">
  </script>
  <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"
    integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous">
  </script>
  <script src="./js/main.js"></script>
</body>

</html>