Chuyển đến nội dung chính

Get Involved

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

Follow Cardano

FollowCardano​

A centered title above a row of round icon links to Cardano's community channels: X, Reddit, the Cardano Forum, Facebook, Meetup, Telegram, Stack Exchange, and LinkedIn. The channel list is part of the component, so every page that shows it links to the same set.

The homepage and /newsletter show it through FollowCardanoSection, which adds the "Social" divider and the light gradient background.

When to use​

  • To point readers to the official community channels at the end of a page.
  • For a single link to one channel, use a normal link or button instead.

Basic Usage​

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

<FollowCardano
title={translate({ id: 'myPage.follow.title', message: 'Get Involved' })}
headingLevel={2}
iconForegroundColor="#0136AE"
iconBackgroundColor="#ffffff"
/>

Props​

PropTypeDefaultDescription
titlestring-Heading above the icons.
iconForegroundColorstringwhite in light mode, black in dark modeColor of the icons. Any CSS color.
iconBackgroundColorstring-Color of the round background behind each icon. Without it the circles are transparent.
headingLevelnumber1Heading level of the title, 1 to 6. The look stays the same. Pass 2 or a deeper level when the page already has a hero, so it keeps a single <h1>.
classNamestring-Extra class on the outer element.

Live Preview​

Get Involved

Accessibility​

  • Every icon link has a translated aria-label such as "Cardano on X", because the icons have no visible text.

Translation​

  • The consumer passes title already translated.
  • The component translates the link labels itself, with the IDs followCardano.label.x, followCardano.label.reddit, followCardano.label.forum, followCardano.label.facebook, followCardano.label.meetup, followCardano.label.telegram, followCardano.label.stackexchange, and followCardano.label.linkedin.

Styling​

  • Pick icon colors that work on the background behind the component, the defaults do not adapt to it.
  • The title and icons take 70% of the width on wide screens and the full width below 996px.
  • Divider: the section label that FollowCardanoSection places above it.
  • Background Wrapper: the background the component sits on.