1
0

index.html 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>Aisky-coffee</title>
  6. <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  7. <!-- 新 Bootstrap4 核心 CSS 文件 -->
  8. <link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/4.1.0/css/bootstrap.min.css">
  9. <!-- jQuery文件。务必在bootstrap.min.js 之前引入 -->
  10. <script src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
  11. <!-- popper.min.js 用于弹窗、提示、下拉菜单 -->
  12. <script src="https://cdn.bootcss.com/popper.js/1.12.5/umd/popper.min.js"></script>
  13. <!-- 最新的 Bootstrap4 核心 JavaScript 文件 -->
  14. <script src="https://cdn.bootcss.com/bootstrap/4.1.0/js/bootstrap.min.js"></script>
  15. <!--可用來建立使用者小圖示-->
  16. <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
  17. <link rel="icon" href="..\static\img\skyeye-2.ico" type="image/x-icon">
  18. <style>
  19. body {
  20. margin:0;
  21. }
  22. .navbar-dark .navbar-nav .nav-link {
  23. color: white;
  24. cursor: pointer;
  25. text-decoration:none;
  26. width: 110px;
  27. height: 46px;
  28. }
  29. .nav-top {
  30. line-height:40px;
  31. background-color: #C4C4C4;
  32. }
  33. .website_title{
  34. font-family: Roboto;
  35. font-style: normal;
  36. font-weight: normal;
  37. font-size: 30px;
  38. color: #000000;
  39. }
  40. .navbar-nav > li{
  41. float: none;
  42. display: inline-block;
  43. width: 100px;
  44. margin: 0 auto;
  45. text-align: center;
  46. }
  47. .navbar-nav > li a{
  48. font-size: 20px;
  49. }
  50. .main-page {
  51. margin-top: 200px;
  52. }
  53. .page-title {
  54. font-family: Roboto;
  55. font-style: normal;
  56. font-weight: bold;
  57. font-size: 36px;
  58. }
  59. .flex {
  60. display: flex;
  61. flex-direction: row;
  62. flex-wrap: wrap;
  63. justify-content: center;
  64. }
  65. .set-link {
  66. display: inline-block;
  67. width: 350px;
  68. height: 100px;
  69. line-height: 100px;
  70. background: #008CBA;
  71. border: 1px solid #CFCFCF;
  72. box-sizing: border-box;
  73. color: #FFFFFF;
  74. border-radius: 10px;
  75. font-size: 36px;
  76. }
  77. @media(max-width:373px){
  78. .card {
  79. margin-right: 0px;
  80. }
  81. .set-link {
  82. width: 250px;
  83. }
  84. }
  85. @media(max-width:577px){
  86. }
  87. @media(min-width:576px){
  88. }
  89. @media(min-width:768px){
  90. .navbar-nav > li {
  91. margin-left: 0px;
  92. }
  93. .navbar-nav .li-block {
  94. display:none;
  95. }
  96. }
  97. @media(min-width:991px){
  98. .navbar-nav > li {
  99. margin-left: 20px;
  100. }
  101. .navbar-nav .li-block {
  102. display:none;
  103. }
  104. }
  105. @media(min-width:1200px){
  106. .navbar-nav > li {
  107. margin-left: 50px;
  108. }
  109. .navbar-nav .li-block {
  110. display: inline-block;
  111. width: 100px;
  112. }
  113. }
  114. @media(min-width:1400px){
  115. .navbar-nav .li-block {
  116. display: inline-block;
  117. width: 200px;
  118. }
  119. }
  120. @media(min-width:1689px) {
  121. .navbar-nav > li {
  122. margin-left: 50px;
  123. }
  124. .navbar-nav .li-block {
  125. display: inline-block;
  126. width: 500px;
  127. }
  128. }
  129. </style>
  130. </head>
  131. <body>
  132. <nav class="fixed-top">
  133. <nav class="navbar navbar-expand-md nav-top justify-content-center">
  134. <div>
  135. <span class="website_title">首頁</span>
  136. </div>
  137. </nav>
  138. <nav class="navbar navbar-expand-md bg-dark navbar-dark nav-bottom">
  139. <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#collapsibleNavbar">
  140. <span class="navbar-toggler-icon"></span>
  141. </button>
  142. <div class="collapse navbar-collapse" id="collapsibleNavbar">
  143. <ul class="navbar-nav">
  144. <li class="nav-item">
  145. <a class="nav-link" href="/">首頁</a>
  146. </li>
  147. <li class="nav-item">
  148. <a class="nav-link" href="#">關於我們</a>
  149. </li>
  150. <li class="nav-item">
  151. <a class="nav-link" href="#">資訊</a>
  152. </li>
  153. <li class="nav-item">
  154. <a class="nav-link" href="#">聯絡方法</a>
  155. </li>
  156. <li class="nav-item">
  157. <a class="nav-link" href="/cargo_list">咖啡貨櫃</a>
  158. </li>
  159. <li class="nav-item">
  160. <a class="nav-link" href="/video">影像串流</a>
  161. </li>
  162. <li class="li-block"></li>
  163. <li class="nav-item">
  164. <a class="nav-link" href="#"><i class="fa fa-user-o"></i> {{params.username}}</a>
  165. </li>
  166. <li class="nav-item">
  167. <a class="nav-link" href="/logout">Logout</a>
  168. </li>
  169. </ul>
  170. </div>
  171. </nav>
  172. </nav>
  173. <div class="main-page">
  174. <form method="" action="">
  175. <div class="container-fluid">
  176. <div class="row">
  177. <div class="col flex" style="margin: auto; ">
  178. <div class="col-xl-3 col-lg-4 col-md-5 col-sm-8 col-xs-8" style="margin-right: 20px ;margin-left: 20px; margin-top:50px; margin-bottom:50px;">
  179. <div class="page-title text-center">
  180. <a class="set-link" type="button" href="/">首頁</a>
  181. </div>
  182. </div>
  183. <div class="col-xl-3 col-lg-4 col-md-5 col-sm-8 col-xs-8" style="margin-right: 20px ;margin-left: 20px; margin-top:50px; margin-bottom:50px;">
  184. <div class="page-title text-center">
  185. <a class="set-link" type="button" href="#">關於我們</a>
  186. </div>
  187. </div>
  188. <div class="col-xl-3 col-lg-4 col-md-5 col-sm-8 col-xs-8" style="margin-right: 20px ;margin-left: 20px; margin-top:50px; margin-bottom:50px;">
  189. <div class="page-title text-center">
  190. <a class="set-link" type="button" href="#">資訊</a>
  191. </div>
  192. </div>
  193. <div class="col-xl-3 col-lg-4 col-md-5 col-sm-8 col-xs-8" style="margin-right: 20px ;margin-left: 20px; margin-top:50px; margin-bottom:50px;">
  194. <div class="page-title text-center">
  195. <a class="set-link" type="button" href="#">聯絡方法</a>
  196. </div>
  197. </div>
  198. <div class="col-xl-3 col-lg-4 col-md-5 col-sm-8 col-xs-8" style="margin-right: 20px ;margin-left: 20px; margin-top:50px; margin-bottom:50px;">
  199. <div class="page-title text-center">
  200. <a class="set-link" type="button" href="/cargo_list">咖啡貨櫃</a>
  201. </div>
  202. </div>
  203. <div class="col-xl-3 col-lg-4 col-md-5 col-sm-8 col-xs-8" style="margin-right: 20px ;margin-left: 20px; margin-top:50px; margin-bottom:50px;">
  204. <div class="page-title text-center">
  205. <a class="set-link" type="button" href="/video">影像串流</a>
  206. </div>
  207. </div>
  208. </div>
  209. </div>
  210. <div style="text-align: center;">
  211. <a href="/index_new">新首頁測試</a>
  212. </div>
  213. <div style="text-align: center;">
  214. {% if params.status == 1 %}
  215. 使用者權限: new
  216. {% elif params.status == 0 %}
  217. 使用者權限: admin
  218. {% elif params.status == 2 %}
  219. 使用者權限: enduser
  220. {% elif params.status == 9 %}
  221. 使用者權限: disable
  222. {% endif %}
  223. </div>
  224. <div>{{ _('Hello World!') }}</div>
  225. <div>{{ _('My name is Max') }}</div>
  226. </div>
  227. </form>
  228. </div>
  229. </body>
  230. </html>