Send yours
A white rounded card asking for pictures: an empty framed drop tile, an email field and one blue pill button.
Part of the style
Pastel Wave Snapshots
7 parts that belong together, with their tokens, type and rules.
https://kitbash.me/components/pastel-wave-snapshots/send/figma.html?palette=d2e0f716c6febc19
Use the Figma MCP server (https://mcp.figma.com/mcp). Download https://kitbash.me/components/pastel-wave-snapshots/send/figma.html?palette=d2e0f716c6febc19 and pass that whole HTML document to the html_to_figma tool, so the part "Send yours" lands as editable layers in my open Figma file. Fonts come from Google Fonts: if a face is missing in Figma, pick the closest one.
Code
<style>
/* Goes after the pack's base.css */
:root {
--ink: #010000;
--ink-soft: #1d0c0b;
--frame: #f97249;
--paper: #f15b29;
--dot: rgba(77, 30, 29, 0.349);
--scrim: rgba(1, 0, 0, 0.851);
--shadow-ink: rgba(1, 0, 0, 0.149);
--link: #6d0300;
--link-deep: #540703;
--ribbon-blue: #682222;
--ribbon-teal: #a06966;
--ribbon-cream: #977370;
--ribbon-pink: #8d5461;
}
</style>
<section class="send">
<form class="send__card" action="#" onsubmit="return false">
<label class="send__drop">
<input class="send__file" type="file" accept="image/*">
<span class="send__plus" aria-hidden="true">+</span>
<span class="send__hint">drop a picture of someone looking at the sea</span>
</label>
<div class="send__side">
<h2 class="send__title">got one?</h2>
<p class="send__text">we take paintings, postcards and your aunt's holiday slides. backs of heads only.</p>
<label class="send__label" for="send-email">your email</label>
<input class="send__field" id="send-email" type="email" placeholder="you@somewhere.sea" autocomplete="email">
<button class="send__button" type="submit">send it in</button>
<p class="send__done" aria-live="polite"></p>
</div>
</form>
</section>
<style>
.send {
padding: var(--section-space) var(--edge);
}
.send__card {
display: grid;
grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
gap: var(--space-l);
max-width: var(--column);
margin: 0 auto;
padding: var(--space-l);
border-radius: var(--radius-frame);
background: var(--frame);
box-shadow: var(--shadow);
}
.send__drop {
position: relative;
display: grid;
place-content: center;
justify-items: center;
gap: var(--space-s);
aspect-ratio: 1;
padding: var(--space-m);
border: 2px dashed var(--ribbon-blue);
border-radius: var(--radius-photo);
background: var(--paper);
text-align: center;
cursor: pointer;
transition: background-color var(--quick) var(--ease), transform var(--quick) var(--ease);
}
.send__drop:hover { background: var(--ribbon-cream); transform: scale(1.02); }
.send__drop:focus-within { outline: 3px solid var(--link); outline-offset: 3px; }
.send__file {
position: absolute;
inset: 0;
opacity: 0;
cursor: pointer;
}
.send__plus {
display: grid;
place-items: center;
width: 56px;
height: 56px;
border-radius: var(--radius-pill);
background: var(--frame);
box-shadow: var(--shadow);
color: var(--ink);
font-size: var(--text-l);
font-weight: 800;
}
.send__hint {
max-width: 14em;
font-size: var(--text-s);
font-style: italic;
font-weight: 700;
}
.send.is-picked .send__drop { background: var(--ribbon-teal); }
.send__side {
display: flex;
flex-direction: column;
justify-content: center;
}
.send__title {
margin: 0;
color: var(--ink);
font-size: var(--display);
font-weight: 800;
line-height: var(--display-leading);
letter-spacing: var(--display-track);
}
.send__text {
margin: var(--space-s) 0 var(--space-l);
font-size: var(--text-s);
}
.send__label {
margin-bottom: var(--space-xs);
color: var(--ink);
font-size: var(--text-s);
font-weight: 700;
}
.send__field {
min-height: 44px;
padding: 0 var(--space-m);
border: var(--rule) solid var(--ink-soft);
border-radius: var(--radius-field);
background: var(--frame);
color: var(--ink);
font: 400 var(--text-m) var(--font-body);
}
.send__field:focus { outline: 3px solid var(--link); outline-offset: 1px; border-color: var(--link); }
.send__button {
align-self: flex-start;
min-height: 44px;
margin-top: var(--space-m);
padding: 0 var(--space-l);
border: 0;
border-radius: var(--radius-pill);
background: var(--link);
color: var(--frame);
font: 700 var(--text-m) var(--font-body);
cursor: pointer;
transition: background-color var(--quick) var(--ease), transform var(--quick) var(--ease);
}
.send__button:hover { background: var(--link-deep); transform: scale(1.04); }
.send__button:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.send__done { min-height: 1.3em; margin: var(--space-s) 0 0; font-size: var(--text-s); font-weight: 700; color: var(--link); }
@media (max-width: 40rem) {
.send__card { grid-template-columns: 1fr; padding: var(--space-m); }
.send__drop { aspect-ratio: 16 / 9; }
}
@media (prefers-reduced-motion: reduce) {
.send__drop:hover, .send__button:hover { transform: none; }
}
</style>
<script>
(() => {
for (const root of document.querySelectorAll('.send')) {
const file = root.querySelector('.send__file');
const hint = root.querySelector('.send__hint');
const done = root.querySelector('.send__done');
file.addEventListener('change', () => {
if (!file.files.length) return;
root.classList.add('is-picked');
hint.textContent = file.files[0].name;
});
root.querySelector('.send__card').addEventListener('submit', () => {
const email = root.querySelector('.send__field');
done.textContent = email.checkValidity() && email.value ? 'got it. we will have a look.' : 'we need an email first.';
});
}
})();
</script>