footer.html 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>{{ title }}</title>
  6. <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  7. <!-- <meta http-equiv="refresh" content="300" /> 每 content 秒網頁自動更新-->
  8. <!-- 新 Bootstrap4 核心 CSS 文件 -->
  9. <link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/4.1.0/css/bootstrap.min.css">
  10. <!-- jQuery文件。务必在bootstrap.min.js 之前引入 -->
  11. <script src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
  12. <!-- popper.min.js 用于弹窗、提示、下拉菜单 -->
  13. <script src="https://cdn.bootcss.com/popper.js/1.12.5/umd/popper.min.js"></script>
  14. <!-- 最新的 Bootstrap4 核心 JavaScript 文件 -->
  15. <script src="https://cdn.bootcss.com/bootstrap/4.1.0/js/bootstrap.min.js"></script>
  16. <!--可用來建立使用者小圖示-->
  17. <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
  18. <!-- 參考資料 -->
  19. <!-- https://ithelp.ithome.com.tw/articles/10244121 -->
  20. <style>
  21. .footer{
  22. height: 40px;
  23. box-sizing: border-box;
  24. /* 設定footer絕對位置在底部 */
  25. position: absolute;
  26. bottom: 0px;
  27. width: 100%;
  28. background-color: #eee;
  29. text-align: center;
  30. }
  31. html, body {
  32. height: 100%;
  33. }
  34. #wrapper {
  35. /* 設定高度最小為100%, 如果內容區塊很多, 可以長大 */
  36. min-height: 100%;
  37. /* 位置設為relative, 作為footer區塊位置的參考 */
  38. position: relative;
  39. }
  40. .navbar-dark .navbar-nav .nav-link {
  41. color: white;
  42. cursor: pointer;
  43. text-decoration: none;
  44. width: 110px;
  45. height: 46px;
  46. }
  47. .nav-top {
  48. line-height: 40px;
  49. background-color: #C4C4C4;
  50. }
  51. .website_title {
  52. font-family: Roboto;
  53. font-style: normal;
  54. font-weight: normal;
  55. font-size: 30px;
  56. color: #000000;
  57. }
  58. .navbar-nav>li {
  59. float: none;
  60. display: inline-block;
  61. width: 100px;
  62. margin: 0 auto;
  63. text-align: center;
  64. }
  65. .navbar-nav>li a {
  66. font-size: 20px;
  67. }
  68. .main-page {
  69. margin-top: 200px;
  70. }
  71. .page-title {
  72. font-family: Roboto;
  73. font-style: normal;
  74. font-weight: bold;
  75. font-size: 36px;
  76. }
  77. .flex {
  78. display: flex;
  79. flex-direction: row;
  80. flex-wrap: wrap;
  81. justify-content: center;
  82. }
  83. .set-link {
  84. display: inline-block;
  85. width: 350px;
  86. height: 100px;
  87. line-height: 100px;
  88. background: #008CBA;
  89. border: 1px solid #CFCFCF;
  90. box-sizing: border-box;
  91. color: #FFFFFF;
  92. border-radius: 10px;
  93. font-size: 36px;
  94. }
  95. .cmn-toggle {
  96. position: absolute;
  97. margin-left: 0px;
  98. visibility: hidden;
  99. }
  100. .cmn-toggle+label {
  101. display: block;
  102. position: relative;
  103. cursor: pointer;
  104. outline: none;
  105. user-select: none;
  106. }
  107. input.cmn-toggle-round-flat+label {
  108. padding: 2px;
  109. width: 60px;
  110. height: 30px;
  111. background-color: #C0C0C0;
  112. border-radius: 60px;
  113. transition: background 0.4s;
  114. }
  115. input.cmn-toggle-round-flat+label:before,
  116. input.cmn-toggle-round-flat+label:after {
  117. display: block;
  118. position: absolute;
  119. content: "";
  120. }
  121. input.cmn-toggle-round-flat+label:before {
  122. top: 2px;
  123. left: 2px;
  124. bottom: 2px;
  125. right: 2px;
  126. background-color: #fff;
  127. border-radius: 60px;
  128. transition: background 0.4s;
  129. }
  130. input.cmn-toggle-round-flat+label:after {
  131. top: 4px;
  132. left: 4px;
  133. bottom: 4px;
  134. width: 24px;
  135. background-color: #dddddd;
  136. border-radius: 52px;
  137. transition: margin 0.4s, background 0.4s;
  138. }
  139. input.cmn-toggle-round-flat:checked+label {
  140. background-color: #C0C0C0;
  141. }
  142. input.cmn-toggle-round-flat:checked+label:after {
  143. margin-left: 27px;
  144. background-color: #008CBA;
  145. }
  146. .main-menu li {
  147. position: relative;
  148. transition: .5s;
  149. list-style-type: none;
  150. }
  151. .main-menu li a {
  152. padding: 0 15px;
  153. line-height: 60px;
  154. font-size: 18px;
  155. }
  156. .main-menu li::after {
  157. content: '';
  158. position: absolute;
  159. height: 4px;
  160. left: 50%;
  161. right: 50%;
  162. bottom: 0;
  163. background-color: #bbb;
  164. transition: .5s;
  165. }
  166. .main-menu li:hover {
  167. background-color: #ddd;
  168. }
  169. .main-menu li:hover::after {
  170. left: 0;
  171. right: 0;
  172. }
  173. @media(max-width:373px) {
  174. .card {
  175. margin-right: 0px;
  176. }
  177. .set-link {
  178. width: 250px;
  179. }
  180. }
  181. @media(max-width:577px) {}
  182. @media(min-width:576px) {}
  183. @media(min-width:768px) {
  184. .navbar-nav>li {
  185. margin-left: 0px;
  186. }
  187. .navbar-nav .li-block {
  188. display: none;
  189. }
  190. }
  191. @media(min-width:991px) {
  192. .navbar-nav>li {
  193. margin-left: 20px;
  194. }
  195. .navbar-nav .li-block {
  196. display: none;
  197. }
  198. }
  199. @media(min-width:1200px) {
  200. .navbar-nav>li {
  201. margin-left: 50px;
  202. }
  203. .navbar-nav .li-block {
  204. display: inline-block;
  205. width: 100px;
  206. }
  207. }
  208. @media(min-width:1400px) {
  209. .navbar-nav .li-block {
  210. display: inline-block;
  211. width: 200px;
  212. }
  213. }
  214. @media(min-width:1689px) {
  215. .navbar-nav>li {
  216. margin-left: 50px;
  217. }
  218. .navbar-nav .li-block {
  219. display: inline-block;
  220. width: 500px;
  221. }
  222. }
  223. </style>
  224. </head>
  225. <body>
  226. <footer class="footer" id="footer" style="margin: auto;">
  227. <div style="margin: 10px auto; font-size: 13px; margin-bottom: 10px;">
  228. <a style="padding: 0px 6px" href="#">關於 Smart Coffee</a>&nbsp;|&nbsp;
  229. <a style="padding: 0px 6px;" href="#">產品與經銷商</a>&nbsp;|&nbsp;
  230. <a style="padding: 0px 6px;" href="#">網站地圖</a>&nbsp;|&nbsp;
  231. Copyright © 2021 GOLD IN TECHNOLOGY INC. 保留一切權利。
  232. </div>
  233. </footer>
  234. </body>
  235. </html>