base.html 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237
  1. {% load static %}
  2. <!DOCTYPE html>
  3. <html>
  4. <head>
  5. <meta charset="utf-8"/>
  6. <meta name="baidu-site-verification" content="codeva-y7kl5gdyM4"/>
  7. <meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible"/>
  8. <meta
  9. name="viewport"
  10. content="width=device-width, initial-scale=1, maximum-scale=2, user-scalable=no"
  11. />
  12. <meta
  13. name="description"
  14. content="CyberSicko.net"
  15. />
  16. <link rel="shortcut icon" href="{% static 'favicon.ico' %}">
  17. <meta name="keywords" content="Semantic-UI, Theme, Design, Template"/>
  18. <meta name="author" content="CyberSicko"/>
  19. <meta name="theme-color" content="#ffffff"/>
  20. <title>CyberSicko.NET</title>
  21. <link rel="preconnect" href="https://fonts.googleapis.com">
  22. <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
  23. <link href="https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@200;300;400;500;600;700;900&display=swap"
  24. rel="stylesheet">
  25. <link
  26. rel="stylesheet"
  27. href="{% static 'semantic.min.css' %}"
  28. type="text/css"
  29. />
  30. <link
  31. rel="stylesheet"
  32. href="{% static 'photoswipe/photoswipe.css' %}"
  33. type="text/css"
  34. />
  35. {% if is_login %}
  36. <link href="https://unpkg.com/@wangeditor/editor@latest/dist/css/style.css" rel="stylesheet">
  37. {% endif %}
  38. <style type="text/css">
  39. p {
  40. font-size: 1.2em;
  41. }
  42. body {
  43. padding-top: 54px;
  44. -webkit-font-smoothing: antialiased;
  45. -moz-font-smoothing: grayscale;
  46. }
  47. .ui.borderless.menu {
  48. background-color: #f8f8f8;
  49. {#box-shadow: none;#} flex-wrap: wrap;
  50. border: none;
  51. padding-left: 0;
  52. padding-right: 0;
  53. }
  54. .ui.borderless.menu .header.item {
  55. font-size: 18px;
  56. font-weight: 400;
  57. }
  58. .ui.mobile.only.grid .ui.menu .ui.vertical.menu {
  59. display: none;
  60. }
  61. .ui.mobile.only.grid .ui.vertical.menu .dropdown.icon {
  62. float: unset;
  63. }
  64. .ui.mobile.only.grid .ui.vertical.menu .dropdown.icon:before {
  65. content: "\f0d7";
  66. }
  67. .ui.mobile.only.grid .ui.vertical.menu .ui.dropdown.item .menu {
  68. position: static;
  69. width: 100%;
  70. background-color: unset;
  71. border: none;
  72. box-shadow: none;
  73. }
  74. .ui.mobile.only.grid .ui.vertical.menu .ui.dropdown.item .menu {
  75. margin-top: 6px;
  76. }
  77. .ui.container > .ui.message {
  78. background-color: rga(238, 238, 238);
  79. box-shadow: none;
  80. padding: 5rem 4rem;
  81. margin-top: 1rem;
  82. }
  83. .ui.message h1.ui.header {
  84. font-size: 4.5rem;
  85. }
  86. .ui.message p.lead {
  87. font-size: 1.3rem;
  88. color: #333333;
  89. line-height: 1.4;
  90. font-weight: 300;
  91. }
  92. p > a > img {
  93. width: 100px;
  94. height: 100px;
  95. }
  96. {% block css %}
  97. {% endblock %}
  98. </style>
  99. </head>
  100. <body id="root">
  101. {% if is_login %}
  102. {% csrf_token %}
  103. {% endif %}
  104. <div class="ui tablet computer only padded grid">
  105. <div class="ui top fixed borderless fluid huge menu">
  106. <div class="ui container">
  107. <a href="/" class="header item"><img style="width: 7em;" src="{% static '/img.png' %}"/></a>
  108. <a href="{% url 'index' %}" class="{% if current_category == None %}
  109. active
  110. {% else %}
  111. {% endif %} item">主页</a>
  112. {% for item in category %}
  113. {# <li class="category_li"><a href="/category/{{ item.name }}?page=1">{{ item.name }}</a></li>#}
  114. <a class="{% if current_category != None and current_category == item.name %}
  115. active
  116. {% else %}
  117. {% endif %} item" href="/category/{{ item.name }}?page=1">{{ item.name }}</a>
  118. {% endfor %}
  119. <div class="right menu">
  120. <a href="http://git.cybersicko.net" class="item"> <i class="icon gitlab "></i>
  121. Git Repository</a>
  122. <a href="/login" class="item"> <i class="icon share square"></i>
  123. Sign in</a>
  124. </div>
  125. </div>
  126. </div>
  127. </div>
  128. <div class="ui mobile only padded grid">
  129. <div class="ui top fixed borderless huge fluid menu">
  130. <a href="/" class="header item"><img style="width: 7em;" src="{% static '/img.png' %}"/></a>
  131. <div class="right menu">
  132. <div class="item">
  133. <button class="ui icon toggle basic button">
  134. <i class="content icon"></i>
  135. </button>
  136. </div>
  137. </div>
  138. <div class="ui vertical borderless fluid menu">
  139. <a href="{% url 'index' %}" class="{% if current_category == None %}
  140. active
  141. {% else %}
  142. {% endif %} item">主页</a>
  143. {% for item in category %}
  144. {# <li class="category_li"><a href="/category/{{ item.name }}?page=1">{{ item.name }}</a></li>#}
  145. <a class="{% if current_category != None and current_category == item.name %}
  146. active
  147. {% else %}
  148. {% endif %} item" href="/category/{{ item.name }}?page=1">{{ item.name }}</a>
  149. {% endfor %}
  150. <a href="/login" class="item"> <i class="icon share square"></i>
  151. Sign in</a>
  152. </div>
  153. </div>
  154. </div>
  155. {% block container %}
  156. {% endblock %}
  157. <footer style="margin-top: 50px" class="ui secondary segment">
  158. <div class="ui two column stackable grid">
  159. <div class="ten wide column">
  160. <img style="width: 8rem" src="{% static '/img.png' %}">
  161. <p> © 2023 - 2023 cybersicko.net - All Rights Reserved.</p>
  162. </div>
  163. <div class="six wide column">
  164. <div class="ui left aligned container" style="margin-top:10px">
  165. <a target="_blank" href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=50019002503732"
  166. style="display:inline-block;text-decoration:none;height:20px;line-height:20px;"><img
  167. src="{% static '/备案图标.png' %}" style="float:left;"/>
  168. <p style="float:left;height:20px;line-height:20px;margin: 0px 0px 0px 5px; color:#939393;"> 渝公网安备
  169. 50019002503732号</p></a>
  170. <a rel="nofollow"
  171. href="http://beian.miit.gov.cn/publish/query/indexFirst.action"
  172. target="_blank"><p>皖ICP备2023011943号</p></a>
  173. </div>
  174. </div>
  175. </div>
  176. </footer>
  177. <script type="application/javascript" src="{% static 'js/jquery.min.js' %}"></script>
  178. <script type="application/javascript" src="{% static 'semantic.js' %}"></script>
  179. <script type="application/javascript" src="{% static 'photoswipe/photoswipe.umd.min.js' %}"></script>
  180. <script type="application/javascript" src="{% static 'photoswipe/photoswipe-lightbox.umd.min.js' %}"></script>
  181. <script>
  182. $('#search')
  183. .search({
  184. type: 'category',
  185. minCharacters: 3,
  186. apiSettings: {
  187. url: '/search?keywords={query}'
  188. }
  189. })
  190. var lightbox = new PhotoSwipeLightbox({
  191. gallery: '.extra.images',
  192. children: 'a',
  193. // dynamic import is not supported in UMD version
  194. pswpModule: PhotoSwipe
  195. });
  196. lightbox.init();
  197. $(document).ready(function () {
  198. $(".ui.toggle.button").click(function () {
  199. $(".mobile.only.grid .ui.vertical.menu").toggle(100);
  200. });
  201. $(".ui.dropdown").dropdown();
  202. });
  203. </script>
  204. {% block js %}
  205. {% endblock %}
  206. <script>
  207. </script>
  208. </body>
  209. </html>