Skip to content

Commit

Permalink
listo notFound
Browse files Browse the repository at this point in the history
  • Loading branch information
claymartinez committed Sep 27, 2023
1 parent 467d74f commit db57542
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
1 change: 1 addition & 0 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
},
};
Expand Down
35 changes: 35 additions & 0 deletions src/app/not-found.tsx
Original file line number Diff line number Diff line change
@@ -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<notFoundProps> = ({}) => {
return (
<div className="flex flex-col items-center h-screen w-screen gap-9 p-12">
<h1 className="text-center">
La pagina que estas buscando no parece existir
</h1>
<div>
<h1 className="text-center font-medium text-secondary-lm text-4xl mb-2">
ERROR
</h1>
<Image
src="https://i.postimg.cc/fLdFDym8/notFound.png"
alt="404"
width={500}
height={500}
className="object-cover mb-8"
></Image>
</div>
<MainButton
variant="tertiary"
className="bg-primary-lm text-white border font-bold"
>
<a href="/">Ir Pagina Principal</a>
</MainButton>
</div>
);
};

export default notFound;

0 comments on commit db57542

Please sign in to comment.