File tree Expand file tree Collapse file tree 4 files changed +29
-17
lines changed
Expand file tree Collapse file tree 4 files changed +29
-17
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 77*/
88
99@import '@node-core/ui-components/styles/index.css' ;
10- @import './effects.css' ;
1110@import './locales.css' ;
You can’t perform that action at this time.
0 commit comments