From db5754245cd000e2ec72526de484d26ac54bd840 Mon Sep 17 00:00:00 2001 From: Clay Martinez Date: Tue, 26 Sep 2023 21:48:48 -0500 Subject: [PATCH 1/2] listo notFound --- next.config.js | 1 + src/app/not-found.tsx | 35 +++++++++++++++++++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 src/app/not-found.tsx diff --git a/next.config.js b/next.config.js index ff0e032..ace59b6 100644 --- a/next.config.js +++ b/next.config.js @@ -10,6 +10,7 @@ const nextConfig = { 'media.gm.com', 'cdn-icons-png.flaticon.com', 'user-images.githubusercontent.com', + 'postlmg.cc/7GxXNxBz', ], // Agrega aquí los dominios permitidos para las imágenes }, }; diff --git a/src/app/not-found.tsx b/src/app/not-found.tsx new file mode 100644 index 0000000..91068a8 --- /dev/null +++ b/src/app/not-found.tsx @@ -0,0 +1,35 @@ +import React, { FC } from 'react'; +import Image from 'next/image'; +import { MainButton } from '~/components/button/button'; + +interface notFoundProps {} + +const notFound: FC = ({}) => { + return ( +
+

+ La pagina que estas buscando no parece existir +

+
+

+ ERROR +

+ 404 +
+ + Ir Pagina Principal + +
+ ); +}; + +export default notFound; From 2893db14cd3655f0467484afda801b3c2a2e9d58 Mon Sep 17 00:00:00 2001 From: Clay Martinez Date: Wed, 27 Sep 2023 11:08:04 -0500 Subject: [PATCH 2/2] correccion etiqueta por Link --- src/app/not-found.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app/not-found.tsx b/src/app/not-found.tsx index 91068a8..6136a5a 100644 --- a/src/app/not-found.tsx +++ b/src/app/not-found.tsx @@ -1,6 +1,7 @@ import React, { FC } from 'react'; import Image from 'next/image'; import { MainButton } from '~/components/button/button'; +import Link from 'next/link'; interface notFoundProps {} @@ -26,7 +27,7 @@ const notFound: FC = ({}) => { variant="tertiary" className="bg-primary-lm text-white border font-bold" > - Ir Pagina Principal + Ir Pagina Principal );