Skip to content

Block 12 of 297

Angled Hero

Copy beside an edge-to-edge photo cut on a diagonal with an accent band tracing the cut; image side flips.

Puck key
HeroAngledBlock
Export
heroAngledBlock
React component
<HeroAngled />
Path
components/puck/hero-angled-block.tsx
Dependencies
None
License
MIT

About this block

When to use it, how to write for it, and what to change in the code.

What it's for

Copy on one half and a photo on the other, with the photo cut on a diagonal and a thin indigo band tracing the cut. The photo runs to the screen edge on either side you choose. On phones the photo always sits on top with an angled bottom edge, and the copy follows. The angle adds visual direction without any animation.

  • A graduate program or admissions landing page
  • A health, training or workforce program with a strong portrait
  • Recruitment pages with an application deadline
Writing the content
  • Use a tall or square photo and keep faces away from the cut edge, which trims part of the image on every screen size.
  • Put deadlines or eligibility notes in the Footnote; it shows with an accent rule under the buttons and hides when blank.
  • Image side only affects large screens, so check both layouts before choosing Left.
  • Without an image the copy simply runs as a plain left-aligned section.
Accessibility
  • The diagonal is drawn with CSS clip-path, so the image element and its editor-supplied alt text are unchanged.
  • The accent band and eyebrow triangle are aria-hidden decoration.
  • The Heading level field picks H1 to H4, and both links show a visible focus outline at 44px minimum height.
Customizing the code
  • Cut angles live in the SIDES object as clip-path polygons; edit the percentages for a steeper or shallower diagonal.
  • The band color is bg-indigo-600 on the aria-hidden div behind the photo.

Editor fields

What content editors see in the P1 sidebar when they select this block.

  • Eyebrowtext
  • Headingtextarea
  • Heading levelselect
  • Bodytextarea
  • Primary button texttext
  • Primary button linktext
  • Secondary link texttext
  • Secondary linktext
  • Footnotetext
  • Image URLtext
  • Image alt texttext
  • Image sideradio