Skip to content

Block 219 of 297

Patient Portal

Patient portal call to action: what you can do online, sign-in and enroll buttons, app note and help line.

Puck key
PatientPortalBlock
Export
patientPortalBlock
React component
<PatientPortal />
Path
components/puck/patient-portal-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

A dark indigo call-to-action panel for an online patient portal. The left half carries the heading, sign-in and enroll buttons, app and privacy notes and a help line; the right half shows white feature cards for messaging, results, refills and appointments, staggered in two columns. On phones the cards drop below the buttons in one column.

  • A home page section pushing patients to the portal
  • A "Patient resources" page with portal sign-in
  • A new patient welcome page explaining how to enroll
Writing the content
  • What you can do takes one to six features, each with one of six icons. An even number keeps the staggered two-column layout balanced.
  • Keep each feature's Text to one sentence that sets an expectation, like when messages are answered.
  • Point Sign-in link and Enroll link at your portal vendor's real URLs; either button hides when its text is blank.
  • Help line text and Help line phone print together as one line ending in a tap-to-call number.
Accessibility
  • Feature titles are headings one level below the Heading level setting, and all icons are hidden from screen readers (WCAG 1.3.1).
  • Buttons are 48px tall and every link uses a white focus outline that stays visible on the indigo-950 panel (WCAG 2.4.7).
  • Body text on the dark panel uses indigo-100 and white; keep that pairing if you change the background so contrast holds (WCAG 1.4.3).
Customizing the code
  • The panel is bg-indigo-950 with white feature cards; change the panel color and the indigo-100 and indigo-200 text classes together.
  • Remove sm:translate-y-6 from the feature cards to line them up in a straight grid.

Editor fields

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

  • Eyebrowtext
  • Headingtext
  • Heading levelselect
  • Introtextarea
  • What you can doarray
  • Sign-in button texttext
  • Sign-in linktext
  • Enroll button texttext
  • Enroll linktext
  • App notetext
  • Help line texttext
  • Help line phonetext
  • Privacy notetext