base.html 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. <!DOCTYPE html>
  2. <html lang="zh-TW">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1" />
  6. <!-- 提供 ico 檔案 -->
  7. <link rel="icon" href="{{ url_for('static', filename='img/alpaca_logo.ico') }}">
  8. <!-- 引入 cdn CSS -->
  9. <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">
  10. <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Noto+Sans+TC&display=swap">
  11. <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.11.2/css/all.css">
  12. <!-- 引入我們自己的 CSS -->
  13. <link rel="stylesheet" href="{{ url_for('static', filename='css/custom.css') }}">
  14. <!-- 直接定義 CSS -->
  15. <style> body {font-family: 'Noto Sans TC', sans-serif;}</style>
  16. <!-- 可供更改的部分 -->
  17. <title>{% block title %}{% endblock %}</title>
  18. </head>
  19. <body>
  20. <nav class="navbar navbar-expand navbar-dark bg-dirty-purple">
  21. <a class="navbar-brand" href="/">賴田捕手</a>
  22. <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
  23. <span class="navbar-toggler-icon"></span>
  24. </button>
  25. <div class="collapse navbar-collapse" id="navbarSupportedContent">
  26. <ul class="navbar-nav mr-auto">
  27. <li class="nav-item">
  28. <a class="nav-link" href="/from_start">從頭開始</span></a>
  29. </li>
  30. <li class="nav-item">
  31. <a class="nav-link" href="#">LINE-Bot-Sdk</a>
  32. </li>
  33. <li class="nav-item">
  34. <a class="nav-link" href="#">Heroku Postgres</a>
  35. </li>
  36. <li class="nav-item dropdown">
  37. <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
  38. Flask
  39. </a>
  40. <div class="dropdown-menu" aria-labelledby="navbarDropdown">
  41. <a class="dropdown-item" href="#">基本架構</a>
  42. <a class="dropdown-item" href="#">網頁設計</a>
  43. <div class="dropdown-divider"></div>
  44. <a class="dropdown-item" href="#">接下來的</a>
  45. </div>
  46. </li>
  47. <li class="nav-item">
  48. <a class="nav-link disabled" href="#" tabindex="-1" aria-disabled="true">施工中</a>
  49. </li>
  50. </ul>
  51. <ul class="navbar-nav ml-auto">
  52. <li class="nav-item">
  53. <a class="nav-link" href="#">請靠右走</a>
  54. </li>
  55. </ul>
  56. </div>
  57. </nav>
  58. <main>
  59. {% block main %}{% endblock %}
  60. </main>
  61. <footer class="bg-light">
  62. <div class="container-fluid">
  63. <div class="row">
  64. <div class="col">
  65. <ul class="list-group list-group-horizontal">
  66. <li class="list-group-item bg-light border-light"><a href="https://ithelp.ithome.com.tw/users/20120178/ironman/2654">iT邦幫忙鐵人賽</a></li>
  67. <li class="list-group-item bg-light border-light"><a href="https://github.com/githubmhjao">Github</a></li>
  68. </ul></div>
  69. <div class="col">
  70. <ul class="list-group list-group-horizontal">
  71. <li class="list-group-item bg-light border-light">當前網站採用 Bootstrap v4.3.1 版本, <a href="https://github.com/twbs/bootstrap/blob/master/LICENSE" target="_blank" rel="license noopener">MIT</a>, docs <a href="https://creativecommons.org/licenses/by/3.0/" target="_blank" rel="license noopener">CC BY 3.0</a>.</li>
  72. </ul>
  73. </div>
  74. </div>
  75. </footer>
  76. <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
  77. <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script>
  78. <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
  79. {% block script %}{% endblock %}
  80. </body>
  81. </html>