A dark podcast footer built with Tailwind CSS: the latest three episode links with durations, listen buttons for podcast apps, a copy RSS feed button, host contact details and a sponsor inquiry form in a dialog. Use this podcast website footer example at the bottom of a show site, an episode page or a creator's audio blog.
How it works
The root .pcf-root holds a short show-notes section and the footer.pcf-footer. From lg up the footer is a 12-column grid: the brand block with the listen buttons, a nav with the latest episodes, and an address block with the hosts, email and the sponsor card. On phones the three blocks stack in one column.
Each episode is an a.pcf-ep card. The script turns data-pcf-dur (seconds) into "48 min" and data-pcf-days into "3 days ago" or "2 weeks ago". The data-pcf-next pill counts the days to the next Thursday release, shown without a year, and data-pcf-year gets the current year.
The Copy RSS button copies the URL in data-pcf-copy and reports the result in a live region. Sponsor inquiry opens the native <dialog> .pcf-dialog. Its form checks the company and email, marks errors with aria-invalid, then shows a thank-you panel with the email and the chosen start month (the next three months are generated). Add your fetch() call in the setTimeout inside initDialog.
Customization
- Change
bg-[#18181b]on.pcf-rootandbackgroundonbodyinstyle.csstogether to recolour the page and footer. - Replace
#f59e0bin the badge, button and border utilities to use another accent colour. data-pcf-daysanddata-pcf-duron each.pcf-ep: set the age and the length of an episode; the labels update on load.RELEASE_DAYinscript.js: the weekday of new episodes (4 = Thursday) used by thedata-pcf-nextpill.data-pcf-copyon the Copy RSS button: your real feed URL.- Edit the radio options in the
formatfieldset to match your ad formats.
Use cases
- Podcast websites: listeners find the newest episodes and their preferred app from any page.
- Episode and show-notes pages: the footer leads to the next episode once the transcript ends.
- Creator and media brands: sponsors send a campaign request without leaving the page.
- Company podcasts on a blog: the RSS button helps readers subscribe in any app.
Accessibility
The footer uses nav elements with labels, column headings and an address for contact details. Episode numbers are read as "Episode 128" through visually hidden text, and social links use generic icons with the network name in hidden text. The dialog has aria-labelledby, closes with Escape, the close button or a backdrop click, and returns focus to the opener. Status messages use aria-live="polite". All controls are at least 40 px tall, have a visible amber focus ring and drop transitions under prefers-reduced-motion.
Usage notes
Space Grotesk and Inter load from Google Fonts. Each footer needs its own ids if you place more than one on a page.