-
Notifications
You must be signed in to change notification settings - Fork 58
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
Add icons to home page #1128
Conversation
briandoyle81
commented
Feb 5, 2025
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this 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
import { useState, useEffect } from 'react'; | ||
|
||
// Direct imports | ||
import AccessIncredibleIPIcon from '/static/images/icons/Access Incredible IP.svg'; |
There was a problem hiding this comment.
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', |
There was a problem hiding this comment.
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
src/hooks/use-icons.ts
Outdated
// 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'; |
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
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.