base.html 7.8 KB

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