A dark five-page website for an astronomy club and public observatory: drag the big drawn moon through its phases, and each page's constellation joins up as you scroll.
React + HTML
5 páginas
$69
Endereço da página: /
Mais abaixo ↓
Já incluído
O que você recebe
Só escuroFeito para uma página escura
Desktop, tablet e celularAs telas para as quais foi feito
Pacotes…
Tamanho do código…
Leve para a bateria30 fps, em repouso quando parado
Pausa quando ocultoFora da tela ou em outra aba
Reduzir movimentoCalmo para quem pede
Verificado a cada mudança
Verificação de tiposTypeScript strict
Lint e formataçãoESLint · Prettier
Testes e buildCapturas de tela claras e escuras
Auditoria de segurançaSem alertas de gravidade alta ou crítica
Idade dos pacotesToda versão pública há 7+ dias
CPU em repousoMenos de meio núcleo em repouso, ≤ 30 fps
Código
Algo errado com este modelo? Enviar feedback ›
observatory-phaseHTML
index.htmlpageThe home page and all its text, one marked block per section.
sky.htmlpageThe sky page and all its text, one marked block per section.
events.htmlpageThe events page and all its text, one marked block per section.
membership.htmlpageThe membership page and all its text, one marked block per section.
visit.htmlpageThe visit page and all its text, one marked block per section.
theme.cssthemeThe colors and fonts in one place.
send.jsformThe one function the form calls: plug in your form endpoint here.
sectionssectionsOne file per page section.
booking.csssectionThe booking section: the night picker, the group size, the details, and the ticket once booked.
booking.jssectionThe booking section: the next public nights as radio cards with their moons, the group-size stepper, the form sent with sendBooking, and the ticket once booked (and on later visits).
dome.csssectionThe observatory itself: the drawn dome (or your photo) beside its story and four figures.
dome.jssectionThe observatory at dusk, drawn (or your photo): its shutter slides open and the telescope tilts up when it scrolls into view.
events-list.csssectionThe calendar: the type filter, the saved count and every event with its Save button.
events-list.jssectionThe calendar's filter by type (announced) and the Save buttons, kept in this browser.
finds.csssectionThree things to find this month: a drawn view of each (or your photo), where to look and what to see it with.
getting-here.csssectionGetting to the ridge: the address, the drive with its headlight rule, and what to bring.
groups.csssectionA short note for schools and scout troops, pointing to the booking form.
hero.csssectionThe home page's first screen: the giant thin headline, two ways in, the moon you drag through its month and the ridge below.
hero.jssectionThe home hero's moon: drawn with its seas and craters, lit to tonight's phase, and dragged (or stepped with the keys) through its month.
join-band.csssectionThe membership invitation under a planet's glowing edge rising from below.
join.csssectionThe join section: the form with its plan cards and demo card fields, or the member's drawn card once joined.
join.jssectionThe join section: the plan cards set the plan, the form is checked and sent with sendMembership, and the member's card shows once joined (and on later visits).
moon-month.csssectionThis month's moon, night by night: a small moon for every date, tonight ringed, with the new and full moon dates.
moon-month.jssectionThis month's moons: a small moon for every date, tonight ringed, and the dates of the new and full moon.
numbers.csssectionThe club in four numbers, counted up as they scroll into view.
perks.csssectionWhat members get: four perks, each with a line icon in a ring.
planets.csssectionThe planets up tonight, one row each: a drawn planet, where to look, when, and what to see it with.
plans.csssectionThe three yearly plans side by side, the most chosen one raised.
programs.csssectionThe four ways in: drawn night scenes in dome-shaped frames, at staggered heights like stars.
sky-chart.csssectionThe sky chart: the round map of tonight's sky, its hour slider and the names switch.
sky-chart.jssectionThe sky chart: the stars over the ridge at the hour on the slider (north up, east on the left), with a switch for the names.
sky-head.csssectionThe Sky tonight page's head: tonight's date and moon beside the intro.
sky-head.jssectionThe Sky tonight head: writes tonight's date, the moon's phase and how lit it is.
steps.csssectionHow a telescope night goes, in three steps along a line from dusk to the second hour.
tips.csssectionFour short tips for a first night out, each under a thin red rule like a lamp's glow.
tonight.csssectionTonight in one strip: the moon, full dark, the best planet and the next public night.
tonight.jssectionTonight's strip: writes the moon's phase and the next public night into their spots.
partspartsWhat several sections share.
art-sky.jspartThe Sky tonight drawings: the three targets to find and the small planets.
art.jspartThe four night scenes of the ways in, and drawArt: what puts a drawing into every [data-art] spot that has no photo.
check.jspartThe form checks the join and booking forms share: each input's data-pattern, its data-error shown under it, the focus on the first wrong one.
constellation.csspartThe page's constellation behind its sections (parts/constellation.js), and the small mark in the top bar.
constellation.jspartThe page-wide motif: the page's constellation, its stars down the edges, joined line by line as you scroll, and the header's mark filling in with it.
count-up.jspartCounts every [data-count-up] number up from zero the first time it scrolls into view (the club's numbers).
event-row.csspartOne event on the calendar (home and Events): its date and the moon that night, title, time and place, with room for an action.
field.csspartThe form fields the join and booking forms share: labels, inputs, error lines, radio cards and the form's send row.
footer.csspartThe foot of every page: the club in a line, hours, address, page links, contact, the red-light note and the pause button.
footer.jspartThe footer's pause button: stops the page's endless motion (the twinkling stars, the turning star trails and the lamps).
header.csspartThe top bar on every page: logo, the page's constellation mark, page links, the booking button and the phone menu.
header.jspartThe phone menu: the button opens and closes it, Escape closes it with the focus back on the button.
moon.jspartThe moon for any night: its phase, the shape of its lit part, the dates the site counts from, and every small moon on the page.
motion.jspartThe shared helpers, as the site's one global: window.observatoryPhase (motion checks, words from the page, browser storage).
page.csspartWhat every page shares: the reset, the column, the titles, the buttons and links, the focus ring and the reveals.
reveal.jspartHolds back every [data-reveal] element below the fold until it scrolls into view; each one's CSS says how it arrives.
scroll-rail.jspartFollows the reading line down an element as you scroll: what drives the constellation, with no look of its own.
stars.csspartThe night behind every page: three layers of fixed stars and two that twinkle, plus the idle motions the drawings share.
index.html
The home page and all its text, one marked block per section.
Carregando…
Ideal para
Astronomy clubs, public observatories, planetariums and dark-sky parks that run star parties, talks and telescope nights.
Como funciona
Drag the moon through its month, turn the sky chart by the hour, filter events, join with a demo checkout and book a night.
Como usar
Abra o index.html ou coloque a pasta em qualquer servidor estático. Os textos estão em index.html, as cores e fontes em theme.css e a função de envio do formulário em send.js. O restante está na parte Plain HTML do README.md.