Community proof footer in HTML, CSS and vanilla JS
A copy-paste Community proof footer in plain HTML and CSS, with vanilla JavaScript: no framework, no build step, MIT-licensed.
Live preview
Source (copy-ready)
<section class="dcl-community-proof-footer" data-dcl-scheme="light" aria-labelledby="dcl-community-proof-footer-title"><header class="dcl-community-proof-footer__header"><h2 id="dcl-community-proof-footer-title">Community proof footer</h2><p class="dcl-community-proof-footer__muted">Participation evidence and community destinations share one footer band.</p></header><footer><div class="dcl-community-proof-footer__proof"><p><strong>128 teams</strong> reviewed the migration guide this month.</p><p><strong>96%</strong> of release rehearsals had a named rollback owner.</p></div><nav aria-label="Community footer"><ul class="dcl-community-proof-footer__links"><li><a href="#dcl-community-proof-footer-forum">Forum</a></li><li><a href="#dcl-community-proof-footer-events">Events</a></li><li><a href="#dcl-community-proof-footer-contribute">Contribute</a></li></ul></nav></footer><section id="dcl-community-proof-footer-forum" tabindex="-1" class="dcl-community-proof-footer__target"><h3>Forum</h3><p>Forum destination.</p></section><section id="dcl-community-proof-footer-events" tabindex="-1" class="dcl-community-proof-footer__target"><h3>Events</h3><p>Events destination.</p></section><section id="dcl-community-proof-footer-contribute" tabindex="-1" class="dcl-community-proof-footer__target"><h3>Contribute</h3><p>Contribute destination.</p></section><script>(()=>{const root=document.currentScript.closest(".dcl-community-proof-footer");if(!root||root.dataset.dclBound)return;root.dataset.dclBound="1";const instance=Array.from(document.getElementsByClassName("dcl-community-proof-footer")).indexOf(root);if(instance>0){for(const el of [root,...root.querySelectorAll("*")]){for(const attr of ["id","aria-labelledby","aria-controls","aria-describedby","for","name"]){if(el.hasAttribute(attr))el.setAttribute(attr,el.getAttribute(attr)+"--"+instance)}const href=el.getAttribute("href");if(href&&href.startsWith("#"))el.setAttribute("href",href+"--"+instance)}}const preference=matchMedia("(prefers-color-scheme: dark)"),apply=()=>{root.dataset.dclScheme=preference.matches?"dark":"light"};preference.addEventListener("change",apply);apply();const q=(s)=>root.querySelector(s),qa=(s)=>Array.from(root.querySelectorAll(s));})();</script></section>
<style>
.dcl-community-proof-footer{color:#11292f;background-color:#ffffff;color-scheme:light;font:1rem/1.45 system-ui,sans-serif;padding:.8rem;border:1px solid #697f84;border-radius:.6rem;overflow-wrap:anywhere}
.dcl-community-proof-footer *{box-sizing:border-box}.dcl-community-proof-footer h2,.dcl-community-proof-footer h3{line-height:1.15;margin-block:0 .6rem}.dcl-community-proof-footer a{color:#005c62}
.dcl-community-proof-footer button,.dcl-community-proof-footer input,.dcl-community-proof-footer select,.dcl-community-proof-footer textarea,.dcl-community-proof-footer summary{min-block-size:44px;border:1px solid #697f84;border-radius:.3rem;padding:.4rem .65rem;font:inherit;color:#11292f;background-color:#e4edef}
.dcl-community-proof-footer input,.dcl-community-proof-footer select,.dcl-community-proof-footer textarea{background-color:#ffffff}.dcl-community-proof-footer input[type="radio"],.dcl-community-proof-footer input[type="checkbox"]{min-block-size:auto;inline-size:auto}
.dcl-community-proof-footer button,.dcl-community-proof-footer summary{cursor:pointer}.dcl-community-proof-footer button:hover,.dcl-community-proof-footer summary:hover{color:#ffffff;background-color:#00535a}
.dcl-community-proof-footer button:focus-visible,.dcl-community-proof-footer input:focus-visible,.dcl-community-proof-footer select:focus-visible,.dcl-community-proof-footer textarea:focus-visible,.dcl-community-proof-footer summary:focus-visible,.dcl-community-proof-footer a:focus-visible{outline:3px solid #005c62;outline-offset:2px}
.dcl-community-proof-footer details{color:#11292f;background-color:#ffffff;border:1px solid #697f84;border-radius:.4rem;margin-block-start:.6rem}.dcl-community-proof-footer summary{font-weight:650}
.dcl-community-proof-footer dialog{color:#11292f;background-color:#ffffff;border:1px solid #697f84;border-radius:.6rem;max-inline-size:min(34rem,92vw);padding:1rem}
.dcl-community-proof-footer table{border-collapse:collapse;inline-size:100%;color:#11292f;background-color:#ffffff}.dcl-community-proof-footer th,.dcl-community-proof-footer td{padding:.4rem;text-align:start;border-block-end:1px solid #697f84}.dcl-community-proof-footer th{color:#11292f;background-color:#e4edef}
.dcl-community-proof-footer [hidden]{display:none!important}.dcl-community-proof-footer__muted{color:#405a60}.dcl-community-proof-footer__panel{color:#405a60;background-color:#ffffff}.dcl-community-proof-footer__well{color:#11292f;background-color:#e4edef}.dcl-community-proof-footer__primary,.dcl-community-proof-footer__badge{color:#ffffff;background-color:#00535a}.dcl-community-proof-footer__badge{border-radius:999px;padding:.1rem .45rem;font-size:.8rem;font-weight:700}
.dcl-community-proof-footer[data-dcl-scheme="dark"]{color:#eff8f9;background-color:#142f36;color-scheme:dark;border-color:#839fa5}.dcl-community-proof-footer[data-dcl-scheme="dark"] a{color:#8fe1da}
.dcl-community-proof-footer[data-dcl-scheme="dark"] button,.dcl-community-proof-footer[data-dcl-scheme="dark"] input,.dcl-community-proof-footer[data-dcl-scheme="dark"] select,.dcl-community-proof-footer[data-dcl-scheme="dark"] textarea,.dcl-community-proof-footer[data-dcl-scheme="dark"] summary{color:#eff8f9;background-color:#1c3c44;border-color:#839fa5}
.dcl-community-proof-footer[data-dcl-scheme="dark"] input,.dcl-community-proof-footer[data-dcl-scheme="dark"] select,.dcl-community-proof-footer[data-dcl-scheme="dark"] textarea{background-color:#142f36}.dcl-community-proof-footer[data-dcl-scheme="dark"] button:hover,.dcl-community-proof-footer[data-dcl-scheme="dark"] summary:hover{color:#11292f;background-color:#8fe1da}
.dcl-community-proof-footer[data-dcl-scheme="dark"] button:focus-visible,.dcl-community-proof-footer[data-dcl-scheme="dark"] input:focus-visible,.dcl-community-proof-footer[data-dcl-scheme="dark"] select:focus-visible,.dcl-community-proof-footer[data-dcl-scheme="dark"] textarea:focus-visible,.dcl-community-proof-footer[data-dcl-scheme="dark"] summary:focus-visible,.dcl-community-proof-footer[data-dcl-scheme="dark"] a:focus-visible{outline-color:#8fe1da}
.dcl-community-proof-footer[data-dcl-scheme="dark"] details,.dcl-community-proof-footer[data-dcl-scheme="dark"] dialog,.dcl-community-proof-footer[data-dcl-scheme="dark"] table{color:#eff8f9;background-color:#142f36;border-color:#839fa5}.dcl-community-proof-footer[data-dcl-scheme="dark"] th{color:#eff8f9;background-color:#1c3c44}.dcl-community-proof-footer[data-dcl-scheme="dark"] th,.dcl-community-proof-footer[data-dcl-scheme="dark"] td{border-color:#839fa5}
.dcl-community-proof-footer[data-dcl-scheme="dark"] .dcl-community-proof-footer__muted{color:#b0c9ce}.dcl-community-proof-footer[data-dcl-scheme="dark"] .dcl-community-proof-footer__panel{color:#b0c9ce;background-color:#142f36}.dcl-community-proof-footer[data-dcl-scheme="dark"] .dcl-community-proof-footer__well{color:#eff8f9;background-color:#1c3c44}.dcl-community-proof-footer[data-dcl-scheme="dark"] .dcl-community-proof-footer__primary,.dcl-community-proof-footer[data-dcl-scheme="dark"] .dcl-community-proof-footer__badge{color:#11292f;background-color:#8fe1da}
@media (prefers-reduced-motion:reduce){.dcl-community-proof-footer *{transition:none!important;animation:none!important}}
.dcl-community-proof-footer__proof{display:grid;grid-template-columns:1fr 1fr;gap:.7rem;border-block-start:1px solid #697f84;padding-block-start:1rem}.dcl-community-proof-footer__proof p{margin:0;padding:.7rem;background-color:#e4edef;color:#11292f;border-radius:.4rem}.dcl-community-proof-footer[data-dcl-scheme="dark"] .dcl-community-proof-footer__proof p{background-color:#1c3c44;color:#eff8f9}.dcl-community-proof-footer__links{display:flex;gap:1rem;list-style:none;padding:0}@media(max-width:34rem){.dcl-community-proof-footer__proof{grid-template-columns:1fr}}</style>
When to use
Use when verifiable participation evidence helps visitors trust community resources. Keep the metric source and period clear.
Avoid
Do not use invented follower counts or icon-only links whose destination is impossible to infer.
Accessibility
Community metrics are complete text statements and navigation remains structured links rather than icon-only social buttons. Footer links and controls are real native elements with visible focus. Light link text is #005c62 on #ffffff (7.02:1), body text #405a60 on #ffffff (7.37:1); dark link text is #8fe1da on #142f36 (8.72:1), body text #b0c9ce on #142f36 (8.12:1).
Was this useful? Send feedback.