Skip to content

Commit

Permalink
Remove unnecessary widths from some images
Browse files Browse the repository at this point in the history
  • Loading branch information
Powerlated committed Sep 19, 2024
1 parent 413dd94 commit 63bf1fd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/widgets/Hero.astro
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ const {
) : (
<Image
class="mx-auto rounded-md w-full"
widths={[400, 768, 1024, 2040]}
widths={[768, 2040]}
sizes="(max-width: 767px) 400px, (max-width: 1023px) 768px, (max-width: 2039px) 1024px, 2040px"
loading="eager"
width={1024}
Expand Down
2 changes: 1 addition & 1 deletion src/components/widgets/OurProjects.astro
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const {
class="mx-auto w-full rounded-lg bg-gray-500 shadow h-64 object-cover"
src={image.src}
alt={image.alt}
widths={[200, 400, 800]}
widths={[400, 800]}
/>
<h3 class="text-xl font-bold font-heading pb-2 py-7">{name}</h3>
<p class="">{description}</p>
Expand Down
2 changes: 1 addition & 1 deletion src/components/widgets/ProjectHero.astro
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ const {
) : (
<Image
class="mx-auto rounded-md w-full"
widths={[400, 768, 1024, 2040]}
widths={[768, 2040]}
sizes="(max-width: 767px) 400px, (max-width: 1023px) 768px, (max-width: 2039px) 1024px, 2040px"
loading="eager"
width={800}
Expand Down

0 comments on commit 63bf1fd

Please sign in to comment.