index.html 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6. <meta name="renderer" content="webkit">
  7. <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
  8. <script type="text/javascript" src="/static/pixi.min.js"></script>
  9. <script type="text/javascript" src="/static/main.js"></script>
  10. <link rel="stylesheet" href="/static/font.css">
  11. <title>G.R.D主页</title>
  12. <style>
  13. canvas {
  14. display: block;
  15. position: fixed;
  16. top: 0;
  17. left: 0;
  18. z-index: -2;
  19. pointer-events: none
  20. }
  21. a:hover,
  22. a:link,
  23. a:visited,
  24. a:active,
  25. a:focus {
  26. text-decoration: none;
  27. }
  28. button,
  29. input,
  30. input:focus {
  31. outline: none;
  32. border: none;
  33. }
  34. a,
  35. button,
  36. input {
  37. -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  38. }
  39. *{
  40. -webkit-user-select: none; /* Safari */
  41. -moz-user-select: none; /* Firefox */
  42. -ms-user-select: none; /* Internet Explorer/Edge */
  43. user-select: none; /* 其他浏览器 */
  44. }
  45. * {
  46. box-sizing: border-box;
  47. -webkit-text-size-adjust: none
  48. }
  49. img {
  50. border: 0;
  51. vertical-align: middle
  52. }
  53. body {
  54. margin: 0;
  55. padding: 0;
  56. border: 0;
  57. display: flex;
  58. align-items: center;
  59. justify-content: center;
  60. height: 100vh;
  61. width: 100vw;
  62. background: radial-gradient(#619bff, #e0e0e3);
  63. }
  64. .main {
  65. width: 35%;
  66. display: flex;
  67. flex-direction: column;
  68. align-items: center;
  69. }
  70. @media screen and (max-width:1024px) {
  71. .main {
  72. width: 45%;
  73. }
  74. }
  75. @media screen and (max-width:768px) {
  76. .main {
  77. width: 50%;
  78. }
  79. }
  80. @media screen and (max-width:540px) {
  81. .main {
  82. width: 60% !important;
  83. }
  84. }
  85. @media screen and (max-width:480px) {
  86. .main {
  87. width: 90% !important;
  88. }
  89. }
  90. @media screen and (max-width:360px) {
  91. .main {
  92. width: 100% !important;
  93. }
  94. }
  95. img {
  96. border: 3px solid rgba(255, 255, 255, 0.8);
  97. border-radius: 50%;
  98. box-shadow:0 0px 20px 5px #e6e8ea;
  99. transition: .4s ease-in-out;
  100. }
  101. h1 {
  102. font-family: 'Noto Serif SC', serif;
  103. color: #fff;
  104. font-size: 1.8rem;
  105. line-height: 2em;
  106. font-weight: 800;
  107. }
  108. h2 {
  109. margin: 0;
  110. color: #ffffffa3;
  111. padding-bottom: 45px;
  112. font-size: 18px;
  113. }
  114. ul {
  115. margin: 0;
  116. padding: 0;
  117. position: relative;
  118. list-style-type: none;
  119. display: -ms-inline-flexbox;
  120. display: inline-flex;
  121. width: 100%;
  122. -ms-flex-pack: distribute;
  123. justify-content: space-around;
  124. border-bottom: 2px solid hsla(0, 0%, 100%, .1);
  125. border-top: 2px solid hsla(0, 0%, 100%, .1);
  126. height: 80px;
  127. display: flex;
  128. align-items: center;
  129. justify-content: center;
  130. max-width: 85%
  131. }
  132. li {
  133. display: flex;
  134. transition: all .2s;
  135. width: 100%;
  136. border-left: 1px solid hsla(0, 0%, 100%, .1);
  137. border-right: 1px solid hsla(0, 0%, 100%, .1);
  138. height: 40px;
  139. display: flex;
  140. align-items: center;
  141. justify-content: center
  142. }
  143. a {
  144. font-size: 1.2rem;
  145. color: #ffffff;
  146. transition: all .2s;
  147. cursor: pointer;
  148. }
  149. a:hover {
  150. color: #fff !important;
  151. text-shadow:0 0px 20px #ffffff;
  152. }
  153. </style>
  154. </head>
  155. <body>
  156. <div class="main">
  157. <img src="https://q1.qlogo.cn/g?b=qq&nk=784501402&s=5" width="130" height="130" alt="avatar">
  158. <h1>G.R.D主页</h1>
  159. <h2>欢迎</h2>
  160. <ul>
  161. <li><a href="https://grd.net.cn"><span>按钮1</span></a></li>
  162. <li><a href="https://grd.net.cn"><span>按钮2</span></a></li>
  163. <li><a href="https://grd.net.cn"><span>按钮3</span></a></li>
  164. <li><a href="https://grd.net.cn"><span>按钮4</span></a></li>
  165. </ul>
  166. </div>
  167. </body>
  168. <script>
  169. //按键触发
  170. document.onkeydown = function(){
  171. //禁止 ctrl+u
  172. if (event.ctrlKey && window.event.keyCode==85){
  173. return false;
  174. }
  175. //禁止 F12
  176. if (window.event && window.event.keyCode == 123) {
  177. event.keyCode = 0;
  178. event.returnValue = false;
  179. }
  180. }
  181. //如果还要禁止其他键的话搜 window.event.keyCode的对照表
  182. //网站禁止右键
  183. document.body.oncontextmenu = function() {
  184. self.event.returnValue=false
  185. };
  186. // 禁用右键菜单、复制、选择
  187. $(document).bind("contextmenu copy selectstart", function() {
  188. return false;
  189. });
  190. </script>
  191. </html>