Studio mail
The Field Notes proofs are in
Hi team,
We’ve got the first set back from the printer. The warm grey stock gives the cover photograph a softer edge. I’d keep it uncoated.
Can we lock the paper choice before Thursday’s press check?
Mara
Cover photographWebP · 13 KBInitial server-rendered HTML
<section class="comm-frame" data-communication="mail" data-draft-scope="bb8f055e-dc62-4545-afa2-a10a519b05c5" data-mobile-view="list" data-comm-focus="" hx-target="closest [data-communication]" hx-swap="outerHTML settle:0ms" hx-sync="closest [data-communication]:drop" hx-history="false">
<header class="comm-mast"><div class="comm-title"><svg class="comm-icon" aria-hidden="true" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.65" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="5" width="18" height="14" rx="3"/><path d="m4 7 8 6 8-6"/></svg><h1>Studio mail</h1></div><span class="comm-identity">studio@north.example</span></header>
<div class="comm-split comm-mail-split" data-rlw-split data-rlw-snap data-rlw-snap-key="mail-reader"><aside id="mail-message-list" class="comm-list" aria-label="Mail folders and messages"><nav class="comm-folders" aria-label="Mail folders"><a href="/layouts/mail?folder=inbox" hx-get="/demo/layouts/mail?folder=inbox" hx-push-url="/layouts/mail?folder=inbox" aria-current="page"><svg class="comm-icon" aria-hidden="true" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.65" stroke-linecap="round" stroke-linejoin="round"><path d="m3 13 3-8h12l3 8v5a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1z"/><path d="M3 13h5l2 3h4l2-3h5"/></svg>Inbox<span>4</span></a><a href="/layouts/mail?folder=archive" hx-get="/demo/layouts/mail?folder=archive" hx-push-url="/layouts/mail?folder=archive"><svg class="comm-icon" aria-hidden="true" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.65" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="4" width="18" height="4" rx="1"/><path d="M5 8v11h14V8m-10 4h6"/></svg>Archive<span>1</span></a></nav>
<div class="comm-listing"><a class="comm-mail-item" href="/layouts/mail?folder=inbox&thread=proofs" hx-get="/demo/layouts/mail?folder=inbox&thread=proofs" hx-push-url="/layouts/mail?folder=inbox&thread=proofs" aria-current="true">
<span aria-hidden="true" class="rl-avatar comm-avatar comm-clay comm-small">ML</span><span class="comm-mail-copy"><span class="comm-mail-line"><strong>Mara Lind</strong><span>09:41</span></span>
<span class="comm-subject"> <span class="comm-draft" data-comm-draft-for="proofs" hidden>Draft</span> The Field Notes proofs are in</span><span class="comm-snippet">We’ve got the first set back from the printer.</span></span></a><a class="comm-mail-item" href="/layouts/mail?folder=inbox&thread=materials" hx-get="/demo/layouts/mail?folder=inbox&thread=materials" hx-push-url="/layouts/mail?folder=inbox&thread=materials">
<span aria-hidden="true" class="rl-avatar comm-avatar comm-moss comm-small">JP</span><span class="comm-mail-copy"><span class="comm-mail-line"><strong>Julian Park</strong><span>08:26</span></span>
<span class="comm-subject"> <span class="comm-draft" data-comm-draft-for="materials" hidden>Draft</span> <i class="comm-unread" aria-hidden="true"></i><span class="comm-sr">Unread: </span>Material library update</span><span class="comm-snippet">Two new finishes for the Arc collection.</span></span></a><a class="comm-mail-item" href="/layouts/mail?folder=inbox&thread=bookings" hx-get="/demo/layouts/mail?folder=inbox&thread=bookings" hx-push-url="/layouts/mail?folder=inbox&thread=bookings">
<span aria-hidden="true" class="rl-avatar comm-avatar comm-sky comm-small">IC</span><span class="comm-mail-copy"><span class="comm-mail-line"><strong>Iris Chen</strong><span>Tue</span></span>
<span class="comm-subject"> <span class="comm-draft" data-comm-draft-for="bookings" hidden>Draft</span> <i class="comm-unread" aria-hidden="true"></i><span class="comm-sr">Unread: </span>November studio bookings</span><span class="comm-snippet">Here’s the revised plan for shoot week.</span></span></a><a class="comm-mail-item" href="/layouts/mail?folder=inbox&thread=packing" hx-get="/demo/layouts/mail?folder=inbox&thread=packing" hx-push-url="/layouts/mail?folder=inbox&thread=packing">
<span aria-hidden="true" class="rl-avatar comm-avatar comm-rose comm-small">SB</span><span class="comm-mail-copy"><span class="comm-mail-line"><strong>Sofia Bell</strong><span>Mon</span></span>
<span class="comm-subject"> <span class="comm-draft" data-comm-draft-for="packing" hidden>Draft</span> A note on the new packaging</span><span class="comm-snippet">The test cartons held up on their first trip.</span></span></a></div></aside><div class="rlw-split-handle" role="separator" tabindex="0"
aria-label="Resize message list" aria-controls="mail-message-list" aria-orientation="vertical"
aria-valuemin="30" aria-valuemax="52" aria-valuenow="33"></div><section class="comm-reader" aria-label="Open message"><div class="comm-reader-bar">
<a class="comm-back" href="/layouts/mail?folder=inbox" hx-get="/demo/layouts/mail?folder=inbox" hx-push-url="/layouts/mail?folder=inbox"><svg class="comm-icon" aria-hidden="true" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.65" stroke-linecap="round" stroke-linejoin="round"><path d="m14 6-6 6 6 6"/></svg> Messages</a><span class="comm-tag"><i></i>Field Notes</span>
<form method="post" action="/demo/layouts/mail/move" hx-post="/demo/layouts/mail/move" data-rl-form><input type="hidden" name="thread" value="proofs"><input type="hidden" name="folder" value="inbox"><input type="hidden" name="destination" value="archive">
<button class="comm-text-action" type="submit"><svg class="comm-icon" aria-hidden="true" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.65" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="4" width="18" height="4" rx="1"/><path d="M5 8v11h14V8m-10 4h6"/></svg>Archive</button><p class="comm-error" data-rl-form-error role="alert" hidden></p></form></div>
<div class="comm-letter"><h2 tabindex="-1" data-comm-heading>The Field Notes proofs are in</h2>
<div class="comm-byline"><span aria-hidden="true" class="rl-avatar comm-avatar comm-clay">ML</span><span><strong>Mara Lind</strong><small>To you</small></span><time>Today · 09:41</time></div>
<div class="comm-letter-body"><p>Hi team,</p><p>We’ve got the first set back from the printer. The warm grey stock gives the cover photograph a softer edge. I’d keep it uncoated.</p><p>Can we lock the paper choice before Thursday’s press check?</p><p>Mara</p></div><a class="comm-attachment" href="/studio-lamp.webp" download="field-notes-cover.webp" aria-label="Download Field Notes cover photograph">
<img src="/studio-lamp.webp" alt="" width="72" height="52"><span><strong>Cover photograph</strong><small>WebP · 13 KB</small></span><svg class="comm-icon" aria-hidden="true" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.65" stroke-linecap="round" stroke-linejoin="round"><path d="M12 3v12m-5-5 5 5 5-5M4 16v4h16v-4"/></svg></a></div>
<form class="comm-reply-form" method="post" action="/demo/layouts/mail/reply" hx-post="/demo/layouts/mail/reply" data-rl-form data-comm-compose="proofs">
<input type="hidden" name="thread" value="proofs"><input type="hidden" name="folder" value="inbox"><input type="hidden" name="nonce" value="22c4e81f-d2d0-4918-a00d-3d66619e805b">
<label for="mail-reply"><svg class="comm-icon" aria-hidden="true" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.65" stroke-linecap="round" stroke-linejoin="round"><path d="m10 5-6 6 6 5m-6-5h9c5 0 7 3 7 7"/></svg>Reply to Mara</label>
<textarea id="mail-reply" class="rl-textarea" name="message" rows="2" maxlength="1600" required placeholder="Write your reply…"></textarea>
<div id="mail-error"><p class="comm-error" data-rl-form-error role="alert" hidden></p></div><button class="rl-button rl-button-primary rl-button-sm" type="submit">Send reply <svg class="comm-icon" aria-hidden="true" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.65" stroke-linecap="round" stroke-linejoin="round"><path d="m4 5 16 7-16 7 3-7zm3 7h13"/></svg></button>
</form></section></div>
</section>HTTP exchange
Use the preview to see the request and the HTML your server returns.Use in your app
GET /demo/layouts/mail renders the selected folder and message. The reply and move forms post to /demo/layouts/mail/reply and /demo/layouts/mail/move. On wide layouts, the Resizable divider learns where you leave the edge of the message list.
Serve these assets from the download’s public/ directory. Add the tags to your page head.
Page assets
<link rel="stylesheet" href="/mero.css">
<link rel="stylesheet" href="/mero-workspace.css">
<link rel="stylesheet" href="/communication-layouts.css">
<script defer src="/vendor/htmx.min.js"></script>
<script defer src="/mero.js"></script>
<script defer src="/mero-forms.js"></script>
<script defer src="/mero-workspace.js"></script>
<script defer src="/communication-layouts.js"></script>Server source · site/communication-layouts.mjs
Download full example source ↓