layout.html 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <!-- Required meta tags -->
  5. <meta charset="utf-8">
  6. <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  7. <!-- Bootstrap CSS -->
  8. <link rel='stylesheet' href='https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css'>
  9. <link rel='stylesheet' href='https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css'>
  10. <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.4.1/semantic.min.css">
  11. <link rel="stylesheet"
  12. href="https://use.fontawesome.com/releases/v5.1.0/css/all.css" integrity="sha384-lKuwvrZot6UHsBSfcMvOkWwlCMgc0TaWr+30HWe3a4ltaBwTZhyTEggF5tJv8tbt"
  13. crossorigin="anonymous">
  14. <link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='styles/reset.css') }}">
  15. <link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='styles/main.css') }}">
  16. <script src="https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.20/lodash.min.js"></script>
  17. <script src="https://unpkg.com/axios/dist/axios.min.js"></script>
  18. <script src='https://code.jquery.com/jquery-3.2.1.slim.min.js'></script>
  19. <style>
  20. .outerDiv {
  21. box-sizing: border-box;
  22. }
  23. </style>
  24. {% if title %}
  25. <title>bhouse backstage - {{ title }}</title>
  26. {% else %}
  27. <title>bhouse backstage</title>
  28. {% endif %}
  29. </head>
  30. <body>
  31. <div class="container-fluid">
  32. <div class="row" id="body-row">
  33. <!-- Sidebar -->
  34. <nav id="sidebar-container" class="sidebar-expanded col-2 sidebar"><!-- d-* hiddens the Sidebar in smaller devices. Its itens can be kept on the Navbar 'Menu' -->
  35. <div class="sidebar-header">
  36. <h3 class="sidebar__company">小寶優居</h3>
  37. </div>
  38. <!-- Bootstrap List Group -->
  39. <ul class="list-group pt-2">
  40. <!-- /END Separator -->
  41. <!-- Menu with submenu -->
  42. <a href="{{ url_for('home.home') }}" class="bg-dark list-group-item list-group-item-action flex-column align-items-start">
  43. <div class="d-flex w-100 justify-content-start align-items-center">
  44. <i class="fas fa-home mr-3"></i>
  45. <span class="menu-collapsed">首頁</span>
  46. <span class="submenu-icon ml-auto"></span>
  47. </div>
  48. </a>
  49. <a href="{{ url_for('room_planner.main') }}" class="bg-dark list-group-item list-group-item-action flex-column align-items-start"">
  50. <div class="d-flex w-100 justify-content-start align-items-center">
  51. <i class="fas fa-user-alt mr-3"></i>
  52. <span class="menu-collapsed">家具規劃師</span>
  53. <span class="submenu-icon ml-auto"></span>
  54. </div>
  55. </a>
  56. <a href="{{ url_for('collections.collection_list') }}" class="bg-dark list-group-item list-group-item-action">
  57. <div class="d-flex w-100 justify-content-start align-items-center">
  58. <i class="fas fa-ruler-combined mr-3"></i>
  59. <span class="menu-collapsed">規劃作品</span>
  60. </div>
  61. </a>
  62. <a href="{{ url_for('store_locations.main') }}" class="bg-dark list-group-item list-group-item-action">
  63. <div class="d-flex w-100 justify-content-start align-items-center">
  64. <i class="fas fa-location-arrow mr-3"></i>
  65. <span class="menu-collapsed">門市據點</span>
  66. </div>
  67. </a>
  68. <a href="#" class="bg-dark list-group-item list-group-item-action">
  69. <div class="d-flex w-100 justify-content-start align-items-center">
  70. <i class="fas fa-question-circle mr-3"></i>
  71. <span class="menu-collapsed">常見問題</span>
  72. </div>
  73. </a>
  74. <a href="#" class="bg-dark list-group-item list-group-item-action">
  75. <div class="d-flex w-100 justify-content-start align-items-center">
  76. <i class="fas fa-tasks mr-3"></i>
  77. <span class="menu-collapsed">關於小寶</span>
  78. </div>
  79. </a>
  80. <a href="{{ url_for('blogs.blog_list') }}" class="bg-dark list-group-item list-group-item-action">
  81. <div class="d-flex w-100 justify-content-start align-items-center">
  82. <i class="far fa-newspaper mr-3"></i>
  83. <span class="menu-collapsed">設計專欄</span>
  84. </div>
  85. </a>
  86. <!-- Separator with title -->
  87. <a href="#" data-toggle="sidebar-colapse" class="bg-dark list-group-item list-group-item-action d-flex align-items-center">
  88. <div class="d-flex w-100 justify-content-start align-items-center">
  89. <span id="collapse-icon" class="fa fa-2x mr-3"></span>
  90. <span id="collapse-text" class="menu-collapsed">Collapse</span>
  91. </div>
  92. </a>
  93. </ul><!-- List Group END-->
  94. </nav><!-- sidebar-container END -->
  95. <!-- Modal -->
  96. <div>
  97. {% with messages = get_flashed_messages(with_categories=true) %}
  98. {% if messages %}
  99. {% for category, message in messages %}
  100. <div class="alert alert-{{ category }}" role="alert">
  101. {{ message }}
  102. <button type="button" class="close modal__close" data-dismiss="alert" aria-label="Close">
  103. <span class="modal__close__back">
  104. <span aria-hidden="true">&times;</span>
  105. </span>
  106. </button>
  107. </div>
  108. {% endfor %}
  109. {% endif %}
  110. {% endwith %}
  111. </div>
  112. <!-- Main -->
  113. <div class="main my-4 ml-auto col-10">
  114. {% block main %}{% endblock %}
  115. </div>
  116. <!-- toTop Button -->
  117. <div class='toTop'>
  118. <i class='fas fa-arrow-up'></i>
  119. </div>
  120. </div><!-- body-row END -->
  121. </div><!-- container -->
  122. </div>
  123. <!-- partial -->
  124. <script src='https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js'></script>
  125. <script src='https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js'></script>
  126. <script type="text/javascript" src="{{url_for('static', filename='js/sidebar.js')}}"></script>
  127. </body>
  128. </html>