Skip to content

Block 87 of 297

Mega Footer

Site footer with link columns, address and contact, social links, a newsletter form and a legal row.

Puck key
FooterMegaBlock
Export
footerMegaBlock
React component
<FooterMega />
Path
components/puck/footer-mega-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 full site footer: an identity column with name, tagline, address, phone, email and social icons; up to five link columns; a newsletter card; and a copyright and legal row. Columns go from one across on phones to three on tablets.

  • A parks district or city department site with many sections
  • A nonprofit footer that combines contact details and a monthly newsletter
  • Any site that needs public records, privacy and accessibility links on every page
Writing the content
  • Use up to 5 Link columns with 1 to 10 links each. Three or four columns of four or five links keep the footer scannable.
  • Copy Form action URL and Email field name from your list provider's embed code. Leave Newsletter heading blank to hide the whole signup card.
  • Update Copyright year each January. Copyright holder falls back to the Organization name when blank.
  • Social links take up to 6 profiles; Screen reader label is optional.
Accessibility
  • Social icon links have visually hidden names, and the icons themselves are hidden.
  • The newsletter form is labelled by its heading, and the email input has a hidden "Email address" label.
  • Column and newsletter headings follow the Heading level field. Legal links sit in a nav labelled "Legal", and every link keeps a 44px minimum height with a focus outline.
Customizing the code
  • Hover color, focus outline and the Subscribe button all use indigo; change the indigo- classes and the focusRing constant.
  • Add a platform by extending the Platform type, platformNames and the SocialIcon switch.

Editor fields

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

  • Organization nametext
  • Taglinetextarea
  • Addresstextarea
  • Phonetext
  • Emailtext
  • Heading levelselect
  • Link columnsarray
  • Social linksarray
  • Newsletter headingtext
  • Newsletter texttextarea
  • Form action URLtext
  • Email field nametext
  • Button texttext
  • Copyright yeartext
  • Copyright holdertext
  • Legal linksarray