Skip to content

Keep the home hero side by side on a tablet in portrait - #65

Merged
udienz merged 1 commit into
masterfrom
fix/hero-tablet-portrait
Nov 24, 2026
Merged

udienz merged 1 commit into
masterfrom
fix/hero-tablet-portrait

Conversation

@udienz

@udienz udienz commented Nov 24, 2026 •

Copy link
Copy Markdown
Owner

Follow-up to #64. On a tablet in portrait (about 830px wide) the home hero stacked, with the photograph under the text; side by side only started at 960px. The owner saw it on a real tablet and approved the mockup in the workspace repository (project/blogging/redesign/mockup-hero-tablet-portrait.png).

What changes (one file, _sass/_home.scss)

  • From 700px the hero is side by side (copy on the start side, photograph on the other), as it already is from 960px. Phones (under 700px) are unchanged and still stack.
  • In the 700 to 959px range the title is a little smaller (2.05rem) and the two buttons stack in the narrow column. From 960px the sizes and the row of buttons are as before.
  • The photograph fades into the hero colour with mask-image instead of an overlay. That also removes a faint vertical edge that the mockup showed at 834px. The right-to-left rule is kept.

Checks (Cloudflare Pages preview of this branch, Chromium)

The hero was measured at 11 widths; none has horizontal overflow.

Width Hero Title lines Buttons
390, 699 (phones) stacked, as before 3, 2 stacked at 390, a row at 699
700, 744, 768 side by side 3 stacked
820, 834 side by side 2 stacked
959 side by side 2 stacked
960, 1024, 1280 side by side, as before 2 a row
  • Looked at 834, 768, 700, 959 and 390px: the photograph fades into the hero without a visible edge.
  • Not checked: a real tablet (the owner's check on the preview) and right-to-left (the site has no right-to-left page; the mask rule for it is the mirror of the left-to-right one).

From 700px the copy sits on the start side and the photograph on the other, as on
landscape; the title is a little smaller and the buttons stack in the narrow
column. The photograph now fades into the hero with a mask instead of an overlay,
which also removes a faint vertical edge. Phones (under 700px) are unchanged.
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Deploying udienz-github-io with  Cloudflare Pages  Cloudflare Pages

Latest commit: ec41acb
Status: ✅  Deploy successful!
Preview URL: https://2aaf79b1.udienz-github-io.pages.dev
Branch Preview URL: https://fix-hero-tablet-portrait.udienz-github-io.pages.dev

View logs

@udienz
udienz marked this pull request as ready for review November 24, 2026 17:22
@udienz
udienz merged commit 63744fb into master Nov 24, 2026
2 checks passed
@udienz
udienz deleted the fix/hero-tablet-portrait branch November 24, 2026 17:22
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.

1 participant