No.334 · Footers
Sign-off Footer
A footer that ends the page the way a letter ends: one large closing line, a live clock for where you are, and an email you can copy in one click.
The prompt
The design brief behind this component — reuse it to regenerate, remix, or explain it.
Design a closing footer for a portfolio that ends like a letter. One very large Instrument Serif line ('Let's make something careful.', clamp 2.6–6rem, first letter italic). Under it, a row: on the left a bone email pill; on the right two quiet lines — a green availability dot with a slow pulse, and a live clock in tabular mono for the owner's city (Intl.DateTimeFormat with the owner's timeZone), followed by how far ahead or behind the visitor that is ('4h ahead of you'), so they know when to expect a reply. Clicking the email copies it: inside a one-line window the address lifts out and 'Copied — talk soon' rises in (520ms expo-out), the pill turns the accent colour, and the copy glyph fades as a check draws. A hairline base row holds © year and owner, a few 'elsewhere' links and 'Back to top ↑'. Implementation requirements: Use React and TypeScript. Keep the component self-contained, with uniquely scoped CSS and no animation libraries. Include required imports, styles and font setup in the result. Interaction: Click the email to copy it; the clock ticks every second; Back to top scrolls smoothly. Motion: 520ms text exchange in the pill, 380ms tick draw, 2.4s availability pulse. Accessibility: A <footer> with a labelled nav; the pill is a button labelled with the address; 'Email copied' is announced. Reduced motion removes the exchange and pulse. Responsive behavior: The line and pill scale with clamp(); the row wraps on small screens. Touch: Tap to copy; nothing hover-dependent. Preserve keyboard access, visible focus and reduced-motion behavior. Keep fictional demo data and simulated service calls in a separate usage example; expose callbacks for real actions and recover from rejected requests. Keep usage-example links inside the demo: use local buttons or prevent navigation. Demonstration links must not navigate to Vitrine routes or open other pages; preserve real URL support in the reusable component itself. Verify the result at narrow and wide viewport sizes, with keyboard input and reduced motion enabled.
Notes
- Interaction
- Click the email to copy it; the clock ticks every second; Back to top scrolls smoothly.
- Motion
- 520ms text exchange in the pill, 380ms tick draw, 2.4s availability pulse.
- Accessibility
- A <footer> with a labelled nav; the pill is a button labelled with the address; 'Email copied' is announced. Reduced motion removes the exchange and pulse.
- Responsive
- The line and pill scale with clamp(); the row wraps on small screens.
- On touch
- Tap to copy; nothing hover-dependent.