Skip to content

Commit

Permalink
increase default image quality to max (#1014)
Browse files Browse the repository at this point in the history
  • Loading branch information
will0684 authored May 8, 2024
1 parent b0218d7 commit f446e95
Show file tree
Hide file tree
Showing 10 changed files with 20 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export default function BasicTextWithImage({ src, alt, width, height, data }) {
width={width}
height={height}
sizes="50vw"
quality={100}
/>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ export default function ImageFragment(props) {
className="col-span-12 lg:col-span-10"
width={props.fragmentData.scImageEn.width}
height={props.fragmentData.scImageEn.height}
sizes="(max-width: 768px) 100vw, 80vw"
quality={100}
/>
<p className="grid row-start-2 col-span-12 lg:col-span-10 justify-around">
{props.locale === "en"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export default function ImageWithCollapse({
width={width}
height={height}
sizes="100vw"
quality={100}
/>
<p className="grid row-start-2 col-span-12 lg:col-span-10 justify-around mb-8">
{content}
Expand Down
3 changes: 2 additions & 1 deletion components/molecules/Card.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ export const Card = (props) => {
width={props.imgWidth}
height={props.imgHeight}
// Cards are single column up to 768px
sizes="(max-width: 768px) 100vw, 50vw"
sizes="(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 33vw"
quality={100}
/>
</div>
) : (
Expand Down
3 changes: 2 additions & 1 deletion pages/home.js
Original file line number Diff line number Diff line change
Expand Up @@ -287,8 +287,9 @@ export default function Home(props) {
alt=""
width={pageData.scFragments[1].scImageEn.width}
height={pageData.scFragments[1].scImageEn.height}
sizes="33vw"
sizes="35vw"
priority
quality={100}
/>
</span>
</div>
Expand Down
4 changes: 4 additions & 0 deletions pages/projects/benefits-navigator/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,7 @@ export default function BenefitsNavigatorOverview(props) {
height={pageData.scFragments[0].scImageEn.height}
priority
sizes="33vw"
quality={100}
/>
</div>
</div>
Expand Down Expand Up @@ -411,6 +412,7 @@ export default function BenefitsNavigatorOverview(props) {
.scImageEn.width
}
sizes="100vw"
quality={100}
/>
</div>
<div className="col-span-12 row-start-3 xl:col-span-4 xl:row-start-1">
Expand Down Expand Up @@ -500,6 +502,7 @@ export default function BenefitsNavigatorOverview(props) {
.scImageEn.width
}
sizes="100vw"
quality={100}
/>
</div>
<div className="col-span-12 row-start-3 xl:col-span-4 xl:row-start-1">
Expand Down Expand Up @@ -589,6 +592,7 @@ export default function BenefitsNavigatorOverview(props) {
.scImageEn.width
}
sizes="100vw"
quality={100}
/>
</div>
<div className="col-span-12 row-start-3 xl:col-span-4 xl:row-start-1">
Expand Down
5 changes: 5 additions & 0 deletions pages/projects/dashboard/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,7 @@ export default function MscaDashboard(props) {
width={pageData.scFragments[1].scImageEn.width}
priority
sizes="33vw"
quality={100}
/>
</div>
</div>
Expand Down Expand Up @@ -402,6 +403,7 @@ export default function MscaDashboard(props) {
.scImageEn.width
}
sizes="100vw"
quality={100}
/>
</div>
<div className="col-span-12 row-start-3 xl:col-span-4 xl:row-start-1">
Expand Down Expand Up @@ -484,6 +486,7 @@ export default function MscaDashboard(props) {
.scImageEn.width
}
sizes="100vw"
quality={100}
/>
</div>
<div className="col-span-12 row-start-3 xl:col-span-4 xl:row-start-1">
Expand Down Expand Up @@ -566,6 +569,7 @@ export default function MscaDashboard(props) {
.scImageEn.width
}
sizes="100vw"
quality={100}
/>
</div>
<div className="col-span-12 row-start-3 xl:col-span-4 xl:row-start-1">
Expand Down Expand Up @@ -676,6 +680,7 @@ export default function MscaDashboard(props) {
.scImageEn.width
}
sizes="100vw"
quality={100}
/>
</div>
<div className="col-span-12 row-start-3 xl:col-span-4 xl:row-start-1">
Expand Down
1 change: 1 addition & 0 deletions pages/projects/digital-standards-playbook/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,7 @@ export default function DigitalStandardsPlaybookPage(props) {
width={pageData.scFragments[2].scImageEn.width}
priority
sizes="33vw"
quality={100}
/>
</div>
</div>
Expand Down
1 change: 1 addition & 0 deletions pages/projects/making-easier-get-benefits/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,7 @@ export default function IntegratedChannelStrategyPage(props) {
width={pageData.scFragments[2].scImageEn.width}
priority
sizes="33vw"
quality={100}
/>
</div>
</div>
Expand Down
1 change: 1 addition & 0 deletions pages/projects/oas-benefits-estimator/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,7 @@ export default function OasBenefitsEstimator(props) {
width={pageData.scFragments[1].scImageEn.width}
priority
sizes="33vw"
quality={100}
/>
</div>
</div>
Expand Down

0 comments on commit f446e95

Please sign in to comment.