Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ActionCard and ActionCardGrid #1102

Merged
merged 21 commits into from
Jan 22, 2025
Merged

Add ActionCard and ActionCardGrid #1102

merged 21 commits into from
Jan 22, 2025

Conversation

chasefleming
Copy link
Member

@chasefleming chasefleming commented Jan 22, 2025

Dark Mode

Screenshot 2025-01-22 at 1 50 55 PM

Light Mode

Screenshot 2025-01-22 at 2 01 24 PM

Usage Example

The data:

const gridData = {
  title: 'Getting Started',
  sections: [
    {
      title: 'Get Started',
      cards: [
        {
          heading: 'Hello World',
          description:
            'Build and deploy your first contract, connect to it from the frontend, and call your smart contract functions - all in less than 30 minutes.',
          iconColor: 'green',
          cardColor: 'black',
        },
        {
          heading: 'A Better Language',
          description:
            'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna.',
          iconColor: 'green',
          cardColor: 'black',
        },
        {
          heading: 'EVM++ on Flow',
          description:
            'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna.',
          iconColor: 'green',
          cardColor: 'black',
        },
      ],
    },
    {
      title: 'How To',
      cards: [
        {
          heading: 'Launch a Token',
          description:
            'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna.',
          iconColor: 'green',
          cardColor: 'black',
        },
        {
          heading: 'Query Onchain Data',
          description:
            'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna.',
          iconColor: 'green',
          cardColor: 'black',
        },
        {
          heading: 'VRF',
          description:
            'VRF is built into Flow at the protocol level to provide secure, verifiable randomness.',
          iconColor: 'green',
          cardColor: 'black',
        },
        {
          heading: 'Launch a Token',
          description:
            'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna.',
          iconColor: 'green',
          cardColor: 'green',
        },
        {
          heading: 'Query Onchain Data',
          description:
            'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna.',
          iconColor: 'green',
          cardColor: 'black',
        },
        {
          heading: 'VRF',
          description:
            'VRF is built into Flow at the protocol level to provide secure, verifiable randomness.',
          iconColor: 'green',
          cardColor: 'black',
        },
      ],
    },
  ],
};

Goes in this component:

<ActionCardGrid title={gridData.title} sections={gridData.sections} />

Copy link

vercel bot commented Jan 22, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 22, 2025 10:06pm

@chasefleming chasefleming merged commit 3f2460c into main Jan 22, 2025
3 checks passed
@chasefleming chasefleming deleted the cf/home-cards branch January 22, 2025 23:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants