index_new.html 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. <!-- 宣告我們要套用模板 -->
  2. {% extends "base.html" %}
  3. {% block title %}{{ title }}{% endblock %}
  4. {% block script %}
  5. <script>
  6. var status = '{{status}}';
  7. var username = '{{username}}';
  8. </script>
  9. {% endblock %}
  10. {% block style %}
  11. <style>
  12. .card:hover {
  13. border: 5px Gray solid;
  14. transition-duration: 0.2s;
  15. }
  16. </style>
  17. {% endblock %}
  18. {% block main %}
  19. <div class="album py-5 bg-light">
  20. <div class="container">
  21. <div class="row row-cols-1 row-cols-sm-2 row-cols-md-4 g-3">
  22. <div class="col" role="button" id="CleanContainer">
  23. <div class="card shadow-sm">
  24. <center><p class="card-text" style="font-size: 20px; font-weight: bold;">清洗貨櫃</p></center>
  25. <img src="../static/img/clean.png" width="100%">
  26. <div class="card-body">
  27. <div class="d-flex justify-content-between align-items-center">
  28. </div>
  29. </div>
  30. </div>
  31. </div>
  32. <div class="col" role="button" id="FermentContainer">
  33. <div class="card shadow-sm">
  34. <center><p class="card-text" style="font-size: 20px; font-weight: bold;">發酵貨櫃</p></center>
  35. <img src="../static/img/ferment.png" width="100%">
  36. <div class="card-body">
  37. <div class="d-flex justify-content-between align-items-center">
  38. </div>
  39. </div>
  40. </div>
  41. </div>
  42. <div class="col" role="button" id="DryContainer">
  43. <div class="card shadow-sm">
  44. <center><p class="card-text" style="font-size: 20px;font-weight: bold;">乾燥貨櫃</p></center>
  45. <img src="../static/img/dry.png" width="100%">
  46. <div class="card-body">
  47. <div class="d-flex justify-content-between align-items-center">
  48. </div>
  49. </div>
  50. </div>
  51. </div>
  52. <div class="col" role="button" id="code">
  53. <div class="card shadow-sm">
  54. <center><p class="card-text" style="font-size: 20px;font-weight: bold;">板子燒錄</p></center>
  55. <img src="../static/img/board.png" width="100%">
  56. <div class="card-body">
  57. <div class="d-flex justify-content-between align-items-center">
  58. </div>
  59. </div>
  60. </div>
  61. </div>
  62. </div>
  63. </div>
  64. </div>
  65. {% endblock %}
  66. {% block script2 %}
  67. <script>
  68. var button_CleanContainer = document.getElementById('CleanContainer');
  69. button_CleanContainer.addEventListener('click', function () {
  70. window.location.href = '/clean';
  71. });
  72. var button_FermentContainer = document.getElementById('FermentContainer');
  73. button_FermentContainer.addEventListener('click', function () {
  74. window.location.href = '/ferment';
  75. });
  76. var button_DryContainer = document.getElementById('DryContainer');
  77. button_DryContainer.addEventListener('click', function () {
  78. window.location.href = '/dry';
  79. });
  80. var button_code = document.getElementById('code');
  81. button_code.addEventListener('click', function () {
  82. window.location.href = '/board';
  83. });
  84. </script>
  85. {% endblock %}