base.html 7.7 KB

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