Skip to content

Commit 1b1588e

Browse files
committed
fixup! put Turtle in subdir
1 parent a7f7fa1 commit 1b1588e

File tree

4 files changed

+29
-17
lines changed

4 files changed

+29
-17
lines changed

apps/site/app/[locale]/not-found.tsx

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
'use client';
22

33
import { ArrowRightIcon } from '@heroicons/react/24/solid';
4-
import Image from 'next/image';
54
import { useTranslations } from 'next-intl';
65
import type { FC } from 'react';
76

87
import Button from '#site/components/Common/Button';
8+
import Turtle from '#site/components/Common/Turtle';
99
import GlowingBackdropLayout from '#site/layouts/GlowingBackdrop';
1010

1111
const 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">

apps/site/styles/effects.css renamed to apps/site/components/Common/Turtle/index.module.css

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
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
@@ -16,12 +17,13 @@
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
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
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;

apps/site/styles/index.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,4 @@
77
*/
88

99
@import '@node-core/ui-components/styles/index.css';
10-
@import './effects.css';
1110
@import './locales.css';

0 commit comments

Comments
 (0)