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 pages
$69
Adresse de la page : /
Suite plus bas ↓
Intégré
Ce que vous obtenez
Sombre uniquementConçu pour une page sombre
Ordinateur, tablette et téléphoneLes écrans pour lesquels il est conçu
Paquets…
Taille du code…
Économe en batterie30 i/s, au repos quand rien ne bouge
Pause quand masquéHors écran ou autre onglet
Mouvement réduitCalme pour ceux qui le demandent
Vérifié à chaque modification
Vérification des typesTypeScript strict
Lint et formatESLint · Prettier
Tests et buildCaptures claires et sombres
Audit de sécuritéAucune vulnérabilité élevée ou critique
Ancienneté des paquetsChaque version publique depuis 7 jours ou plus
CPU au reposMoins d’un demi-cœur au repos, ≤ 30 i/s
Code
Un problème avec ce template ? Envoyer un avis ›
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.
Chargement…
Idéal pour
Astronomy clubs, public observatories, planetariums and dark-sky parks that run star parties, talks and telescope nights.
Fonctionnement
Drag the moon through its month, turn the sky chart by the hour, filter events, join with a demo checkout and book a night.
Utilisation
Ouvrez index.html, ou placez le dossier sur n’importe quel serveur statique. Les textes sont dans index.html, les couleurs et les polices dans theme.css, la fonction d’envoi du formulaire dans send.js. La partie HTML simple de README.md donne le reste.
Aucun paquet en plusReact seulement, rien d’autre
55,2 ko gzippé · 74 fichiersLe téléchargement complet