Skip to content

Commit

Permalink
Merge pull request #2 from styfle/styfle/lower-image-quality
Browse files Browse the repository at this point in the history
fix: reduce image quality to 65
  • Loading branch information
RhysSullivan authored Oct 18, 2024
2 parents 2d068e8 + abeddfd commit 023edde
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/app/(category-sidebar)/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export default async function Home() {
className="mb-2 h-14 w-14 border hover:bg-yellow-200"
width={48}
height={48}
quality={65}
/>
<span className="text-xs">{category.name}</span>
</Link>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ export default async function Page(props: {
alt={`A small picture of ${productData.name}`}
height={64}
width={64}
quality={65}
className="h-64 w-64 flex-shrink-0 border-2"
/>
<p className="flex-grow text-base">{productData.description}</p>
Expand Down
1 change: 1 addition & 0 deletions src/app/(category-sidebar)/products/[category]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ export default async function Page(props: {
alt={`A small picture of ${subcategory.name}`}
width={48}
height={48}
quality={65}
className="h-12 w-12 flex-shrink-0 object-cover"
/>
</div>
Expand Down
1 change: 1 addition & 0 deletions src/app/order/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ async function CartItem({ item }: { item: CartItem }) {
alt="Product"
width={80}
height={80}
quality={65}
/>
</div>
<div className="flex-grow">
Expand Down
1 change: 1 addition & 0 deletions src/components/search-dropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ export function SearchDropdownComponent() {
className="h-10 w-10 pr-2"
height={40}
width={40}
quality={65}
/>
<span className="text-sm">{item.name}</span>
</div>
Expand Down
1 change: 1 addition & 0 deletions src/components/ui/product-card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export function ProductLink(props: {
alt={`A small picture of ${product.name}`}
width={48}
height={48}
quality={65}
className="h-12 w-12 flex-shrink-0 object-cover"
/>
</div>
Expand Down

0 comments on commit 023edde

Please sign in to comment.