Skip to content

fix(home): high-res image and correct sizing for Independent by Design [INTORG-664]#305

Merged
Infi-Knight merged 4 commits into
stagingfrom
ravi/homepage-fixes
May 25, 2026
Merged

fix(home): high-res image and correct sizing for Independent by Design [INTORG-664]#305
Infi-Knight merged 4 commits into
stagingfrom
ravi/homepage-fixes

Conversation

@Infi-Knight
Copy link
Copy Markdown
Contributor

Summary

Fixes two issues Jon flagged on the Independent by Design section of the homepage:

  • Mobile pixelation — the source PNG was 359×359 but rendered up to 426 CSS px wide, so it was being upscaled ~3.5× on 3x retina displays. Swapped it for the 2250×2253 transparent export from Figma and routed it through OptimizedImage so the build pipeline emits 640/1280/1920 WebP variants and the browser picks the right one per DPR/breakpoint.
  • Desktop sized way too smalltablet:w-[40%] was cascading into desktop, where the media column is already desktop:basis-[40%], so the image ended up at ~16% of content width. Re-added tablet:w-[40%] (matches the Figma tablet "fill — max 40%" annotation) and added desktop:w-full so the image fills its column up to max-w-[426px] on desktop, matching the 426×427 Figma spec.

sizes updated to (min-width: 1280px) 426px, (min-width: 768px) 40vw, 100vw so the responsive picker requests appropriately sized variants on tablet.

Related Issue

INTORG-664

Manual Test

  • Visit / on mobile (≤767px), tablet (768–1279px), and desktop (≥1280px).
  • Verify the lady image in the Independent by Design section:
    • Mobile: full-width up to 426px, centered, no pixelation on retina.
    • Tablet: ~40% of section width, centered.
    • Desktop: fills its 40% media column up to 426px, left-aligned.
  • Confirm the served asset is a WebP variant (DevTools → Network).

Checks

  • pnpm run format
  • pnpm run lint

PR Checklist

  • PR title follows Conventional Commits
  • Linked issue included
  • Scope is focused
  • Screenshots for UI changes (if applicable)

…n [INTORG-664]

- Replace 359x359 PNG with the 2250x2253 transparent export so it doesn't
  pixelate on retina screens at the 426px display target.
- Render via OptimizedImage so the build pipeline serves the right
  WebP variant per breakpoint.
- Re-add tablet:w-[40%] and override on desktop with w-full so the image
  is ~40% on tablet (per Figma) but fills its 40% media column on desktop
  instead of shrinking to ~16% of content width.
@netlify
Copy link
Copy Markdown

netlify Bot commented May 21, 2026

Deploy Preview for interledger-org-v5 ready!

Name Link
🔨 Latest commit 41adc52
🔍 Latest deploy log https://app.netlify.com/projects/interledger-org-v5/deploys/6a13eef28772160008c896f1
😎 Deploy Preview https://deploy-preview-305--interledger-org-v5.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@JonathanMatthey JonathanMatthey self-requested a review May 21, 2026 07:51
…ORG-663]

The media column had `desktop:basis-[40%]` while images were capped at
`max-w-[426px]`. The difference became dead column space adjacent to
gap-6xl, visibly inflating the gap and starving the text column.

- Media column now `desktop:shrink-0` only, so it sizes to content.
- Text column gets the reclaimed width (text column is ~86px wider on a
  1440 desktop).
- Problem section's video div and the preview page slots were anchoring
  on `desktop:w-full` which collapses against a content-sized parent;
  switched both to explicit desktop widths matching previous render.
- Independent by Design picture: img inside switched from `w-full` to
  `max-w-full` so the picture has an intrinsic anchor on desktop and
  doesn't collapse.
@Infi-Knight Infi-Knight self-assigned this May 21, 2026
Copy link
Copy Markdown
Collaborator

@JonathanMatthey JonathanMatthey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

works !

# Conflicts:
#	src/components/pages/HomePage.astro
@Infi-Knight Infi-Knight merged commit b756db6 into staging May 25, 2026
6 of 7 checks passed
@Infi-Knight Infi-Knight deleted the ravi/homepage-fixes branch May 25, 2026 06:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants