Skip to main content

Get Involved

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

CTA Two Column

CtaTwoColumn​

Two side-by-side columns, each with an optional heading, optional text, and an optional white button. Every part is controlled separately through left* and right* props. The wrapper sets white text, so place it inside a dark or colored Background Wrapper.

The column split adapts to the content. When the right column has a title or text, both columns are col--6. When the right column only holds a button (or nothing), the left column widens to col--7 and the right narrows to col--5.

Used on /exchanges and /stake-pool-operation.

Basic Usage​

Two full columns:

import CtaTwoColumn from '@site/src/components/Layout/CtaTwoColumn';
import { translate } from '@docusaurus/Translate';

<CtaTwoColumn
headingLevel={2}
leftTitle={translate({ id: "exchanges.learnMore.leftTitle", message: "Exchange integration guide" })}
leftText={translate({ id: "exchanges.learnMore.leftText", message: "Step-by-step guidance for custodians and listing platforms. Covers the accounting model, transaction handling, native assets, and upgrade practices." })}
leftButtonLabel={translate({ id: "exchanges.learnMore.leftButtonLabel", message: "Read the full guide" })}
leftButtonLink="https://developers.cardano.org/docs/build/integrate/exchange-integrations/"
leftHeadingDot={false}
rightTitle={translate({ id: "exchanges.learnMore.rightTitle", message: "Integration components overview" })}
rightText={translate({ id: "exchanges.learnMore.rightText", message: "A shorter reference listing the components used to integrate Cardano into websites, services, and back-office systems." })}
rightButtonLabel={translate({ id: "exchanges.learnMore.rightButtonLabel", message: "Browse the components" })}
rightButtonLink="https://developers.cardano.org/docs/build/integrate/overview/"
rightHeadingDot={false}
/>

Text on the left, a centered button on the right:

<CtaTwoColumn
headingLevel={2}
leftTitle={translate({ id: 'stakePoolOperation.setupCta.title', message: 'How do I set up a stake pool?' })}
leftText={translate({ id: 'stakePoolOperation.setupCta.text2', message: 'Anybody can learn how to operate a stake pool, but a degree of technical familiarity and knowledge is required.' })}
leftHeadingDot={true}
rightButtonLabel={translate({ id: 'stakePoolOperation.setupCta.buttonLabel', message: 'Learn how' })}
rightButtonLink="https://developers.cardano.org/docs/operators/"
rightButtonAlign="center"
/>

Props​

PropTypeDefaultDescription
leftTitlestring-Optional title in the left column, an <h1> by default (see headingLevel).
leftTextstring | string[]-Optional text in the left column. A string renders one <p>, an array renders one <p> per entry. Plain strings, no markdown parsing.
leftButtonLabelstring-Optional. When set, a white button renders in the left column.
leftButtonLinkstring-Target of the left button.
leftHeadingDotboolean-Adds the headingDot class to the left title.
leftButtonAlignstring-'center' centers the left button. Any other value keeps the default left alignment.
rightTitlestring-Optional title in the right column, an <h1> by default (see headingLevel).
rightTextstring | string[]-Optional text in the right column, same rules as leftText.
rightButtonLabelstring-Optional. When set, a white button renders in the right column.
rightButtonLinkstring-Target of the right button.
rightHeadingDotboolean-Adds the headingDot class to the right title.
rightButtonAlignstring-'center' centers the right button. Any other value keeps the default left alignment.
headingLevelnumber1Heading level of the left and right titles, 1 to 6. The look stays the same, so the level can follow the page outline, for example 2 below a page hero.
classNamestring-Extra class on the outer element.

Live Preview​

Cardano Wallets

Discover a wide variety of wallets designed to facilitate your interaction with the Cardano ecosystem.

Notes​

  • Consumers pass already translated strings. The component contains no text of its own.
  • Unlike Dotted Image With Text, the text here is rendered as is. Markdown-style links or bold markers appear literally.
  • Both columns stack vertically on narrow screens through the Infima row and col classes.
  • For a single centered call to action, see CTA One Column.