Skip to content

Case study · Behind the Build

The homepage constellation

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

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.

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

  1. 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 a wide screen: a dark sky with a few stars, the title "Ang Bagong Yugto" set upright on the left, an Open button at the top right and a short invitation line in the middle.
    The folded sky on first visit.
    The folded sky on a phone: the title and an Open button above a framed panel of stars with a short invitation line in the middle.
    The same view on a phone.
    The folded sky with the invitation "Noli me tángere… but please, do." and the word Click.
    One of the Rizal lines: "Noli me tángere… but please, do."
    The folded sky with the invitation "To click, or not to click." and "That is the question."
    One of the Shakespeare lines: "To click, or not to click."
  2. 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 wide screen: seven labelled Highlights, each with small photo tiles around it and thin lines to the centre and to each other.
    The opened sky.
    The opened sky on a phone: the Highlights in two staggered columns inside a framed panel, each with a label under its marker.
    On a phone the Highlights sit in fixed staggered rows.
  3. 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 opened sky with the Events Highlight in front: a preview card lists two events with their dates and places and says Click to zoom into Events.
    The preview of Events.
  4. 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.

    Try this on the live site

    A single Highlight, Events, with a list of its two upcoming events on the left and the Highlight with two photo tiles on the right.
    Inside Events: the list on the left, the Highlight in the sky.
    On a phone, the Events Highlight opens as a full view with the Highlight above and the list below.
    On a phone the Highlight opens as a full view.
  5. Its entries

    Each Highlight lists its own entries. Project Taho, for example, shows the taho cart and its flavours, and ends with a link to the Tahooo Corner page.

    Try this on the live site

    The Project Taho Highlight: a list of the Tahooo Corner page and eight flavours on the left, and the Highlight with photo tiles of each flavour on the right.
    Project Taho and its flavours.
    On a phone, the Project Taho Highlight with the list of flavours below it.
    The same on a phone.
  6. 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).

    Try this on the live site

    The Blogs Highlight with one story open on the left: its photo, date, title, summary, tags, a Read the full story button and Previous and Next buttons.
    A story open inside Blogs.
    On a phone, a story open as a full view with its photo, title and a Read the full story button.
    The same on a phone.
    Community Impact for 2025: the year's entries listed with dates and places, and the Highlight's photo tiles in the sky.
    Community Impact, year 2025.
    On a phone, Community Impact for 2025 with the sky above and the year's entries listed below.
    The same on a phone.
  7. Switching Highlights and stepping out

    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.

  8. 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.

  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.

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)
    The Blogs Highlight with one story open beside the sky.
    Blogs, with a story open.

    All stories

  • Events

    Community and cultural events, pop-ups, festivals

    What
    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)
    The Events Highlight with its upcoming events listed.
    Events, with two upcoming events.

    All events

  • Community Impact

    Every year, the same community

    What
    A record of the community's work, year by year.
    Fed by
    Community Impact entries.
    Rule
    One star per year, newest year first. A year opens a list of its entries in calendar order, and each year is also a link.
    Size
    The Highlight showed 3 entries on Nov 27, 2026 (a snapshot, not live)
    Community Impact for 2025 with its entries listed.
    Community Impact, year 2025.

    All of Community Impact

  • Merkado Byggnadsavdelning

    Construction by Tindero Pedro

    What
    Merkado Byggnadsavdelning, the construction business by Tindero Pedro. Its page is in Swedish.
    Fed by
    Fixed content from the site's code, not the database: its page and its services.
    Rule
    Always shown, even before any service is listed. It has a star for its page and one for each service.
    The Byggnadsavdelning Highlight with its page and four services listed, and photo tiles in the sky.
    Merkado Byggnadsavdelning and its services.

    Visit Merkado Byggnadsavdelning

  • Merkado PH Digital

    Branding, marketing, websites and consulting

    What
    Merkado PH Digital: branding, marketing, websites and consulting.
    Fed by
    Fixed content from the site's code, not the database: its page and its services.
    Rule
    Always shown. It has a star for its page and one for each service.
    The Merkado PH Digital Highlight with its page and four services listed.
    Merkado PH Digital and its services.

    Visit Merkado PH Digital

  • Project Taho

    Tahooo Corner: taho for your event in Gothenburg

    What
    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)
    The Project Taho Highlight with the Tahooo Corner page and its flavours listed.
    Project Taho and its flavours.

    Visit Tahooo Corner

  • Bulletin Board

    Embassy news, notices and offers

    What
    Embassy news, community notices and offers.
    Fed by
    Bulletin Board items and current offers.
    Rule
    Up to 6 notices (by their set priority, then newest) and up to 4 current offers.
    Size
    The Highlight showed 6 notices and offers on Nov 27, 2026 (a snapshot, not live)
    The Bulletin Board Highlight with six notices listed by title, category and month.
    The Bulletin Board, six notices.

    Bulletin Board

Under the hood

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.

engine.tshighlights-world.tsxhighlights-stage.tsxhighlights-home.tsxChecked

Motion and battery

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.

highlights.tshighlights-home.tsxChecked

Results

Measured, with the date. Phone figures are from emulated phones, not real devices.

Label overlaps after the tap-target fix
0 in 40 landscape-phone loads (before: 47 in 68)
Measured . Emulated phones in headless Chrome, development server. Not real devices.
Squares that open their own Highlight
280 of 280 landscape loads checked
Measured . Emulated, as above.
Real taps that opened the right Highlight
125 of 126 in landscape
Measured . Emulated, as above.

What's next

  • Test the sky on real iPhones and Android phones. So far phones are emulated.