Skip to content

Commit

Permalink
fixing build
Browse files Browse the repository at this point in the history
  • Loading branch information
poppyseedDev committed Mar 20, 2023
1 parent c8e40cc commit 39d812c
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 6 deletions.
10 changes: 10 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
images: {
remotePatterns: [
{
protocol: 'https',
hostname: 'image.w.kodadot.xyz',
port: '',
pathname: '/ipfs/**',
},
],
},
}

module.exports = nextConfig
12 changes: 8 additions & 4 deletions src/components/Header.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import Image from "next/image";
import Link from "next/link";
import StarGazers from "./StarGazers";

export default function Header() {
Expand All @@ -10,13 +12,15 @@ export default function Header() {
>
<div className="rainfall w-full h-full absolute" />
<nav className="w-11/12 h-24 max-w-5xl mx-auto flex items-center justify-between relative">
<a href="/">
<img
<Link href="/">
<Image
src="/logo.svg"
alt="Deno Logo"
alt="Logo"
width="50"
height="50"
className="h-14 w-14"
/>
</a>
</Link>
<StarGazers />
</nav>
</header>
Expand Down
3 changes: 2 additions & 1 deletion src/components/ProductCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import IconCart from './IconCart';
import Link from 'next/link';
import { formatBalance, sanitizeUri } from '@/helper';
import { Item } from '@/helper/types';
import Image from 'next/image';

export default function ProductCard({ item }: { item: Item } ) {
const price = formatBalance(item.price)
Expand All @@ -17,7 +18,7 @@ export default function ProductCard({ item }: { item: Item } ) {
<div
className=" aspect-square w-full bg-white rounded-xl overflow-hidden border-2 border-gray-200 transition-all duration-500 relative"
>
<img
<Image
src={image}
alt="image"
width="400"
Expand Down
2 changes: 1 addition & 1 deletion src/components/ProductDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export default function Product({ item }: { item: Item}) {
className="aspect-square w-full bg-white rounded-xl border-2 border-gray-200 mt-12 lg:mt-0 lg:col-start-2 lg:row-span-2 lg:self-start"
>
<div className="rounded-lg overflow-hidden">
<img
<Image
id="productImage"
src={image}
alt={item.name}
Expand Down

0 comments on commit 39d812c

Please sign in to comment.