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 1
1
'use client' ;
2
2
3
3
import { ArrowRightIcon } from '@heroicons/react/24/solid' ;
4
- import Image from 'next/image' ;
5
4
import { useTranslations } from 'next-intl' ;
6
5
import type { FC } from 'react' ;
7
6
8
7
import Button from '#site/components/Common/Button' ;
8
+ import Turtle from '#site/components/Common/Turtle' ;
9
9
import GlowingBackdropLayout from '#site/layouts/GlowingBackdrop' ;
10
10
11
11
const NotFoundPage : FC = ( ) => {
@@ -20,14 +20,7 @@ const NotFoundPage: FC = () => {
20
20
</ h1 >
21
21
22
22
< 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 />
31
24
</ div >
32
25
33
26
< 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
3
4
absolute
4
5
z-10
5
6
translate-x-0
16
17
after:bg-[url ('/static/images/smoke.gif' )]
17
18
after:opacity-[0.15 ]
18
19
after:content-['' ]
20
+ motion-reduce:animate-none
19
21
after:md:-left-1/2
20
22
after:md:top-1/2;
23
+ }
21
24
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;
27
29
}
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 84
84
"@testing-library/user-event" : " ~14.6.1" ,
85
85
"@types/mdx" : " ^2.0.13" ,
86
86
"@types/semver" : " ~7.7.0" ,
87
- "eslint-config-next" : " 15.4.3 " ,
87
+ "eslint-config-next" : " 15.4.4 " ,
88
88
"eslint-import-resolver-typescript" : " ~4.4.4" ,
89
89
"eslint-plugin-mdx" : " ~3.6.2" ,
90
90
"eslint-plugin-react" : " ~7.37.4" ,
103
103
"remark-lint-prohibited-strings" : " ^4.0.0" ,
104
104
"remark-lint-unordered-list-marker-style" : " ^4.0.1" ,
105
105
"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" ,
108
108
"stylelint-order" : " 7.0.0" ,
109
109
"stylelint-selector-bem-pattern" : " 4.0.1" ,
110
110
"tsx" : " ^4.20.3" ,
Original file line number Diff line number Diff line change 7
7
*/
8
8
9
9
@import '@node-core/ui-components/styles/index.css' ;
10
- @import './effects.css' ;
11
10
@import './locales.css' ;
Original file line number Diff line number Diff line change 39
39
"turbo" : " 2.5.5"
40
40
},
41
41
"devDependencies" : {
42
- "@eslint/js" : " ~9.31 .0" ,
42
+ "@eslint/js" : " ~9.32 .0" ,
43
43
"@reporters/github" : " ^1.7.2" ,
44
44
"@testing-library/react" : " ~16.3.0" ,
45
45
"cross-env" : " ^7.0.3" ,
46
- "eslint" : " ~9.31 .0" ,
46
+ "eslint" : " ~9.32 .0" ,
47
47
"eslint-plugin-import-x" : " ~4.16.1" ,
48
48
"prettier" : " 3.6.2" ,
49
49
"prettier-plugin-tailwindcss" : " 0.6.14"
Original file line number Diff line number Diff line change 62
62
"react" : " catalog:" ,
63
63
"storybook" : " ^9.0.18" ,
64
64
"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" ,
67
67
"stylelint-order" : " 7.0.0" ,
68
68
"stylelint-selector-bem-pattern" : " 4.0.1" ,
69
69
"tailwindcss" : " catalog:" ,
You can’t perform that action at this time.
0 commit comments