Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

6492 surfin 404 #7056

Merged
merged 9 commits into from
Sep 25, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 9 additions & 7 deletions apps/site/app/[locale]/not-found.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,15 @@ const NotFoundPage: FC = () => {
<main>
404
<h1 className="special -mt-4">{t('layouts.error.notFound.title')}</h1>
<div className="my-4 flex items-center justify-center">
<Image
src="/static/images/node-mascot.svg"
alt="The Node.js mascot"
height={114.69}
width={100}
/>
<div className="my-4 flex h-[300] items-center justify-center">
bmuenzenmeyer marked this conversation as resolved.
Show resolved Hide resolved
<div className="turtle motion-safe:animate-surf motion-reduce:animate-none">
bmuenzenmeyer marked this conversation as resolved.
Show resolved Hide resolved
<Image
src="/static/images/node-mascot.svg"
alt="The Node.js mascot"
height={114.69}
width={100}
bmuenzenmeyer marked this conversation as resolved.
Show resolved Hide resolved
/>
</div>
</div>
<p className="-mt-4 max-w-sm text-center text-lg">
{t('layouts.error.notFound.description')}
Expand Down
Binary file added apps/site/public/static/images/smoke.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
44 changes: 44 additions & 0 deletions apps/site/styles/effects.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,47 @@ h1.special {
md:leading-[4rem]
md:-tracking-[0.06rem];
}

.turtle {
@apply animate-surf
absolute
z-10
translate-x-0
translate-y-0;
}

.turtle img {
@apply h-auto
w-[200];
}

.turtle::after {
@apply absolute
left-[-50%]
top-[50%]
-z-10
block
h-[150]
w-[150]
rotate-[-90deg]
select-none
bg-[url('/static/images/smoke.gif')]
opacity-[0.15];
/* stylelint-disable-next-line declaration-empty-line-before */
content: '';
bmuenzenmeyer marked this conversation as resolved.
Show resolved Hide resolved
}

@media (max-width: 750px) {
.turtle {
@apply m-0;
}

.turtle img {
@apply w-[100];
}

.turtle::after {
@apply left-[-100%]
top-[20%];
}
}
12 changes: 12 additions & 0 deletions apps/site/tailwind.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,18 @@ export default {
spacing: { '4.5': '1.125rem', '18': '4.5rem' },
aria: { current: 'current="page"' },
maxWidth: { '8xl': '95rem' },
animation: {
bmuenzenmeyer marked this conversation as resolved.
Show resolved Hide resolved
surf: 'surf 1s infinite ease-in-out',
},
keyframes: {
surf: {
'0%': { transform: 'translate(0, 0)' },
'25%': { transform: 'translate(0, 6px)' },
'50%': { transform: 'translate(0, -6px)' },
'75%': { transform: 'translate(0, 3px)' },
'100%': { transform: 'translate(0, 0)' },
},
},
},
},
darkMode: ['class', '[data-theme="dark"]'],
Expand Down
Loading