Contact & newsletter
How to reach you, and a form to write to you, side by side. Plus a newsletter box for the end of a page. The form uses the regular form parts; Momo only adds the contact list and the one-line sign-up form.
Contact
Contact
Say hello
Questions, ideas or a bug: we read everything and answer within a day.
- Emailhello@example.com
- ChatWeekdays, 9:00 to 17:00
- Office12 Example Street, Springfield
<div class="grid lg:grid-cols-2 gap-10">
<div>
<div class="section-head">
<span class="eyebrow">Contact</span>
<h2>Say hello</h2>
<p>Questions, ideas or a bug: we read everything and answer within a day.</p>
</div>
<ul class="contact-list">
<li><span class="feature-icon bg-yellow-soft"><i class="mi mi-mail" aria-hidden="true"></i></span><div><b>Email</b><a href="#">hello@example.com</a></div></li>
<li><span class="feature-icon bg-violet-soft"><i class="mi mi-messages" aria-hidden="true"></i></span><div><b>Chat</b><span>Weekdays, 9:00 to 17:00</span></div></li>
<li><span class="feature-icon bg-green-soft"><i class="mi mi-map-pin" aria-hidden="true"></i></span><div><b>Office</b><span>12 Example Street, Springfield</span></div></li>
</ul>
</div>
<form class="card card-body" onsubmit="event.preventDefault(); Momo.toast({ title: 'Message sent', color: 'green', icon: 'check' }); this.reset()">
<div class="grid sm:grid-cols-2 gap-x-4">
<div class="form-field"><label class="form-label" for="ct-name">Name</label><input class="form-control" id="ct-name" autocomplete="name" required></div>
<div class="form-field"><label class="form-label" for="ct-email">Email</label><input class="form-control" id="ct-email" type="email" autocomplete="email" required></div>
</div>
<div class="form-field">
<label class="form-label" for="ct-topic">About</label>
<select class="form-select" id="ct-topic"><option>A question</option><option>An idea</option><option>Something is broken</option></select>
</div>
<div class="form-field"><label class="form-label" for="ct-msg">Message</label><textarea class="form-control" id="ct-msg" rows="4" required></textarea></div>
<button class="btn btn-brand" type="submit">Send message</button>
</form>
</div>Newsletter
.signup-form: an email box and a button on one line.
Get the newsletter
One email a month. No spam, ever.
<div class="box p-6 hstack flex-wrap justify-between gap-6">
<div>
<h3 class="m-0">Get the newsletter</h3>
<p class="text-muted m-0">One email a month. No spam, ever.</p>
</div>
<form class="signup-form" onsubmit="event.preventDefault(); Momo.toast('Thanks! Check your inbox.')">
<label class="visually-hidden" for="nl-email">Email</label>
<input class="form-control" id="nl-email" type="email" placeholder="you@example.com" autocomplete="email" required>
<button class="btn btn-brand" type="submit">Subscribe</button>
</form>
</div>Classes
| Class | Does |
|---|---|
.contact-list | Ways to reach you: an icon tile (.feature-icon), a label (b) and a link or text |
.signup-form | Email box and button on one line (they wrap when narrow), at most 448px |
.signup-note | Small print under it |
For a sign-up box in a big colored panel near the end of a page, see the jumbotron.
A form needs somewhere to send its messages: a form service or your own server. Momo only draws it.