-
-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
PxlSyl
authored and
PxlSyl
committed
Jun 17, 2024
1 parent
b5e38c4
commit 8bdebcb
Showing
15 changed files
with
155 additions
and
132 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import { notFound } from 'next/navigation' | ||
|
||
export default function NotFoundCatchAll() { | ||
notFound() | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"title": "Sorry we couldn't find this page.", | ||
"description": "But dont worry, you can find plenty of other things on our homepage.", | ||
"back": "Back to homepage" | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"title": "Désolé, nous n'avons pas pu trouver cette page.", | ||
"description": "Ne vous inquiétez pas, vous pourrez trouver plein d'autres choses sur notre page d'accueil.", | ||
"back": "Retour à la page d'accueil" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,5 @@ | ||
import Link from '@/components/mdxcomponents/Link' | ||
import NotFoundclient from '@/components/notfound/Client' | ||
|
||
export default function NotFound() { | ||
return ( | ||
<div className="flex flex-col items-start justify-start md:mt-24 md:flex-row md:items-center md:justify-center md:space-x-6"> | ||
<div className="space-x-2 pb-8 pt-6 md:space-y-5"> | ||
<h1 className="text-6xl font-extrabold leading-9 tracking-tight text-gray-900 dark:text-gray-100 md:border-r-2 md:px-6 md:text-8xl md:leading-14"> | ||
404 | ||
</h1> | ||
</div> | ||
<div className="max-w-md"> | ||
<p className="mb-4 text-xl font-bold leading-normal md:text-2xl"> | ||
Sorry we couldn't find this page. | ||
</p> | ||
<p className="mb-8">But dont worry, you can find plenty of other things on our homepage.</p> | ||
<Link | ||
href="/" | ||
className="focus:shadow-outline-blue inline rounded-lg border border-transparent bg-blue-600 px-4 py-2 text-sm font-medium leading-5 text-white shadow transition-colors duration-150 hover:bg-blue-700 focus:outline-none dark:hover:bg-blue-500" | ||
> | ||
Back to homepage | ||
</Link> | ||
</div> | ||
</div> | ||
) | ||
return <NotFoundclient /> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1 @@ | ||
{ | ||
"en": { | ||
"markdown": 1, | ||
"code": 1, | ||
"features": 2, | ||
"next-js": 7, | ||
"math": 1, | ||
"ols": 1, | ||
"github": 1, | ||
"guide": 6, | ||
"tailwind": 4, | ||
"i18n": 1, | ||
"hello": 1, | ||
"holiday": 1, | ||
"canada": 1, | ||
"images": 1, | ||
"feature": 2, | ||
"writings": 1, | ||
"book": 1, | ||
"reflection": 1, | ||
"multi-author": 1 | ||
}, | ||
"fr": { | ||
"markdown": 1, | ||
"code": 1, | ||
"fonctionnalites": 4, | ||
"next-js": 7, | ||
"math": 1, | ||
"ols": 1, | ||
"github": 1, | ||
"guide": 6, | ||
"tailwind": 4, | ||
"i18n": 1, | ||
"salut": 1, | ||
"vacance": 1, | ||
"canada": 1, | ||
"images": 1, | ||
"ecriture": 1, | ||
"livre": 1, | ||
"reflexion": 1, | ||
"multi-auteurs": 1 | ||
} | ||
} | ||
{"en":{"markdown":1,"code":1,"features":2,"next-js":7,"math":1,"ols":1,"github":1,"guide":6,"tailwind":4,"i18n":1,"hello":1,"holiday":1,"canada":1,"images":1,"feature":2,"writings":1,"book":1,"reflection":1,"multi-author":1},"fr":{"markdown":1,"code":1,"fonctionnalites":4,"next-js":7,"math":1,"ols":1,"github":1,"guide":6,"tailwind":4,"i18n":1,"salut":1,"vacance":1,"canada":1,"images":1,"ecriture":1,"livre":1,"reflexion":1,"multi-auteurs":1}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
import { motion } from 'framer-motion' | ||
|
||
type ShimmerButtonProps = { | ||
text: string | ||
href: string | ||
} | ||
|
||
const ShimmerButton = ({ text, href }: ShimmerButtonProps) => { | ||
return ( | ||
<motion.button | ||
className="inline-flex overflow-hidden rounded-lg bg-[linear-gradient(120deg,#FF98A4_calc(var(--shimmer-button-x)-25%),#f6f6f6_var(--shimmer-button-x),#FF98A4_calc(var(--shimmer-button-x)+25%))] [--shimmer-button-x:0%]" | ||
initial={ | ||
{ | ||
scale: 1, | ||
'--shimmer-button-x': '-100%', | ||
} as any | ||
} | ||
animate={ | ||
{ | ||
'--shimmer-button-x': '200%', | ||
} as any | ||
} | ||
transition={{ | ||
stiffness: 500, | ||
damping: 20, | ||
type: 'spring', | ||
'--shimmer-button-x': { | ||
duration: 3, | ||
repeat: Infinity, | ||
ease: [0.445, 0.05, 0.55, 0.95], | ||
}, | ||
}} | ||
whileTap={{ | ||
scale: 0.95, | ||
}} | ||
whileHover={{ | ||
scale: 1.05, | ||
}} | ||
> | ||
<a href={href}> | ||
<span className="m-[0.125rem] rounded-[calc(0.5rem-0.125rem)] bg-primary-500 px-4 py-1 text-lg text-[#f6f6f6] backdrop-blur-sm"> | ||
{text} | ||
</span> | ||
</a> | ||
</motion.button> | ||
) | ||
} | ||
|
||
export default ShimmerButton |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
'use client' | ||
|
||
import ShimmerButton from './Button' | ||
import { useTranslation } from 'app/[locale]/i18n/client' | ||
import { useParams } from 'next/navigation' | ||
import { LocaleTypes } from 'app/[locale]/i18n/settings' | ||
export default function NotFoundclient() { | ||
const locale = useParams()?.locale as LocaleTypes | ||
const { t } = useTranslation(locale, 'notfound') | ||
return ( | ||
<div className="flex flex-col items-start justify-start md:mt-24 md:flex-row md:items-center md:justify-center md:space-x-6"> | ||
<div className="space-x-2 pb-8 pt-6 md:space-y-5"> | ||
<h1 className="text-6xl font-extrabold leading-9 tracking-tight text-gray-900 dark:text-gray-100 md:border-r-2 md:px-6 md:text-8xl md:leading-14"> | ||
404 | ||
</h1> | ||
</div> | ||
<div className="max-w-md"> | ||
<p className="mb-4 text-xl font-bold leading-normal md:text-2xl">{t('title')}</p> | ||
<p className="mb-8">{t('description')}</p> | ||
<ShimmerButton href="/" text={t('back')} /> | ||
</div> | ||
</div> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
"scripts": { | ||
"start": "next dev", | ||
"dev": "next dev", | ||
"build": " next build && cross-env NODE_OPTIONS='--experimental-json-modules' ", | ||
"build": " next build && cross-env NODE_OPTIONS='--experimental-json-modules' node ./scripts/postbuild.mjs", | ||
"serve": "next start", | ||
"analyze": "cross-env ANALYZE=true next build", | ||
"lint": "next lint --fix --dir pages --dir app --dir components --dir lib --dir layouts --dir scripts", | ||
|
@@ -81,4 +81,4 @@ | |
] | ||
}, | ||
"packageManager": "[email protected]" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters