Zum Hauptinhalt springen

Get Involved

Whether you are a developer, designer, writer, project builder, or just someone passionate about Cardano.

Overview

Overview​

Shared components are the default on cardano.org. Before you write a component or page markup, find your need in the table below and use the component it points to. If a component almost fits, extend it with an additive prop instead of copying it. The Component Guidelines explain when a page-specific component is fine and what a new shared component needs.

Find the right component​

Page structure​

I needUse
A page hero with title, text, and bannerSite Hero
An icon framed in a rounded tileIcon Hero
A complete explainer page with hero, sections, FAQ, and call to actionExplainer Page
A page shell for an /insights data pageInsights Layout, Insights Footer
Open Graph and Twitter card meta tagsOpen Graph Info
Content constrained to the page widthBoundary Box
A section background (zoom, plain, light)Background Wrapper
Vertical or horizontal spacingSpacer Box
A labeled section divider with an anchorDivider
Decorative lines that connect sectionsConnection Line

Text and layout​

I needUse
A section title with text, list, and optional buttonTitle With Text
A large title on the left, text and button on the rightFeatured Title With Text
Plain paragraphs in one or two columnsOne Column Box, Two Column Box
Main content with a sidebarTwo Column Layout
A dotted icon illustration next to textDotted Image With Text
Alternating rows of icon, title, and textProof Points List
A highlighted note with icon and accent borderHighlight Callout
A call to action bandCTA One Column, CTA Two Column
A role or persona cardRole Card
A small status labelStatus Pill

Interaction​

I needUse
Tabs that switch between panelsPill Tabs
An FAQ or other expandable questionsAccordion for new pages. Older pages use FAQ Section
A dialog opened from a buttonModal
A horizontal row of cards with scroll arrowsHorizontal Scroller
Two glossary terms from a categoryTerm Explainer

Topic widgets​

I needUse
App cards, rows, grids, lists, or iconsApp Tile, App Row, App Grid, App List, App Icon
A quiz, its teaser card, modal, or share badgeQuiz, Quiz Card, Quiz Modal, Quiz Share
A layer 2 project cardLayer 2 Card
Funding program cards and statsFunding Programs
Treasury charts and figuresTreasury Sections

Nothing fits?​

  1. Check whether an existing component can take an additive prop that covers your case.
  2. If you need a page-specific tool or deliberate art direction, put it in src/components/<PageName>/ and explain in the pull request why nothing above fits.
  3. If you need a new shared component, ask in the issue or pull request first. It goes in src/components/Layout/ with JSDoc for its props, a doc page in this folder, and a row in the table above.