<Image is broken

This commit is contained in:
2024-11-26 00:43:58 -05:00
parent 4a9035f9cc
commit 608705772e
2 changed files with 28 additions and 6 deletions

View File

@@ -5,6 +5,24 @@ const nextConfig: NextConfig = {
experimental: { experimental: {
optimizePackageImports: ["@chakra-ui/react"], optimizePackageImports: ["@chakra-ui/react"],
}, },
/* module.exports = {
images: {
remotePatterns: [
{
protocol: 'https',
hostname: 'images.unsplash.com',
port: '',
pathname: '/**',
},
{
protocol: 'https',
hostname: 'tailwindui.com',
port: '',
pathname: '/plus/img/logos/**',
}
],
},
},*/
}; };
export default nextConfig; export default nextConfig;

View File

@@ -44,11 +44,13 @@ export default function Example() {
</div> </div>
<div className="flex flex-1 items-center justify-center sm:items-stretch sm:justify-start"> <div className="flex flex-1 items-center justify-center sm:items-stretch sm:justify-start">
<div className="flex shrink-0 items-center"> <div className="flex shrink-0 items-center">
<Image {/* <Image
alt="Ballistic Builder" alt="Ballistic Builder"
src="https://tailwindui.com/plus/img/logos/mark.svg?color=indigo&shade=500" src="https://tailwindui.com/plus/img/logos/mark.svg?color=indigo&shade=500"
className="h-8 w-auto" className="h-8 w-auto"
/> width={100}
height={100}
/> */}
</div> </div>
<div className="hidden sm:ml-6 sm:block"> <div className="hidden sm:ml-6 sm:block">
<div className="flex space-x-4"> <div className="flex space-x-4">
@@ -86,11 +88,13 @@ export default function Example() {
<MenuButton className="relative flex rounded-full bg-gray-800 text-sm focus:outline-none focus:ring-2 focus:ring-white focus:ring-offset-2 focus:ring-offset-gray-800"> <MenuButton className="relative flex rounded-full bg-gray-800 text-sm focus:outline-none focus:ring-2 focus:ring-white focus:ring-offset-2 focus:ring-offset-gray-800">
<span className="absolute -inset-1.5" /> <span className="absolute -inset-1.5" />
<span className="sr-only">Open user menu</span> <span className="sr-only">Open user menu</span>
<Image {/* <Image
alt="" alt=""
src="https://images.unsplash.com/photo-1472099645785-5658abf4ff4e?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=2&w=256&h=256&q=80" src="https://images.unsplash.com/photo-1472099645785-5658abf4ff4e?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=2&w=256&h=256&q=80"
className="size-8 rounded-full" className="size-8 rounded-full"
/> width={100}
height={100}
/> */}
</MenuButton> </MenuButton>
</div> </div>
<MenuItems <MenuItems