源创宝库吧 新一代精品资源网 在线工具箱 此位置招租 SanS三石导航页 ⚡免费影视资源库丨极速无广告⚡ 此位置招租 此位置招租 此位置招租 此位置招租 此位置招租 ⚡免费影视资源库丨极速无广告⚡ 此位置招租 此位置招租 此位置招租 此位置招租 此位置招租 ⚡免费影视资源库丨极速无广告⚡ 此位置招租 此位置招租 此位置招租 此位置招租 此位置招租 ⚡免费影视资源库丨极速无广告⚡ 此位置招租
返回列表 发布新帖
查看: 50|回复: 1

[模块插件] 迷路与孤独意境风格的404页面模板HTML源码

  在线 
灌水成绩
127
203
806
主题
回帖
积分

等级头衔
UID : 83
等级 : 版主

积分成就
威望 : 93 点
贡献 : 378 点
蛋壳 : 5714 枚
在线时间 : 1311 小时
注册时间 : 2024-4-17
最后登录 : 2024-9-17

荣誉勋章
发表于 2024-8-4 10:31:26 | 查看全部 |阅读模式 来自: 中国–黑龙江–七台河

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?立即注册

×
迷路与孤独意境风格的404页面模板HTML源码

源码介绍

迷路与孤独意境404页面模板HTML源码,黑色的夜空下寂静的小路上,一个闪烁的路灯,一个空无一人的长椅村托处孤独的意境,仿佛迷路了一般,左边显示404表达这个页面的作用,整体采用二次元画风,简约唯美,喜欢的小伙伴可以拿去使用,源码是HTML+CSS,记事本里编辑修改源码保存即可,该源码为单页源码,内容都在一起,只要修改好放到空白的404.html即可,鼠标双击html可以在本地查看效果,也可以上传到服务器里面作为自己的网站错误页
效果截图

  1. <!DOCTYPE html>
  2. <html>
  3.   <head>
  4.     <meta charset="utf-8">
  5.     <title>Lost and Alone 404</title>
  6.     <style>@import url("https://fonts.googleapis.com/css?family=Fira+Sans");
  7. /*Variables*/
  8. .left-section .inner-content {
  9.   position: absolute;
  10.   top: 50%;
  11.   transform: translateY(-50%);
  12. }
  13. * {
  14.   box-sizing: border-box;
  15. }
  16. html, body {
  17.   margin: 0;
  18.   padding: 0;
  19. }
  20. body {
  21.   font-family: "Fira Sans", sans-serif;
  22.   color: #f5f6fa;
  23. }
  24. .background {
  25.   position: absolute;
  26.   top: 0;
  27.   left: 0;
  28.   width: 100%;
  29.   height: 100%;
  30.   background: linear-gradient(#0C0E10, #446182);
  31. }
  32. .background .ground {
  33.   position: absolute;
  34.   bottom: 0;
  35.   width: 100%;
  36.   height: 25vh;
  37.   background: #0C0E10;
  38. }
  39. @media (max-width: 770px) {
  40.   .background .ground {
  41.     height: 0vh;
  42.   }
  43. }
  44. .container {
  45.   position: relative;
  46.   margin: 0 auto;
  47.   width: 85%;
  48.   height: 100vh;
  49.   padding-bottom: 25vh;
  50.   display: flex;
  51.   flex-direction: row;
  52.   justify-content: space-around;
  53. }
  54. @media (max-width: 770px) {
  55.   .container {
  56.     flex-direction: column;
  57.     padding-bottom: 0vh;
  58.   }
  59. }
  60. .left-section, .right-section {
  61.   position: relative;
  62. }
  63. .left-section {
  64.   width: 40%;
  65. }
  66. @media (max-width: 770px) {
  67.   .left-section {
  68.     width: 100%;
  69.     height: 40%;
  70.     position: absolute;
  71.     top: 0;
  72.   }
  73. }
  74. @media (max-width: 770px) {
  75.   .left-section .inner-content {
  76.     position: relative;
  77.     padding: 1rem 0;
  78.   }
  79. }
  80. .heading {
  81.   text-align: center;
  82.   font-size: 9em;
  83.   line-height: 1.3em;
  84.   margin: 2rem 0 0.5rem 0;
  85.   padding: 0;
  86.   text-shadow: 0 0 1rem #fefefe;
  87. }
  88. @media (max-width: 770px) {
  89.   .heading {
  90.     font-size: 7em;
  91.     line-height: 1.15;
  92.     margin: 0;
  93.   }
  94. }
  95. .subheading {
  96.   text-align: center;
  97.   max-width: 480px;
  98.   font-size: 1.5em;
  99.   line-height: 1.15em;
  100.   padding: 0 1rem;
  101.   margin: 0 auto;
  102. }
  103. @media (max-width: 770px) {
  104.   .subheading {
  105.     font-size: 1.3em;
  106.     line-height: 1.15;
  107.     max-width: 100%;
  108.   }
  109. }
  110. .right-section {
  111.   width: 50%;
  112. }
  113. @media (max-width: 770px) {
  114.   .right-section {
  115.     width: 100%;
  116.     height: 60%;
  117.     position: absolute;
  118.     bottom: 0;
  119.   }
  120. }
  121. .svgimg {
  122.   position: absolute;
  123.   bottom: 0;
  124.   padding-top: 10vh;
  125.   padding-left: 1vh;
  126.   max-width: 100%;
  127.   max-height: 100%;
  128. }
  129. @media (max-width: 770px) {
  130.   .svgimg {
  131.     padding: 0;
  132.   }
  133. }
  134. .svgimg .bench-legs {
  135.   fill: #0C0E10;
  136. }
  137. .svgimg .top-bench, .svgimg .bottom-bench {
  138.   stroke: #0C0E10;
  139.   stroke-width: 1px;
  140.   fill: #5B3E2B;
  141. }
  142. .svgimg .bottom-bench path:nth-child(1) {
  143.   fill: #432d20;
  144. }
  145. .svgimg .lamp-details {
  146.   fill: #202425;
  147. }
  148. .svgimg .lamp-accent {
  149.   fill: #2c3133;
  150. }
  151. .svgimg .lamp-bottom {
  152.   fill: linear-gradient(#202425, #0C0E10);
  153. }
  154. .svgimg .lamp-light {
  155.   fill: #EFEFEF;
  156. }
  157. @keyframes glow {
  158.   0% {
  159.     text-shadow: 0 0 1rem #fefefe;
  160.   }
  161.   50% {
  162.     text-shadow: 0 0 1.85rem #ededed;
  163.   }
  164.   100% {
  165.     text-shadow: 0 0 1rem #fefefe;
  166.   }
  167. }</style>
  168.   </head>
  169.   <body>
  170.     <div class="background">
  171.       <div class="ground"></div>
  172.     </div>
  173.     <div class="container">
  174.       <div class="left-section">
  175.         <div class="inner-content">
  176.           <h1 class="heading">404</h1>
  177.           <p class="subheading">Looks like the page you were looking for is no longer here.</p>
  178.         </div>
  179.       </div>
  180.       <div class="right-section">
  181.         <svg class="svgimg" xmlns="http://www.w3.org/2000/svg" viewBox="51.5 -15.288 385 505.565">
  182.             <g class="bench-legs">
  183.               <path d="M202.778,391.666h11.111v98.611h-11.111V391.666z M370.833,390.277h11.111v100h-11.111V390.277z M183.333,456.944h11.111
  184.               v33.333h-11.111V456.944z M393.056,456.944h11.111v33.333h-11.111V456.944z" />
  185.             </g>
  186.             <g class="top-bench">
  187.               <path d="M396.527,397.917c0,1.534-1.243,2.777-2.777,2.777H190.972c-1.534,0-2.778-1.243-2.778-2.777v-8.333
  188.               c0-1.535,1.244-2.778,2.778-2.778H393.75c1.534,0,2.777,1.243,2.777,2.778V397.917z M400.694,414.583
  189.               c0,1.534-1.243,2.778-2.777,2.778H188.194c-1.534,0-2.778-1.244-2.778-2.778v-8.333c0-1.534,1.244-2.777,2.778-2.777h209.723
  190.               c1.534,0,2.777,1.243,2.777,2.777V414.583z M403.473,431.25c0,1.534-1.244,2.777-2.778,2.777H184.028
  191.               c-1.534,0-2.778-1.243-2.778-2.777v-8.333c0-1.534,1.244-2.778,2.778-2.778h216.667c1.534,0,2.778,1.244,2.778,2.778V431.25z"
  192.               />
  193.             </g>
  194.             <g class="bottom-bench">
  195.               <path d="M417.361,459.027c0,0.769-1.244,1.39-2.778,1.39H170.139c-1.533,0-2.777-0.621-2.777-1.39v-4.86
  196.               c0-0.769,1.244-0.694,2.777-0.694h244.444c1.534,0,2.778-0.074,2.778,0.694V459.027z" />
  197.               <path d="M185.417,443.75H400c0,0,18.143,9.721,17.361,10.417l-250-0.696C167.303,451.65,185.417,443.75,185.417,443.75z" />
  198.             </g>
  199.             <g id="lamp">
  200.               <path class="lamp-details" d="M125.694,421.997c0,1.257-0.73,3.697-1.633,3.697H113.44c-0.903,0-1.633-2.44-1.633-3.697V84.917
  201.               c0-1.257,0.73-2.278,1.633-2.278h10.621c0.903,0,1.633,1.02,1.633,2.278V421.997z"
  202.               />
  203.               <path class="lamp-accent" d="M128.472,93.75c0,1.534-1.244,2.778-2.778,2.778h-13.889c-1.534,0-2.778-1.244-2.778-2.778V79.861
  204.               c0-1.534,1.244-2.778,2.778-2.778h13.889c1.534,0,2.778,1.244,2.778,2.778V93.75z" />
  205.               
  206.               <circle class="lamp-light" cx="119.676" cy="44.22" r="40.51" />
  207.               <path class="lamp-details" d="M149.306,71.528c0,3.242-13.37,13.889-29.861,13.889S89.583,75.232,89.583,71.528c0-4.166,13.369-13.889,29.861-13.889
  208.               S149.306,67.362,149.306,71.528z"/>
  209.               <radialGradient class="light-gradient" id="SVGID_1_" cx="119.676" cy="44.22" r="65" gradientUnits="userSpaceOnUse">
  210.                 <stop  offset="0%" style="stop-color:#FFFFFF; stop-opacity: 1"/>
  211.                 <stop  offset="50%" style="stop-color:#EDEDED; stop-opacity: 0.5">
  212.                   <animate attributeName="stop-opacity" values="0.0; 0.5; 0.0" dur="5000ms" repeatCount="indefinite"></animate>
  213.                 </stop>
  214.                 <stop  offset="100%" style="stop-color:#EDEDED; stop-opacity: 0"/>
  215.               </radialGradient>
  216.               <circle class="lamp-light__glow" fill="url(#SVGID_1_)" cx="119.676" cy="44.22" r="65"/>
  217.               <path class="lamp-bottom" d="M135.417,487.781c0,1.378-1.244,2.496-2.778,2.496H106.25c-1.534,0-2.778-1.118-2.778-2.496v-74.869
  218.               c0-1.378,1.244-2.495,2.778-2.495h26.389c1.534,0,2.778,1.117,2.778,2.495V487.781z" />
  219.             </g>
  220.           </svg>
  221.       </div>
  222.     </div>

  223.   </body>
  224. </html>
复制代码
生无可恋
  在线 
灌水成绩
127
203
806
主题
回帖
积分

等级头衔
UID : 83
等级 : 版主

积分成就
威望 : 93 点
贡献 : 378 点
蛋壳 : 5714 枚
在线时间 : 1311 小时
注册时间 : 2024-4-17
最后登录 : 2024-9-17

荣誉勋章
 楼主| 发表于 2024-8-4 10:32:03 | 查看全部 来自: 中国–黑龙江–七台河
🌈 无论生活给你什么,都是最好的安排。 🌈
—— 来自:荷包蛋部落(HBD0.CN)已读乱回
新帖通知群(钉钉群):点击查看
荷包蛋部落(QQ群):荷包蛋部落 - HBD0.CN
💥荷包蛋联盟-免费的自助广告-为广大用户提供宣传服务!💯
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

1楼
2楼
投诉/建议联系

8641340@qq.com

欢迎各位朋友加入本社区,
共同维护良好的社区氛围
  • QQ用户交流群
  • 钉钉新帖推送群
Powered by Discuz! X3.5 Licensed  Copyright © 2001-2024 荷包蛋部落 版权所有 All Rights Reserved. 鲁ICP备20023396号-6
关灯 在本版发帖
加入钉钉新帖推送群
QQ客服返回顶部
快速回复 返回顶部 返回列表