NotFound.vue 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462
  1. <style lang="scss" scoped>
  2. .notfound {
  3. margin: 0;
  4. // min-height: 73vh;
  5. height: 100%;
  6. overflow: hidden;
  7. font-family: "Libre Franklin", sans-serif;
  8. font-size: 62.5%;
  9. background-image: linear-gradient(0deg, #e8f4f8, lightblue);
  10. .error {
  11. position: absolute;
  12. top: 50%;
  13. left: 50%;
  14. transform: translate(-50%, -50%);
  15. display: flex;
  16. flex-direction: column;
  17. align-items: center;
  18. white-space: nowrap;
  19. text-transform: uppercase;
  20. font-size: 2rem;
  21. font-weight: 900;
  22. color: #ffffff;
  23. text-shadow: 10px 10px 50px #e6e6e6;
  24. opacity: 0.8;
  25. user-select: none;
  26. span {
  27. display: block;
  28. &:nth-child(2) {
  29. font-size: 10rem;
  30. }
  31. }
  32. }
  33. .sun {
  34. position: absolute;
  35. top: 4em;
  36. left: 4em;
  37. width: 100px;
  38. height: 100px;
  39. border-radius: 50%;
  40. background-image: radial-gradient(circle at 50%, #ffffff 50%, #f5de19);
  41. box-shadow: 0px 0px 40px #f5de19, inset 0px 0px 100px #f5de19;
  42. animation: sun 5s linear infinite;
  43. }
  44. .clouds {
  45. position: absolute;
  46. right: 0;
  47. bottom: 35vh;
  48. left: 0;
  49. opacity: 0.5;
  50. div {
  51. position: relative;
  52. left: -30%;
  53. width: 220px;
  54. height: 80px;
  55. border-radius: 50%;
  56. background-color: #ffffff;
  57. background-image: radial-gradient(ellipse at 50%, transparent, #fcfcfc, #f7f7f7);
  58. filter: blur(3px);
  59. animation: clouds 60s linear infinite, cloud 8s linear infinite;
  60. &::before, &::after {
  61. position: absolute;
  62. content: "";
  63. width: inherit;
  64. height: inherit;
  65. border-radius: 50%;
  66. background-color: #f2f2f2;
  67. background-image: radial-gradient(ellipse at 50%, transparent, #f2f2f2, #f7f7f7);
  68. filter: blur(3px);
  69. animation: cloud 3s linear infinite;
  70. }
  71. &::after {
  72. background-color: #e6e6e6;
  73. }
  74. &:nth-child(2) {
  75. animation-delay: 5s;
  76. }
  77. &:nth-child(3) {
  78. animation-duration: 40s;
  79. }
  80. }
  81. }
  82. .birds {
  83. position: absolute;
  84. right: -10%;
  85. top: 30px;
  86. width: 10px;
  87. height: 10px;
  88. background-color: #070000;
  89. clip-path: polygon(70% 59%, 100% 54%, 64% 68%, 48% 83%, 81% 86%, 55% 90%, 0 92%, 19% 76%, 0 60%, 33% 71%);
  90. animation: birds 30s linear infinite, fly 1s linear infinite;
  91. }
  92. .sea {
  93. position: absolute;
  94. right: 0;
  95. bottom: 0;
  96. left: 0;
  97. z-index: -1;
  98. height: 25vh;
  99. background-color: lightblue;
  100. }
  101. .fish {
  102. position: relative;
  103. span {
  104. position: relative;
  105. top: 10%;
  106. left: 110%;
  107. display: block;
  108. width: 50px;
  109. height: 16px;
  110. background-color: #3a9fc0;
  111. background-image: linear-gradient(to top, #92cbde, #3a9fc0);
  112. border-radius: 52% 48% 51% 49% / 51% 56% 44% 49%;
  113. animation: fish 15s linear infinite;
  114. &::before, &::after {
  115. position: absolute;
  116. content: "";
  117. }
  118. &::before {
  119. left: 95%;
  120. top: calc(50% - 8px);
  121. width: 16px;
  122. height: 16px;
  123. background-color: inherit;
  124. background-image: linear-gradient(90deg, #3a9fc0, #2b758d);
  125. clip-path: polygon(100% 0%, 84% 49%, 100% 100%, 0 66%, 0% 50%, 0 35%);
  126. }
  127. &::after {
  128. width: 10px;
  129. height: 10px;
  130. top: 50%;
  131. left: 30%;
  132. background-image: linear-gradient(135deg, #3a9fc0, #2b758d);
  133. clip-path: polygon(100% 27%, 86% 74%, 31% 100%, 0 22%, 0 0, 35% 0);
  134. transform-origin: 0 0;
  135. animation: side 0.5s linear infinite;
  136. }
  137. &:nth-child(2) {
  138. animation-duration: 6s;
  139. animation-delay: 5s;
  140. }
  141. &:nth-child(3) {
  142. animation-duration: 9s;
  143. }
  144. }
  145. }
  146. .wave {
  147. position: absolute;
  148. left: -25%;
  149. bottom: 0;
  150. width: 150%;
  151. height: 100%;
  152. background-color: lightblue;
  153. animation: vawe 20s linear infinite;
  154. }
  155. .wave.w-1 {
  156. background: #99cfe0;
  157. animation-delay: 2s;
  158. }
  159. .wave.w-2 {
  160. background: #86c5da;
  161. }
  162. .bottom {
  163. position: absolute;
  164. right: -2em;
  165. bottom: 0;
  166. left: -2em;
  167. height: 1.35em;
  168. border-radius: 78% 22% 52% 48% / 100% 100% 0% 0%;
  169. background-color: #3a0003;
  170. background-image: linear-gradient(0deg, #210001, #6d0005);
  171. opacity: 0.8;
  172. }
  173. .grass {
  174. position: absolute;
  175. bottom: 5px;
  176. left: 5em;
  177. width: 3px;
  178. height: 35px;
  179. background-color: #44882d;
  180. background-image: linear-gradient(45deg, #44882d, #274f1a);
  181. border-radius: 40%;
  182. transform-origin: 50% 100%;
  183. animation: grass 2s linear infinite;
  184. &:nth-child(2) {
  185. bottom: 3px;
  186. left: 30%;
  187. }
  188. &:nth-child(3) {
  189. bottom: 8px;
  190. left: 60%;
  191. }
  192. &:nth-child(4) {
  193. bottom: 6px;
  194. left: 80%;
  195. }
  196. span {
  197. position: absolute;
  198. left: -5px;
  199. width: 8px;
  200. height: 2px;
  201. background-color: #44882d;
  202. background-image: inherit;
  203. transform: rotate(45deg);
  204. &::before {
  205. position: absolute;
  206. top: 4px;
  207. left: 4px;
  208. content: "";
  209. width: inherit;
  210. height: inherit;
  211. background-color: inherit;
  212. transform: rotate(-90deg) translateX(100%);
  213. }
  214. &:nth-child(2) {
  215. top: 10px;
  216. }
  217. &:nth-child(3) {
  218. top: 15px;
  219. }
  220. &:nth-child(4) {
  221. top: 20px;
  222. }
  223. }
  224. }
  225. .circle {
  226. position: absolute;
  227. bottom: 5px;
  228. left: 0;
  229. width: 100%;
  230. height: 25vh;
  231. }
  232. .circle span {
  233. position: absolute;
  234. bottom: 0;
  235. left: 12%;
  236. display: block;
  237. width: 7px;
  238. height: 7px;
  239. border-radius: 50%;
  240. background-color: #ffffff;
  241. opacity: 0.2;
  242. animation: circle 2s linear infinite;
  243. }
  244. .circle span::before, .circle span::after {
  245. position: absolute;
  246. bottom: 0;
  247. left: 10px;
  248. content: "";
  249. width: 5px;
  250. height: 5px;
  251. border-radius: inherit;
  252. background-color: inherit;
  253. animation: circle 4s linear infinite;
  254. animation-delay: 0.3s;
  255. }
  256. .circle span::after {
  257. right: -10px;
  258. animation-delay: 0.5s;
  259. }
  260. .circle span:nth-child(2) {
  261. left: 25%;
  262. animation-delay: 0.6s;
  263. }
  264. .circle span:nth-child(3) {
  265. left: 45%;
  266. animation-delay: 0.8s;
  267. }
  268. .circle span:nth-child(4) {
  269. left: 53%;
  270. }
  271. .circle span:nth-child(5) {
  272. left: 74%;
  273. }
  274. .grass_tw {
  275. position: absolute;
  276. bottom: 11px;
  277. left: 50%;
  278. width: 30px;
  279. height: 10px;
  280. background-color: #44882d;
  281. background-image: linear-gradient(180deg, #44882d, #1e3b14);
  282. clip-path: polygon(10% 84%, 14% 73%, 17% 24%, 20% 61%, 22% 88%, 32% 15%, 31% 68%, 35% 88%, 49% 11%, 63% 85%, 69% 10%, 77% 80%, 84% 16%, 89% 92%, 97% 41%, 100% 97%, 50% 96%, 0 100%, 4% 34%);
  283. animation: grass_tw 2s linear infinite;
  284. }
  285. .grass_tw:nth-last-child(2) {
  286. left: 75%;
  287. width: 80px;
  288. }
  289. .grass_tw:last-child {
  290. bottom: 8px;
  291. left: 20%;
  292. width: 50px;
  293. }
  294. @keyframes sun {
  295. 50% {
  296. box-shadow: 0px 0px 60px 20px #f5de19, inset 0px 0px 100px #f5de19;
  297. }
  298. }
  299. @keyframes clouds {
  300. 0% {
  301. left: -30%;
  302. }
  303. 100% {
  304. left: 110%;
  305. }
  306. }
  307. @keyframes cloud {
  308. 30% {
  309. border-radius: 22% 78% 51% 49% / 78% 66% 34% 22%;
  310. }
  311. 40% {
  312. width: 180px;
  313. }
  314. 60% {
  315. border-radius: 61% 39% 51% 49% / 50% 66% 34% 50%;
  316. }
  317. }
  318. @keyframes birds {
  319. 100% {
  320. right: 110%;
  321. transform: scale(1.8) translateY(100px);
  322. }
  323. }
  324. @keyframes fly {
  325. 50% {
  326. clip-path: polygon(70% 69%, 97% 80%, 70% 76%, 48% 83%, 81% 86%, 55% 90%, 0 92%, 19% 76%, 0 71%, 33% 71%);
  327. }
  328. }
  329. @keyframes fish {
  330. 0% {
  331. left: 110%;
  332. }
  333. 40% {
  334. transform: translateY(35px) rotate(-15deg);
  335. }
  336. 70% {
  337. transform: translateY(-5px) rotate(15deg);
  338. }
  339. 80% {
  340. transform: translateY(5px) rotate(0deg);
  341. }
  342. 100% {
  343. left: -10%;
  344. }
  345. }
  346. @keyframes circle {
  347. 0% {
  348. transform: translateY(0px) scale(0);
  349. }
  350. 50%, 80% {
  351. transform: translateY(-25px) scale(1);
  352. }
  353. 100% {
  354. transform: translateY(-30px) scale(0);
  355. opacity: 0;
  356. }
  357. }
  358. @keyframes side {
  359. 50% {
  360. transform: rotate(-35deg);
  361. }
  362. }
  363. @keyframes vawe {
  364. 20%, 40% {
  365. border-radius: 23% 77% 52% 48% / 100% 100% 0% 0%;
  366. }
  367. 30%, 50%, 70% {
  368. border-radius: 37% 63% 100% 0% / 100% 100% 0% 0%;
  369. }
  370. 80%, 60% {
  371. border-radius: 78% 22% 52% 48% / 100% 100% 0% 0%;
  372. }
  373. }
  374. @keyframes grass {
  375. 50% {
  376. transform: rotate(5deg);
  377. }
  378. }
  379. @keyframes grass_tw {
  380. 50% {
  381. clip-path: polygon(10% 84%, 14% 73%, 10% 28%, 20% 61%, 22% 88%, 24% 18%, 31% 68%, 35% 88%, 42% 15%, 63% 85%, 58% 14%, 77% 80%, 77% 18%, 89% 92%, 91% 43%, 100% 97%, 50% 96%, 0 100%, 3% 39%);
  382. }
  383. }
  384. }
  385. </style>
  386. <template>
  387. <div class="notfound">
  388. <div class="error">
  389. <span>Page not found</span><span>404</span><span></span>
  390. </div>
  391. <div class="sun"></div>
  392. <!-- <div class="clouds">
  393. <div></div>
  394. <div></div>
  395. <div></div>
  396. </div> -->
  397. <!-- <div class="birds"></div> -->
  398. <!-- <div class="sea">
  399. <div class="wave w-1"></div>
  400. <div class="wave w-2"></div>
  401. <div class="fish">
  402. <span></span><span></span><span></span>
  403. </div>
  404. </div> -->
  405. <!-- <div class="bottom">
  406. <div class="grass">
  407. <span> </span><span> </span><span> </span>
  408. </div>
  409. <div class="grass">
  410. <span> </span><span> </span><span> </span>
  411. </div>
  412. <div class="grass">
  413. <span> </span><span> </span><span> </span>
  414. </div>
  415. <div class="grass">
  416. <span> </span><span> </span><span> </span>
  417. </div>
  418. <div class="circle">
  419. <span></span><span></span><span></span><span></span><span></span>
  420. </div>
  421. <div class="circle">
  422. <span></span><span></span><span></span><span></span><span></span>
  423. </div>
  424. <div class="circle">
  425. <span></span><span></span><span></span><span></span><span></span>
  426. </div>
  427. <div class="circle">
  428. <span></span><span></span><span></span><span></span><span></span>
  429. </div>
  430. <div class="grass_tw"></div>
  431. <div class="grass_tw"></div>
  432. <div class="grass_tw"></div>
  433. </div> -->
  434. </div>
  435. </template>