corregido errores de compilacion para next en web
This commit is contained in:
@@ -1,11 +1,16 @@
|
||||
import Image from 'next/image';
|
||||
|
||||
export default async function Page() {
|
||||
|
||||
return (
|
||||
// <PageContainer>
|
||||
<div className="flex justify-center items-center h-full">
|
||||
<img src="../logo.png" alt="Image" className="w-1/4"/>
|
||||
<Image
|
||||
src="/logo.png" // OJO: la ruta debe ser desde /public (sin '..')
|
||||
alt="Image"
|
||||
width={400} // Ajusta el tamaño según tu imagen
|
||||
height={400}
|
||||
className="w-1/4 h-auto" // Puedes seguir usando Tailwind para responsividad
|
||||
priority // Opcional: para imágenes importantes arriba del todo
|
||||
/>
|
||||
</div>
|
||||
// </PageContainer>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user