Skip to content

Landing page

The marketing page of Halyard, a product that does not exist. A landing page asks a component library the opposite question from an app, not whether it can hold six hundred rows, but whether these parts make one page somebody wants to read.

The whole page is one file: docs/.vitepress/demos/examples/landing.tsx. It is live, switch the pricing to monthly, page through the quotes, open a question in the FAQ.

Composition

BlockComponentsWorth noticing
NavPlToolbar PlTextLink PlButtonrender={<header />} makes it a real landmark, and position="sticky" keeps the call to action reachable
HeroPlChip PlTypography PlButton PlAvatar PlRatingThe stacked avatars are a PlStack, a negative margin and a ring, and nothing about avatars
Product viewsPlTabs PlTab PlTabPanel PlAspectRatioThree panels of the same shape, so switching between them does not move the page
FeaturesPlGrid PlGridItem PlCard PlIconOne responsive span on each item (twelve, then six, then three) is the whole rule for that row
VoicesPlCarousel PlBlockquoteBuilt on scroll snap, so it swipes on a phone and reverses under RTL
PricingPlSegmentedButton PlCard PlChip PlIcon PlButtonMonthly and yearly are one value out of two, and the featured plan is elevation={3} rather than a different colour
FAQPlAccordion PlAccordionItemOne panel starts open, because a closed accordion looks like a list of headings
Sign-up stripPlTextField PlButton PlTextLinkA real <form> with a real type="submit", so Enter works from inside the field
FooterPlDivider PlTextLinkunderline="hover". A row of permanently underlined links reads as a warning

Notes

  • The featured plan is marked with elevation and a chip, not a saturated fill. A page of coloured cards has nothing left to emphasise with.
  • The section backgrounds are --plass-glass-press, the same token the library uses for a recessed surface. The bands are the page's own structure rather than a palette invented for this file.
  • Every heading is a PlTypography level, so the type scale on this page is the library's, not a set of Tailwind sizes chosen per section.

Next

Released under the MIT License