Screenery

Longshadow

UV index and sun-safety app page template ยท Health and body

Open live preview Open full screen Download .zip

Longshadow, an UV index and sun-safety app page: the first screen at desktop width

A 1970s supergraphic wall: flat painted grounds in chocolate, mustard, deep teal and rust, with five-band stripes that run along each section and bend round its corners in concentric curves, set in rounded Caprasimo.

The page is a 1970s supergraphic wall. Five painted bands in teal, mustard, tangerine, rust and chocolate run along the bottom of the first screen and turn up its right side in one concentric curve, and the same bands wrap round the corners of the planner, the download form and the footer. Inside the first bend sit the headline and a drawn phone showing today's UV for the place you picked.

The planner is the centre. Pick one of eight places from London to Queenstown, a skin type from I to VI, the sky and what you are wearing, and the hourly UV for a clear Saturday 28 November is worked out from the sun's height over that place. The curve is drawn as the same bundle of stripes and bends from one day to the next; the care window, a reapply schedule every two hours, and an SPF and teaspoon guide that adds up the day's millilitres follow it. Northern places in late November honestly come out low, and the page says there is nothing to do. Drag or arrow along the chart, or open it as a table.

Below are the shadow rule with a drawn figure whose shadow follows the chosen hour, a lock screen of the day's reminders, the UV scale as a stepped band, the download and morning-card signup with validation, loading, error and success, and questions in careful, non-medical wording. Everything is drawn in SVG and CSS. There are no photographs.

The brand is fictional: Longshadow, a UV index and sunscreen reminder app from Falmouth, Cornwall. Names, people and figures on the page are invented.

What works

  • UV planner: place, skin type, sky and clothing recompute the curve, care window, reminders and sunscreen amount
  • Striped UV curve bends from one day to the next; pointer or arrow keys read any quarter hour
  • Hourly table alternative with shadow length per hour
  • Shadow rule: hour slider moves the sun and the figure's shadow
  • Phone mock in the hero follows the planner
  • Signup: email and phone validation, loading, error with retry, success, use another email
  • Questions accordion

States you can link to

script.js reads these from the URL, so you can open the page in a given state to review it, screenshot it or show it to an agent.

ParameterWhat it does
?place=londona northern winter day: peak UV 1, no care hours, no reminders, no sunscreen needed. Open ?place=london
?place=queenstowna southern early-summer day: peak 11, care 09:05 to 18:00, five reapply reminders. Open ?place=queenstown
?skin=1skin type I (any 1 to 6); types I and II also shade the UV 2 hours. Open ?skin=1
?skin=6skin type VI: sunscreen reminders start at UV 6. Open ?skin=6
?sky=overcastthick grey cloud (also clear, broken). Open ?sky=overcast
?wear=swimswimwear: seven teaspoons a layer (also tee, long). Open ?wear=swim
?hour=9sets the chart readout and the shadow scene to 09:00 (any 4 to 22, decimals allowed). Open ?hour=9
?table=1opens the hourly table. Open ?table=1
?state=loadingthe signup form while it sends. Open ?state=loading
?state=successthe link-sent state. Open ?state=success
?state=errorthe failed-to-send state with retry. Open ?state=error

Use it

Copy templates/supergraphic/ into your project, or download the zip, which has the Screenery badge script already removed. Colours, type, spacing and radii are custom properties at the top of style.css. This template loads no libraries: only its own files and web fonts.

The docs explain the token pattern and how to move a template into React, Vue, Svelte or Astro. The guide has prompts for handing it to a coding agent.

Back to all 178 templates