Skip to content

Intro Panel Below Hero Slider: Component Order Changed by Owner

Adityo Guni Waluyo

Changing component order in Next.js App Router: intro panel moved below HeroSlider following product owner directive. Data sections follow order, render streaming changes, but fetch stays on the same page.

TL;DR

Product owner moved KotaPortal's intro panel below the hero slider across three pillar pages, giving each a colored letterhead. The panel pulls its own settings data, so moving it changes render and streaming order even though fetches stay in one Promise.all. Client slider over server sections works fine in App Router; verify with tsc, tests, and a screenshot.

Mode: mode-explainer (reader promise: understand server/client composition in one page). Slug per locale: - id: /blog/kotaportal-panel-intro-di-bawah-hero-slider - en: /blog/kotaportal-intro-panel-below-hero-slider

Brand fiction: KotaPortal (verbatim, both locales).

---

Intro Panel Below Hero Slider: Component Order Changed by Product Owner

Commit 1c74052 reads in one sentence: the intro panel was pulled out of BidangProfile and placed directly under HeroSlider, following the kebudayaan page pattern. That decision came from the product owner as a UX directive, not from a technical debate among developers.

Before that commit landed, the intro panel was treated as a pure visual element. It lived inside BidangProfile, one block with the division profile, and no one questioned its placement. That assumption turned out to be wrong.

Not Just a Visual Element, But a Component with Its Own Data

The intro panel turned out to be a self-contained component with its own data needs: intro text comes from settings bidang_intro_kebudayaan, and the program name comes from settings bidang_program_kebudayaan. This component is not a static markup snippet pasted on top of another component. A section rendered inside a page is fed by that page's fetch, and Server Components process data on the server before sending the rendered result [1].

The implication is straightforward. Moving the intro panel is not just moving a piece of UI. The component order changes, the render order changes, and the data flow adjusts accordingly, even though all fetches stay on the same page.

The new composition runs in sequence:

`` HeroSlider (client) panel intro (server) event list BidangProfile (server) `

HeroSlider is marked use client for autoplay and user interaction; the intro panel remains a server component because its text comes from settings.

This pattern is valid in Next.js App Router. Layouts and pages are Server Components by default, and client components are used for interactivity. A client leaf like HeroSlider can render first, then server sections follow without blocking page streaming. There is no conflict between them; what matters is the composition order.

A small note on HeroSlider: it has autoplay, and carousel accessibility requirements (pause on hover/focus, stop/restart buttons) are handled at the component level, separate from the server section render order below it [3]. That is not the page's concern.

Pattern Repeated Across Three Pillars

Three consecutive commits follow the same pattern:

` 1c74052 (kebudayaan) bafdfef (kepemudaan) 67a0815 (olahraga) `

All three place the intro panel as a "letterhead" — a division color accent bar, icon, title + context chip on one line, meeting description — below the slider. The only difference is the accent color: emerald for kebudayaan, red for olahraga, blue for kepemudaan [4][5][6].

This is not coincidence. The product owner wants the pillar identity visible right after the hero, before dynamic content like events or entity lists. Visual order = information hierarchy: hero (brand) then letterhead (pillar) then events (activity) then profile (detail).

What Does Not Change and Checklist

Data fetching stays on the same page. The following functions are used:

` getHeroSlides getSettings getAnnouncements getCategories getEntities `

All remain in Promise.all in kebudayaan/page.tsx. The only difference is the JSX order in return. Server Components in Next.js are memoized per request, so identical fetches in the same tree do not duplicate [1]. Changing render order does not add requests.

Cleanup: no dead code. BidangProfile receives prop introPanelHidden so it does not render the intro panel twice. The following imports stay:

` Container getCategoryIcon HeroSlider `

TypeScript clean, vitest 11/11 passing.

From this experience, a reusable pattern:

` Identify data sections -- which sections need their own fetch, which only receive props Move JSX order -- render order = visual order = streaming order to browser Check client/server boundary -- client component above, server component below = valid Clean dead props/state -- introPanelHidden here; in other cases could be unused state, import, or fetch slot Verify: tsc + test + screenshot -- don't just watch compile. Headless screenshot confirms DOM order at 1440px viewport. ``

A section never moves alone. It always drags its render order with it, and in App Router render order = streaming order. That is why the intro panel below the hero slider feels "right" — not because of design, but because data and render move together.

---

Sources: Next.js docs Fetching Data, Next.js docs Server and Client Components, W3C WAI-ARIA Carousel Pattern, Commit 1c74052, Commit bafdfef, Commit 67a0815.

Related articles