The homepage as an interactive sky: seven Highlights, their latest content, and threads between items that share a tag.
Live on the site · Last updated
01
The problem and the solution
Problem
Merkado PH is one business with seven very different strands: stories, events, a yearly record of community work, two service businesses, a taho cart and a bulletin board. The front page had to show them as one community, without a long menu.
Solution
I built the homepage as an interactive sky. Each strand is a Highlight, its newest content are smaller stars around it, and items that share a tag are joined by a thread. It is a d3 force layout drawn from the same server data as the rest of the site. Every view has its own link, and the same content is also listed as ordinary sections below the sky.
02
Walkthrough
Step through the experience as a visitor sees it. The screenshots are real, taken from the site, and follow your light or dark setting.
Step 1 of 9: A folded sky
Step 1 of 9
A folded sky
The page opens with a quiet, folded sky and a short invitation to open it. The invitation is one of 14 lines, seven that nod to José Rizal and Filipino sayings and seven that play on Shakespeare. One is picked at random on load, and a different one each time the sky folds again. The two writers are a personal nod: I liked reading Shakespeare in my literature classes, and in college a minor subject on the Life and Works of Rizal was where I felt at ease, a break from the maths and programming.
The folded sky on first visit.The same view on a phone.
One of the Rizal lines: "Noli me tángere… but please, do."One of the Shakespeare lines: "To click, or not to click."
Step 2 of 9
Open the sky
Clicking the sun, or the Open button, unfolds the whole constellation. The Highlights spread out, their newest content hangs around them as photo tiles and dots, and faint threads join items that share a tag. The layout is random on every load, so no two visits look the same.
The opened sky.On a phone the Highlights sit in fixed staggered rows.
Step 3 of 9
Hover or focus a Highlight
Hovering a Highlight with a mouse brings it forward, dims the rest and shows a small preview: its description and its first entries. Clicking it zooms in. On a phone there is no hover, so a tap opens the Highlight straight away.
The preview of Events.
Step 4 of 9
Zoom into a Highlight
A click zooms into one Highlight and opens a list of its entries beside the sky. The address changes to ?world=events, so this view can be linked to, and the Back button steps out again.
Project Taho and its flavours.The same on a phone.
Step 6 of 9
One entry, and years
Opening an entry shows it beside the sky, with Previous and Next to move through the Highlight. Community Impact is grouped by year, with one star per year, and a year is also a link (?world=impact&year=2025).
Escape, or the Back button, steps out one level at a time: entry, year, Highlight, sky. Stepping out returns keyboard focus to the Highlight you came from, so you never lose your place. Each step forward is a history entry, so Back behaves as people expect.
Step 8 of 9
On a phone
Held upright, a phone gets a different layout: the title and intro above a framed panel, with the Highlights in fixed, staggered rows and at most two photos each (the rest are dots that still link). Touch does not drag the stars, so swipes scroll the page. Held sideways, a phone gets the full sky like a wider screen. The phone shots in the steps above show this layout.
Step 9 of 9
Keyboard, screen readers and reduced motion
Every Highlight is a button you can reach with Tab and open with Enter or Space, and its name, count and description are read out. The sky is a visual layer: the same content is listed as normal sections and links further down the page. With reduced motion switched on, the stars stop drifting and zooms and scrolls happen at once.
Use the buttons, the left and right arrow keys or swipe to change step.
03
The seven Highlights
Each Highlight, with its real name and line from the homepage, what feeds it and the rule that picks what appears.
Blogs
Stories from Merkado PH and our community
What
Stories from Merkado PH and the community.
Fed by
Blog posts.
Rule
The pinned post first, then the 10 newest published posts (the pinned one is not repeated). Its hub shows the total number of published posts.
Size
The Highlight showed 10 posts on Nov 27, 2026 (a snapshot, not live)
Community and cultural events, pop-ups and festivals.
Fed by
Events.
Rule
Up to 10 upcoming events. When nothing is coming up, the 5 most recent events instead, and the Highlight says so ("Our most recent events" and a link to the archive).
Size
The Highlight showed 2 events on Nov 27, 2026 (a snapshot, not live)
Project Taho, with Tahooo Corner: taho for events in Gothenburg.
Fed by
Fixed content from the site's code, not the database: the cart page and the flavour menu.
Rule
Always shown. It has a star for the Tahooo Corner page and one for each flavour. Blogs and events tagged Tahooo are joined to its page star by a thread.
Size
The Highlight showed 9 entries on Nov 27, 2026 (a snapshot, not live)
How it is built. File names are application source files; each note was checked against the code on the date shown.
Layout
A d3 force simulation places the stars: Highlights repel each other strongly, photo tiles and dots less, and a collision force keeps them apart. Each load starts from random positions, which is why the sky differs every time. The engine is a separate chunk loaded by a dynamic import, so it is not part of the first load.
engine.tshighlights-stage.tsxChecked
Colours
The engine reads its colours from the page's CSS custom properties, which have one set for the night sky (dark) and one for the day sky (light). When the visitor's colour scheme changes, it rebuilds the sky. No colour is written into the script.
engine.tshighlights.module.cssChecked
State in the address
Which Highlight is open, which year and which entry are mirrored in the URL (?world=, ?year=, ?entry=). Opening a level pushes a history entry, and the Back button listens to it, so every view is linkable and Back steps out one level.
highlights-stage.tsxChecked
Labels in their own layer
SVG paints in document order, so photo tiles drawn later covered earlier labels. Moving the labels would have broken the keyboard order, so they are drawn in a separate top layer that follows every movement. The layer is hidden from screen readers because each Highlight already carries its name.
engine.tsChecked
Clear space for the Open button
Wide screens reserve a corner for the Open/Fold button: a Highlight or its label that would land under it is moved below it.
engine.tshighlights-stage.tsxChecked
Phone layout
A media query for phones held upright (up to 767 px wide, portrait) switches the engine to a fixed layout in a framed panel instead of the force layout. Touch does not drag stars.
engine.tstypes.tsChecked
Keyboard and screen readers
Each Highlight is a focusable button that opens with Enter or Space. Escape steps out one level, and focus returns to the Highlight. Tap targets have an invisible 44 px circle around the 10 px marker. The same content is rendered as normal HTML sections after the sky.
With reduced motion, the stars do not drift and zooms and scrolls are instant. Animations also pause when the sky is off screen or the tab is hidden.
engine.tshighlights-stage.tsxChecked
One list of Highlights
The seven Highlights are defined once, and both the homepage and this page read that list. A Highlight added there shows up on this page as a visible gap until it has a description.