Home / Snippets / Footers / Public culture newsletter footer
Try the design Preview widthFit panel Mobile · 390 px Tablet · 768 px Desktop · 1280 px Open demo ↗
Preview links stay in the example. Copy the source to use your own destinations. Form previews never send information.
Copy the source HTML CSS JavaScript Astro
Copy HTML <footer class="fct-public-culture-footer" data-snippet="public-culture-footer">
<div class="c-inner">
<div class="c-footer-services">
<a href="visit.html"><span>Plan a visit</span><span aria-hidden="true">↗</span></a
><a href="programme.html"
><span>Explore the programme</span><span aria-hidden="true">↗</span></a
><a href="support.html"
><span>Support the next chapter</span><span aria-hidden="true">↗</span></a
>
</div>
<div class="c-footer-main">
<section class="c-newsletter" aria-labelledby="fct-public-culture-footer-updates">
<p class="c-kicker">NEWS FROM PUBLIC</p>
<h2 id="fct-public-culture-footer-updates">A little culture<br />in your inbox.</h2>
<p>Exhibitions, conversations and new things to discover.</p>
<form action="#" method="post" data-demo-form>
<fieldset disabled>
<legend class="c-visually-hidden">Newsletter signup</legend>
<label for="fct-public-culture-footer-email">Email address</label>
<div class="c-email-row">
<input
id="fct-public-culture-footer-email"
name="email"
type="email"
autocomplete="email"
maxlength="254"
placeholder="you@example.com"
required
/><button type="submit">Sign up <span aria-hidden="true">→</span></button>
</div>
<label class="c-consent"
><input name="consent" type="checkbox" required /><span
>I agree to receive email updates.
<a href="privacy.html">Read the privacy notice.</a></span
></label
>
</fieldset>
<p class="c-form-status" role="status">Demonstration form. No information is sent.</p>
</form>
</section>
<nav class="c-footer-directory" aria-label="Footer">
<details open>
<summary>Explore</summary>
<ul>
<li><a href="visit.html">Visit</a></li>
<li><a href="programme.html">What’s on</a></li>
<li><a href="stories.html">Stories</a></li>
<li><a href="collections.html">Collections</a></li>
</ul>
</details>
<details open>
<summary>About</summary>
<ul>
<li><a href="about.html">Our purpose</a></li>
<li><a href="people.html">People</a></li>
<li><a href="careers.html">Work with us</a></li>
<li><a href="press.html">Press</a></li>
</ul>
</details>
<details open>
<summary>Your visit</summary>
<ul>
<li><a href="access.html">Access</a></li>
<li><a href="contact.html">Contact</a></li>
<li><a href="membership.html">Membership</a></li>
<li><a href="help.html">FAQs</a></li>
</ul>
</details>
</nav>
</div>
<div class="c-footer-bottom">
<a class="c-public-brand" href="index.html" aria-label="Public home"
>PUBLIC<span aria-hidden="true">.</span></a
>
<div>
<p>Art. Ideas. Open conversations.</p>
<p class="c-footer-legal">
<span>© 2026 Public · Sample identity</span><a href="privacy.html">Privacy</a
><a href="accessibility.html">Accessibility</a>
</p>
</div>
</div>
</div>
</footer>
Copy CSS .fct-public-culture-footer {
--ink: #252a27;
--muted: #5c655f;
--line: #c7ccc4;
--accent: #294c39;
background: #fff;
color: var(--ink);
font:
16px/1.55 Arial,
Helvetica,
sans-serif;
}
.fct-public-culture-footer,
.fct-public-culture-footer * {
box-sizing: border-box;
}
.fct-public-culture-footer :is(h2, h3, h4, p, ul, figure, dl, dd) {
margin: 0;
}
.fct-public-culture-footer :is(h2, h3, h4) {
font-weight: 400;
line-height: 1.1;
letter-spacing: -0.04em;
}
.fct-public-culture-footer a {
color: inherit;
text-underline-offset: 4px;
}
.fct-public-culture-footer :is(input, select, button) {
font: inherit;
color: inherit;
}
.fct-public-culture-footer :is(a, button, input, select, summary):focus-visible {
outline: 3px solid #a33d12;
outline-offset: 4px;
}
.fct-public-culture-footer .c-inner {
max-width: 1360px;
margin: auto;
padding: 50px clamp(20px, 4vw, 56px);
}
.fct-public-culture-footer .c-kicker {
font-size: 0.8125rem;
letter-spacing: 0.04em;
text-transform: uppercase;
}
.fct-public-culture-footer .c-note {
font-size: 0.8125rem;
color: var(--muted);
}
.fct-public-culture-footer img {
display: block;
width: 100%;
height: auto;
}
.fct-public-culture-footer [hidden] {
display: none !important;
}
.fct-public-culture-footer .c-link {
display: flex;
align-items: center;
justify-content: space-between;
gap: 15px;
min-height: 44px;
text-decoration: none;
border-bottom: 1px solid currentColor;
padding-block: 10px;
}
.fct-public-culture-footer button {
min-height: 44px;
cursor: pointer;
}
.fct-public-culture-footer summary {
min-height: 44px;
align-content: center;
cursor: pointer;
}
.fct-public-culture-footer .c-visually-hidden {
position: absolute;
width: 1px;
height: 1px;
overflow: hidden;
clip-path: inset(50%);
white-space: nowrap;
}
@media (max-width: 700px) {
.fct-public-culture-footer .c-inner {
padding-block: 32px;
}
}
.fct-public-culture-footer {
--ink: #f7f6ef;
--muted: #b9c5c4;
--line: #506260;
--accent: #d8ef66;
background: #132c2b;
color: var(--ink);
}
.fct-public-culture-footer :is(a, button, input, summary):focus-visible {
outline-color: #e0f07a;
}
.fct-public-culture-footer .c-footer-services {
display: grid;
grid-template-columns: repeat(3, 1fr);
border-block: 1px solid #728481;
}
.fct-public-culture-footer .c-footer-services a {
display: flex;
justify-content: space-between;
align-items: center;
gap: 25px;
min-height: 88px;
text-decoration: none;
padding: 20px 25px;
font-size: 1.0625rem;
}
.fct-public-culture-footer .c-footer-services a:first-child {
padding-left: 0;
}
.fct-public-culture-footer .c-footer-services a + a {
border-left: 1px solid #506260;
}
.fct-public-culture-footer .c-footer-services a:last-child {
padding-right: 0;
}
.fct-public-culture-footer .c-footer-main {
display: grid;
grid-template-columns: 1.1fr 1.2fr;
gap: 80px;
padding: 45px 0 50px;
}
.fct-public-culture-footer .c-kicker {
font-size: 0.75rem;
color: #c3d1c6;
margin-bottom: 20px;
}
.fct-public-culture-footer h2 {
font-size: clamp(2rem, 3.6vw, 3.25rem);
line-height: 1.05;
letter-spacing: -0.04em;
}
.fct-public-culture-footer .c-newsletter > p:not(.c-kicker) {
font-size: 0.9375rem;
color: #c9d4d0;
max-width: 35ch;
margin-top: 18px;
}
.fct-public-culture-footer form {
margin-top: 28px;
}
.fct-public-culture-footer fieldset {
border: 0;
margin: 0;
padding: 0;
min-width: 0;
}
.fct-public-culture-footer label {
font-size: 0.8125rem;
}
.fct-public-culture-footer .c-email-row {
display: flex;
border-bottom: 1px solid #9aacaa;
margin-top: 8px;
}
.fct-public-culture-footer input[type="email"] {
width: 100%;
min-width: 0;
background: transparent;
border: 0;
padding: 12px 0;
min-height: 48px;
color: #fff;
font-size: 1rem;
}
.fct-public-culture-footer input::placeholder {
color: #afc0bb;
}
.fct-public-culture-footer button {
background: transparent;
border: 0;
color: #e0f07a;
padding: 10px 0 10px 16px;
display: flex;
align-items: center;
gap: 15px;
white-space: nowrap;
font-size: 0.9375rem;
}
.fct-public-culture-footer .c-consent {
display: flex;
align-items: start;
gap: 12px;
margin-top: 18px;
font-size: 0.75rem;
color: #cbd6d0;
line-height: 1.5;
}
.fct-public-culture-footer input[type="checkbox"] {
width: 18px;
height: 18px;
accent-color: #c9e66e;
margin: 2px 0 0;
flex: none;
}
.fct-public-culture-footer .c-form-status {
margin-top: 16px;
font-size: 0.75rem;
color: #cbd6d0;
min-height: 3em;
}
.fct-public-culture-footer .c-footer-directory {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 30px;
}
.fct-public-culture-footer .c-footer-directory summary {
font-size: 0.875rem;
font-weight: 700;
list-style: none;
border-bottom: 1px solid #73837f;
padding-bottom: 15px;
margin-bottom: 12px;
}
.fct-public-culture-footer summary::-webkit-details-marker {
display: none;
}
.fct-public-culture-footer ul {
list-style: none;
padding: 0;
display: grid;
gap: 3px;
}
.fct-public-culture-footer li a {
display: flex;
align-items: center;
min-height: 40px;
text-decoration: none;
font-size: 0.875rem;
color: #d1dcd4;
}
.fct-public-culture-footer li a:hover {
text-decoration: underline;
}
.fct-public-culture-footer .c-footer-bottom {
border-top: 1px solid #728481;
padding-top: 30px;
display: flex;
justify-content: space-between;
gap: 40px;
align-items: end;
}
.fct-public-culture-footer .c-public-brand {
font-size: clamp(3rem, 8vw, 7rem);
font-weight: 700;
letter-spacing: -0.075em;
line-height: 0.9;
text-decoration: none;
}
.fct-public-culture-footer .c-public-brand span {
color: #d8ef66;
}
.fct-public-culture-footer .c-footer-bottom > div {
text-align: right;
font-size: 0.9375rem;
color: #d1dcd4;
}
.fct-public-culture-footer .c-footer-legal {
display: flex;
justify-content: end;
flex-wrap: wrap;
gap: 20px;
margin-top: 20px;
font-size: 0.6875rem;
color: #bacbc2;
}
.fct-public-culture-footer .c-footer-legal a {
display: flex;
min-height: 32px;
align-items: center;
}
.fct-public-culture-footer .c-footer-legal span {
align-content: center;
}
@media (max-width: 1000px) {
.fct-public-culture-footer .c-footer-main {
gap: 40px;
grid-template-columns: 1fr 1.25fr;
}
.fct-public-culture-footer .c-footer-directory {
gap: 20px;
}
}
@media (max-width: 700px) {
.fct-public-culture-footer .c-footer-services {
grid-template-columns: 1fr;
}
.fct-public-culture-footer .c-footer-services a {
min-height: 68px;
padding: 15px 0 !important;
font-size: 1rem;
}
.fct-public-culture-footer .c-footer-services a + a {
border-left: 0;
border-top: 1px solid #506260;
}
.fct-public-culture-footer .c-footer-main {
grid-template-columns: 1fr;
gap: 35px;
padding-block: 35px;
}
.fct-public-culture-footer .c-footer-directory {
grid-template-columns: 1fr;
gap: 0;
}
.fct-public-culture-footer .c-footer-directory details {
border-top: 1px solid #506260;
padding-block: 6px;
}
.fct-public-culture-footer .c-footer-directory summary {
margin: 0;
border: 0;
padding: 6px 0;
list-style: disclosure-closed;
list-style-position: inside;
}
.fct-public-culture-footer .c-footer-directory summary::-webkit-details-marker {
display: initial;
}
.fct-public-culture-footer .c-footer-directory ul {
padding-bottom: 15px;
}
.fct-public-culture-footer .c-footer-bottom {
display: block;
}
.fct-public-culture-footer .c-footer-bottom > div {
text-align: left;
margin-top: 25px;
}
.fct-public-culture-footer .c-footer-legal {
justify-content: start;
gap: 10px 20px;
margin-top: 15px;
}
.fct-public-culture-footer .c-public-brand {
font-size: 4.6rem;
}
}
Copy JavaScript (() => {
for (const root of document.querySelectorAll('[data-snippet="public-culture-footer"]')) {
if (root.dataset.initialized) continue;
root.dataset.initialized = "true";
const form = root.querySelector("form");
form.querySelector("fieldset").disabled = false;
form.addEventListener("submit", (e) => {
e.preventDefault();
form.querySelector("[role=status]").textContent =
"Demo only: no information was sent. Connect your own newsletter backend before collecting subscriptions.";
});
const groups = root.querySelectorAll(".c-footer-directory details"),
mq = matchMedia("(max-width:700px)"),
layout = () => {
for (const group of groups) group.open = !mq.matches;
};
layout();
mq.addEventListener("change", layout);
}
})();
Copy Astro ---
// Original reusable section. Use unique IDs, selectors and radio names before duplicating.
---
<footer class="fct-public-culture-footer" data-snippet="public-culture-footer">
<div class="c-inner">
<div class="c-footer-services">
<a href="visit.html"><span>Plan a visit</span><span aria-hidden="true">↗</span></a
><a href="programme.html"
><span>Explore the programme</span><span aria-hidden="true">↗</span></a
><a href="support.html"
><span>Support the next chapter</span><span aria-hidden="true">↗</span></a
>
</div>
<div class="c-footer-main">
<section class="c-newsletter" aria-labelledby="fct-public-culture-footer-updates">
<p class="c-kicker">NEWS FROM PUBLIC</p>
<h2 id="fct-public-culture-footer-updates">A little culture<br />in your inbox.</h2>
<p>Exhibitions, conversations and new things to discover.</p>
<form action="#" method="post" data-demo-form>
<fieldset disabled>
<legend class="c-visually-hidden">Newsletter signup</legend>
<label for="fct-public-culture-footer-email">Email address</label>
<div class="c-email-row">
<input
id="fct-public-culture-footer-email"
name="email"
type="email"
autocomplete="email"
maxlength="254"
placeholder="you@example.com"
required
/><button type="submit">Sign up <span aria-hidden="true">→</span></button>
</div>
<label class="c-consent"
><input name="consent" type="checkbox" required /><span
>I agree to receive email updates.
<a href="privacy.html">Read the privacy notice.</a></span
></label
>
</fieldset>
<p class="c-form-status" role="status">Demonstration form. No information is sent.</p>
</form>
</section>
<nav class="c-footer-directory" aria-label="Footer">
<details open>
<summary>Explore</summary>
<ul>
<li><a href="visit.html">Visit</a></li>
<li><a href="programme.html">What’s on</a></li>
<li><a href="stories.html">Stories</a></li>
<li><a href="collections.html">Collections</a></li>
</ul>
</details>
<details open>
<summary>About</summary>
<ul>
<li><a href="about.html">Our purpose</a></li>
<li><a href="people.html">People</a></li>
<li><a href="careers.html">Work with us</a></li>
<li><a href="press.html">Press</a></li>
</ul>
</details>
<details open>
<summary>Your visit</summary>
<ul>
<li><a href="access.html">Access</a></li>
<li><a href="contact.html">Contact</a></li>
<li><a href="membership.html">Membership</a></li>
<li><a href="help.html">FAQs</a></li>
</ul>
</details>
</nav>
</div>
<div class="c-footer-bottom">
<a class="c-public-brand" href="index.html" aria-label="Public home"
>PUBLIC<span aria-hidden="true">.</span></a
>
<div>
<p>Art. Ideas. Open conversations.</p>
<p class="c-footer-legal">
<span>© 2026 Public · Sample identity</span><a href="privacy.html">Privacy</a
><a href="accessibility.html">Accessibility</a>
</p>
</div>
</div>
</div>
</footer>
<style is:global>
.fct-public-culture-footer {
--ink: #252a27;
--muted: #5c655f;
--line: #c7ccc4;
--accent: #294c39;
background: #fff;
color: var(--ink);
font:
16px/1.55 Arial,
Helvetica,
sans-serif;
}
.fct-public-culture-footer,
.fct-public-culture-footer * {
box-sizing: border-box;
}
.fct-public-culture-footer :is(h2, h3, h4, p, ul, figure, dl, dd) {
margin: 0;
}
.fct-public-culture-footer :is(h2, h3, h4) {
font-weight: 400;
line-height: 1.1;
letter-spacing: -0.04em;
}
.fct-public-culture-footer a {
color: inherit;
text-underline-offset: 4px;
}
.fct-public-culture-footer :is(input, select, button) {
font: inherit;
color: inherit;
}
.fct-public-culture-footer :is(a, button, input, select, summary):focus-visible {
outline: 3px solid #a33d12;
outline-offset: 4px;
}
.fct-public-culture-footer .c-inner {
max-width: 1360px;
margin: auto;
padding: 50px clamp(20px, 4vw, 56px);
}
.fct-public-culture-footer .c-kicker {
font-size: 0.8125rem;
letter-spacing: 0.04em;
text-transform: uppercase;
}
.fct-public-culture-footer .c-note {
font-size: 0.8125rem;
color: var(--muted);
}
.fct-public-culture-footer img {
display: block;
width: 100%;
height: auto;
}
.fct-public-culture-footer [hidden] {
display: none !important;
}
.fct-public-culture-footer .c-link {
display: flex;
align-items: center;
justify-content: space-between;
gap: 15px;
min-height: 44px;
text-decoration: none;
border-bottom: 1px solid currentColor;
padding-block: 10px;
}
.fct-public-culture-footer button {
min-height: 44px;
cursor: pointer;
}
.fct-public-culture-footer summary {
min-height: 44px;
align-content: center;
cursor: pointer;
}
.fct-public-culture-footer .c-visually-hidden {
position: absolute;
width: 1px;
height: 1px;
overflow: hidden;
clip-path: inset(50%);
white-space: nowrap;
}
@media (max-width: 700px) {
.fct-public-culture-footer .c-inner {
padding-block: 32px;
}
}
.fct-public-culture-footer {
--ink: #f7f6ef;
--muted: #b9c5c4;
--line: #506260;
--accent: #d8ef66;
background: #132c2b;
color: var(--ink);
}
.fct-public-culture-footer :is(a, button, input, summary):focus-visible {
outline-color: #e0f07a;
}
.fct-public-culture-footer .c-footer-services {
display: grid;
grid-template-columns: repeat(3, 1fr);
border-block: 1px solid #728481;
}
.fct-public-culture-footer .c-footer-services a {
display: flex;
justify-content: space-between;
align-items: center;
gap: 25px;
min-height: 88px;
text-decoration: none;
padding: 20px 25px;
font-size: 1.0625rem;
}
.fct-public-culture-footer .c-footer-services a:first-child {
padding-left: 0;
}
.fct-public-culture-footer .c-footer-services a + a {
border-left: 1px solid #506260;
}
.fct-public-culture-footer .c-footer-services a:last-child {
padding-right: 0;
}
.fct-public-culture-footer .c-footer-main {
display: grid;
grid-template-columns: 1.1fr 1.2fr;
gap: 80px;
padding: 45px 0 50px;
}
.fct-public-culture-footer .c-kicker {
font-size: 0.75rem;
color: #c3d1c6;
margin-bottom: 20px;
}
.fct-public-culture-footer h2 {
font-size: clamp(2rem, 3.6vw, 3.25rem);
line-height: 1.05;
letter-spacing: -0.04em;
}
.fct-public-culture-footer .c-newsletter > p:not(.c-kicker) {
font-size: 0.9375rem;
color: #c9d4d0;
max-width: 35ch;
margin-top: 18px;
}
.fct-public-culture-footer form {
margin-top: 28px;
}
.fct-public-culture-footer fieldset {
border: 0;
margin: 0;
padding: 0;
min-width: 0;
}
.fct-public-culture-footer label {
font-size: 0.8125rem;
}
.fct-public-culture-footer .c-email-row {
display: flex;
border-bottom: 1px solid #9aacaa;
margin-top: 8px;
}
.fct-public-culture-footer input[type="email"] {
width: 100%;
min-width: 0;
background: transparent;
border: 0;
padding: 12px 0;
min-height: 48px;
color: #fff;
font-size: 1rem;
}
.fct-public-culture-footer input::placeholder {
color: #afc0bb;
}
.fct-public-culture-footer button {
background: transparent;
border: 0;
color: #e0f07a;
padding: 10px 0 10px 16px;
display: flex;
align-items: center;
gap: 15px;
white-space: nowrap;
font-size: 0.9375rem;
}
.fct-public-culture-footer .c-consent {
display: flex;
align-items: start;
gap: 12px;
margin-top: 18px;
font-size: 0.75rem;
color: #cbd6d0;
line-height: 1.5;
}
.fct-public-culture-footer input[type="checkbox"] {
width: 18px;
height: 18px;
accent-color: #c9e66e;
margin: 2px 0 0;
flex: none;
}
.fct-public-culture-footer .c-form-status {
margin-top: 16px;
font-size: 0.75rem;
color: #cbd6d0;
min-height: 3em;
}
.fct-public-culture-footer .c-footer-directory {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 30px;
}
.fct-public-culture-footer .c-footer-directory summary {
font-size: 0.875rem;
font-weight: 700;
list-style: none;
border-bottom: 1px solid #73837f;
padding-bottom: 15px;
margin-bottom: 12px;
}
.fct-public-culture-footer summary::-webkit-details-marker {
display: none;
}
.fct-public-culture-footer ul {
list-style: none;
padding: 0;
display: grid;
gap: 3px;
}
.fct-public-culture-footer li a {
display: flex;
align-items: center;
min-height: 40px;
text-decoration: none;
font-size: 0.875rem;
color: #d1dcd4;
}
.fct-public-culture-footer li a:hover {
text-decoration: underline;
}
.fct-public-culture-footer .c-footer-bottom {
border-top: 1px solid #728481;
padding-top: 30px;
display: flex;
justify-content: space-between;
gap: 40px;
align-items: end;
}
.fct-public-culture-footer .c-public-brand {
font-size: clamp(3rem, 8vw, 7rem);
font-weight: 700;
letter-spacing: -0.075em;
line-height: 0.9;
text-decoration: none;
}
.fct-public-culture-footer .c-public-brand span {
color: #d8ef66;
}
.fct-public-culture-footer .c-footer-bottom > div {
text-align: right;
font-size: 0.9375rem;
color: #d1dcd4;
}
.fct-public-culture-footer .c-footer-legal {
display: flex;
justify-content: end;
flex-wrap: wrap;
gap: 20px;
margin-top: 20px;
font-size: 0.6875rem;
color: #bacbc2;
}
.fct-public-culture-footer .c-footer-legal a {
display: flex;
min-height: 32px;
align-items: center;
}
.fct-public-culture-footer .c-footer-legal span {
align-content: center;
}
@media (max-width: 1000px) {
.fct-public-culture-footer .c-footer-main {
gap: 40px;
grid-template-columns: 1fr 1.25fr;
}
.fct-public-culture-footer .c-footer-directory {
gap: 20px;
}
}
@media (max-width: 700px) {
.fct-public-culture-footer .c-footer-services {
grid-template-columns: 1fr;
}
.fct-public-culture-footer .c-footer-services a {
min-height: 68px;
padding: 15px 0 !important;
font-size: 1rem;
}
.fct-public-culture-footer .c-footer-services a + a {
border-left: 0;
border-top: 1px solid #506260;
}
.fct-public-culture-footer .c-footer-main {
grid-template-columns: 1fr;
gap: 35px;
padding-block: 35px;
}
.fct-public-culture-footer .c-footer-directory {
grid-template-columns: 1fr;
gap: 0;
}
.fct-public-culture-footer .c-footer-directory details {
border-top: 1px solid #506260;
padding-block: 6px;
}
.fct-public-culture-footer .c-footer-directory summary {
margin: 0;
border: 0;
padding: 6px 0;
list-style: disclosure-closed;
list-style-position: inside;
}
.fct-public-culture-footer .c-footer-directory summary::-webkit-details-marker {
display: initial;
}
.fct-public-culture-footer .c-footer-directory ul {
padding-bottom: 15px;
}
.fct-public-culture-footer .c-footer-bottom {
display: block;
}
.fct-public-culture-footer .c-footer-bottom > div {
text-align: left;
margin-top: 25px;
}
.fct-public-culture-footer .c-footer-legal {
justify-content: start;
gap: 10px 20px;
margin-top: 15px;
}
.fct-public-culture-footer .c-public-brand {
font-size: 4.6rem;
}
}
</style>
<script is:inline>
(() => {
for (const root of document.querySelectorAll('[data-snippet="public-culture-footer"]')) {
if (root.dataset.initialized) continue;
root.dataset.initialized = "true";
const form = root.querySelector("form");
form.querySelector("fieldset").disabled = false;
form.addEventListener("submit", (e) => {
e.preventDefault();
form.querySelector("[role=status]").textContent =
"Demo only: no information was sent. Connect your own newsletter backend before collecting subscriptions.";
});
const groups = root.querySelectorAll(".c-footer-directory details"),
mq = matchMedia("(max-width:700px)"),
layout = () => {
for (const group of groups) group.open = !mq.matches;
};
layout();
mq.addEventListener("change", layout);
}
})();
</script>
Code tabs need JavaScript. All source formats are included in the open downloads.
TAKE THE FILES Ready to adapt. Best for: Museums, galleries, cultural venues and community organizations.
Download HTML example 7.9 KB ZIP · no email required Download Astro component 5.7 KB ZIP · no email required
Dependencies System fonts, scoped CSS and vanilla JavaScript. No framework required.
Source size 11.9 KB before compression Prepare form markup ↗
Where this design fits Useful next steps lead into a newsletter area and structured navigation. The email form demonstrates native validation and explicit consent without sending information. On phones, native disclosures make the link directory easier to scan.
Visit, programme and support links Newsletter layout with explicit consent Native mobile directory disclosures The real-site reference V&A museum website ↗
The V&A pairs email updates with an extensive directory of visit, organization and support information. Public adapts that service-first hierarchy with original branding, copy, styling and a non-delivering demo form. Reference inspected 2 November 2026. This example has its own branding, content and code; it is not affiliated with the reference product.
What is included The HTML ZIP includes a standalone demo, reusable markup, scoped CSS, its small JavaScript runtime, a license and setup notes. The Astro ZIP includes Snippet.astro. It can be imported into an existing Astro page or layout.
Connect a real form backend These forms demonstrate layout and native browser validation. No messages are sent. Configure the form action, remove the demo interception and disabled fieldset, then implement delivery, server validation and spam handling on your backend. Test actual success and error responses before publishing. An appointment request does not confirm availability.
Add it to an HTML website Copy snippet.html into the relevant page section. Load snippet.css after your existing site stylesheet. The class prefix identifies this design. Load snippet.js once with defer. Keep the included keyboard behavior when adapting interactions. Replace example content and check mobile widths, zoom, links and keyboard focus in your actual website. Use it in Astro Copy Snippet.astro into src/components/, import it into your page or shared layout, and insert the component where the section belongs. Keep each generated prefix unique if you duplicate a component on one page.
Keep the section maintainable Start with the variables at the top of the CSS for background, text and accent colors. Preserve semantic labels and focus styles. Existing site selectors can still affect imported markup, so test the combined result. Read the complete setup notes .