File tree Expand file tree Collapse file tree 8 files changed +393
-322
lines changed
Expand file tree Collapse file tree 8 files changed +393
-322
lines changed Original file line number Diff line number Diff line change 11'use client' ;
22
33import { ArrowRightIcon } from '@heroicons/react/24/solid' ;
4- import Image from 'next/image' ;
54import { useTranslations } from 'next-intl' ;
65import type { FC } from 'react' ;
76
87import Button from '#site/components/Common/Button' ;
8+ import Turtle from '#site/components/Common/Turtle' ;
99import GlowingBackdropLayout from '#site/layouts/GlowingBackdrop' ;
1010
1111const NotFoundPage : FC = ( ) => {
@@ -20,14 +20,7 @@ const NotFoundPage: FC = () => {
2020 </ h1 >
2121
2222 < div className = "my-4 flex h-[150px] items-center justify-center md:h-[300px]" >
23- < div className = "turtle motion-safe:animate-surf motion-reduce:animate-none" >
24- < Image
25- src = "/static/images/node-mascot.svg"
26- alt = "The Node.js mascot"
27- height = { 114.69 }
28- width = { 100 }
29- />
30- </ div >
23+ < Turtle />
3124 </ div >
3225
3326 < p className = "-mt-4 max-w-sm text-center text-lg" >
Original file line number Diff line number Diff line change 1- @utility turtle {
2- @apply animate-surf
1+ .turtle {
2+ @apply motion-safe:animate-surf
3+ animate-surf
34 absolute
45 z-10
56 translate-x-0
1617 after:bg-[url ('/static/images/smoke.gif' )]
1718 after:opacity-[0.15 ]
1819 after:content-['' ]
20+ motion-reduce:animate-none
1921 after:md:-left-1/2
2022 after:md:top-1/2;
23+ }
2124
22- & img {
23- @apply h-auto
24- w-24
25- md:w-48;
26- }
25+ .image {
26+ @apply h-auto
27+ w-24
28+ md:w-48;
2729}
Original file line number Diff line number Diff line change 1+ import Image from 'next/image' ;
2+ import type { FC } from 'react' ;
3+
4+ import styles from './index.module.css' ;
5+
6+ const Turtle : FC = ( ) => (
7+ < div className = { styles . turtle } >
8+ < Image
9+ className = { styles . image }
10+ src = "/static/images/node-mascot.svg"
11+ alt = "The Node.js mascot"
12+ height = { 115 }
13+ width = { 100 }
14+ />
15+ </ div >
16+ ) ;
17+
18+ export default Turtle ;
Original file line number Diff line number Diff line change 8484 "@testing-library/user-event" : " ~14.6.1" ,
8585 "@types/mdx" : " ^2.0.13" ,
8686 "@types/semver" : " ~7.7.0" ,
87- "eslint-config-next" : " 15.4.3 " ,
87+ "eslint-config-next" : " 15.4.4 " ,
8888 "eslint-import-resolver-typescript" : " ~4.4.4" ,
8989 "eslint-plugin-mdx" : " ~3.6.2" ,
9090 "eslint-plugin-react" : " ~7.37.4" ,
103103 "remark-lint-prohibited-strings" : " ^4.0.0" ,
104104 "remark-lint-unordered-list-marker-style" : " ^4.0.1" ,
105105 "remark-preset-lint-node" : " 5.1.2" ,
106- "stylelint" : " 16.22 .0" ,
107- "stylelint-config-standard" : " 38 .0.0" ,
106+ "stylelint" : " 16.23 .0" ,
107+ "stylelint-config-standard" : " 39 .0.0" ,
108108 "stylelint-order" : " 7.0.0" ,
109109 "stylelint-selector-bem-pattern" : " 4.0.1" ,
110110 "tsx" : " ^4.20.3" ,
Original file line number Diff line number Diff line change 77*/
88
99@import '@node-core/ui-components/styles/index.css' ;
10- @import './effects.css' ;
1110@import './locales.css' ;
Original file line number Diff line number Diff line change 3939 "turbo" : " 2.5.5"
4040 },
4141 "devDependencies" : {
42- "@eslint/js" : " ~9.31 .0" ,
42+ "@eslint/js" : " ~9.32 .0" ,
4343 "@reporters/github" : " ^1.7.2" ,
4444 "@testing-library/react" : " ~16.3.0" ,
4545 "cross-env" : " ^7.0.3" ,
46- "eslint" : " ~9.31 .0" ,
46+ "eslint" : " ~9.32 .0" ,
4747 "eslint-plugin-import-x" : " ~4.16.1" ,
4848 "prettier" : " 3.6.2" ,
4949 "prettier-plugin-tailwindcss" : " 0.6.14"
Original file line number Diff line number Diff line change 6262 "react" : " catalog:" ,
6363 "storybook" : " ^9.0.18" ,
6464 "style-loader" : " ~4.0.0" ,
65- "stylelint" : " ^16.22 .0" ,
66- "stylelint-config-standard" : " ^38 .0.0" ,
65+ "stylelint" : " ^16.23 .0" ,
66+ "stylelint-config-standard" : " ^39 .0.0" ,
6767 "stylelint-order" : " 7.0.0" ,
6868 "stylelint-selector-bem-pattern" : " 4.0.1" ,
6969 "tailwindcss" : " catalog:" ,
You can’t perform that action at this time.
0 commit comments