about.html 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217
  1. <div class="box">
  2. <div class="newsview">
  3. <h2>About my blog</h2>
  4. <div class="news_infos">
  5. <p>本博客属个人所有, 不涉及商业目的.遵守中华人民共和国法律法规、中华民族基本道德和基本网络道德规范, 尊重有节制的言论自由和意识形态自由, 反对激进、破坏、低俗、广告、投机等不负责任的言行.
  6. <br>
  7. 所有转载的文撰写页面章、图片仅用于说明性目的, 被要求或认为适当时, 将标注署名与来源. 避免转载有明确"不予转载"声明的作品. 若不愿某一作品被转用, 请及时通知本人.
  8. 对于无版权或自由版权作品, 本博客有权进行修改和传播, 一旦涉及实质性修改, 本博客将对修改后的作品享有相当的版权.二次转载者请再次确认原作者所给予的权力范围.
  9. <br>
  10. <!-- 本博客所有原创作品, 包括文字、资料、图片、网页格式, 转载时请标注作者与来源. 非经允许, 不得用于赢利目的.<br> -->
  11. </p>
  12. <br>
  13. <h2>About This Site</h2>
  14. &nbsp;
  15. <p>域 名:{:env('domain.domain_host')} 创建于2018年2月17日&nbsp;</p>
  16. <br>
  17. <p>备案号:{:env('domain.icp')}</p>
  18. <br>
  19. <p>
  20. <br>后端框架: ThinkPHP6.0 官网:http://www.thinkphp.cn/
  21. <br>前端模板: 来源杨青青个人博客. https://www.yangqq.com/download/div/881.html.
  22. </p>
  23. </div>
  24. </div>
  25. <style>
  26. .comment-respond {
  27. background: white;
  28. box-shadow: 0 0 2px 0 rgba(58, 58, 58, 0.2);
  29. padding: 1.5em 4.6875375%;
  30. }
  31. .guestbook {
  32. width: 100%;
  33. float: left;
  34. padding-bottom: 3em;
  35. }
  36. .guestbook h2 span {
  37. font-size: 12px;
  38. }
  39. @media only screen and (max-width: 767px) {
  40. .comment-respond {
  41. background: white;
  42. box-shadow: 0 0 2px 0 rgba(58, 58, 58, 0.2);
  43. padding: 1.5em 7.50006%;
  44. }
  45. }
  46. h3 {
  47. font-size: 1.125em;
  48. /* 18px / 16px */
  49. line-height: 1.333;
  50. /* 24px */
  51. }
  52. .comment-respond p {
  53. margin: 1.125em 0;
  54. }
  55. .comment-respond p.comment-notes {
  56. margin: 1.5em 0;
  57. }
  58. .comment-respond label {
  59. display: block;
  60. margin-bottom: 6px;
  61. font-weight: 700;
  62. font-size: 0.875em;
  63. line-height: 1.715;
  64. }
  65. input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="file"]):not([type="image"]),
  66. textarea {
  67. width: 100%;
  68. font-family: "Roboto", "Open Sans", sans-serif;
  69. font-weight: 400;
  70. padding: 10px 12px;
  71. max-width: 27.75em;
  72. min-height: 26px;
  73. background: #F7F7F7;
  74. color: #333333;
  75. border: solid 1px #D4D4D4;
  76. border-radius: 0;
  77. -webkit-appearance: none;
  78. -webkit-transition: background 0.2s;
  79. transition: background 0.2s;
  80. }
  81. textarea {
  82. max-width: 41.625em;
  83. overflow: auto;
  84. }
  85. .comment-respond p.form-submit {
  86. margin-top: 2.25em;
  87. }
  88. input[type="submit"] {
  89. font-size: 0.75em;
  90. line-height: 1.5;
  91. }
  92. input[type="submit"] {
  93. font-family: "Roboto", "Open Sans", sans-serif;
  94. font-weight: 400;
  95. padding: 10px 12px;
  96. color: #333333;
  97. border: solid 1px #333333;
  98. background: none;
  99. border-radius: 0;
  100. -webkit-appearance: none;
  101. -webkit-transition: all 0.2s;
  102. transition: all 0.2s;
  103. }
  104. .pager {
  105. margin-left: 10%;
  106. width: 60%;
  107. background: red;
  108. }
  109. ul.pager li:first-child {
  110. float: left;
  111. }
  112. ul.pager li:last-child {
  113. float: left;
  114. margin-left: 30%;
  115. }
  116. </style>
  117. <div class="newsview">
  118. <h2>留言</h2>
  119. <div class="news_infos">
  120. <p>有什么想告诉我说的, 就在这吧ヾ(✿゚▽゚)ノ</p>
  121. </div>
  122. </div>
  123. <!-- #respond -->
  124. <div id="respond" class="comment-respond">
  125. <h3 id="reply-title" class="comment-reply-title">Leave a Reply</h3>
  126. <form action="{:url('/index/save_guest_book')}" method="post" id="comment-form" class="comment-form" novalidate="">
  127. <p class="comment-notes"><span id="email-notes">我会妥善保存你的邮箱哒(`・ω・´).</span> 必填项已标记<span class="required">*</span>
  128. </p>
  129. <p class="comment-form-comment">
  130. <label for="comment">Comment*</label>
  131. <textarea required="" id="content" name="content" cols="45" rows="8" aria-required="true"></textarea>
  132. </p>
  133. <p class="comment-form-author">
  134. <label for="author">Name*</label>
  135. <input id="name" name="name" type="text" placeholder="Jane Doe" value="" size="26">
  136. </p>
  137. <p class="comment-form-email">
  138. <label for="contact">contact*</label>
  139. <input id="contact" name="contact" type="text" placeholder="name@email.com or 13355556666" value="" size="26">
  140. </p>
  141. <p class="comment-form-url">
  142. <label for="url">url</label>
  143. <input id="url" name="url" type="text" placeholder="https://www.google.com" value="" size="26">
  144. </p>
  145. <p class="form-submit">
  146. <button type="button" id="submit" class="submit">Post Comment</button>
  147. <!-- <input type="hidden" name="comment_post_ID" value="23" id="comment_post_ID">
  148. <input type="hidden" name="comment_parent" id="comment_parent" value="0"> -->
  149. </p>
  150. </form>
  151. <div>
  152. <p class="msg" style="display: none;color: orangered;">提交成功</p>
  153. </div>
  154. </div><!-- #respond end-->
  155. <div class="blank"></div>
  156. <div class="guestbook">
  157. {php}
  158. $list = \app\model\GuestBook::order('id desc')->paginate();
  159. {/php}
  160. {foreach $list as $val}
  161. <div class="bloglist">
  162. <div>
  163. <h2>{$val.name} <span>{$val.time|date="Y/m/d"}</span></h2>
  164. </div>
  165. <p>{$val.content}</p>
  166. </div>
  167. {/foreach}
  168. {$list->render()}
  169. </div>
  170. <script>
  171. $("#submit").click(function () {
  172. $.post('/save_guest_book', {
  173. 'name': $("#name").val(),
  174. 'content': $("#content").val(),
  175. 'contact': $("#contact").val(),
  176. 'url': $("#url").val(),
  177. }, function (res) {
  178. console.log(res);
  179. if (res.code == 0) {
  180. $(".msg").show();
  181. var html = '<div class="bloglist"><div><h2>' + res.data.name + ' <span>' + res.data.datetime + '</span></h2>';
  182. html += '</div><p>' + res.data.content + '</p></div>';
  183. $(".guestbook").prepend(html);
  184. setTimeout(() => {
  185. $(".msg").hide();
  186. }, 1000);
  187. $("#comment-form")[0].reset();
  188. } else {
  189. $(".msg").html(res.msg);
  190. $(".msg").show();
  191. setTimeout(() => {
  192. $(".msg").hide();
  193. }, 1000);
  194. $(".msg").html('提交成功');
  195. }
  196. }, 'json');
  197. })
  198. </script>
  199. </div>