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 icons to home page #1128

Merged
merged 8 commits into from
Feb 6, 2025
Merged

Add icons to home page #1128

merged 8 commits into from
Feb 6, 2025

Conversation

briandoyle81
Copy link
Contributor

image

Copy link

vercel bot commented Feb 5, 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 Feb 6, 2025 10:57pm

Copy link
Member

@chasefleming chasefleming left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Couple minor nits

src/hooks/use-icons.ts Outdated Show resolved Hide resolved
import { useState, useEffect } from 'react';

// Direct imports
import AccessIncredibleIPIcon from '/static/images/icons/Access Incredible IP.svg';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The file names feel inconsistent. Not a good practice to have spaces in file names too.

@@ -20,6 +25,7 @@ export const buildGridData = {
'Cadence is a resource-oriented programming language that makes it easy to build secure, scalable, and composable applications.',
iconColor: 'green',
cardColor: 'black',
icon: 'Flow Cadence',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Think we need a better naming system for these

// Direct imports
import AccessIncredibleIPIcon from '/static/images/icons/Access Incredible IP.svg';
import AccountAbstractionIcon from '/static/images/icons/Account Abstraction.svg';
import BatchedEVMTransactionsIcon from '/static/images/icons/Batched EVM Transactions.svg';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You might be able to just import the whole folder if you want.


interface ActionCardProps {
icon?: string;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is similar to the optional title thing from the other PR. If you make it optional, can you add a conditional for Icon component/section in the UI.

@briandoyle81 briandoyle81 merged commit b73a253 into main Feb 6, 2025
3 checks passed
@briandoyle81 briandoyle81 deleted the brian-doyle/add-icons branch February 6, 2025 22:59
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.

2 participants