-
Notifications
You must be signed in to change notification settings - Fork 316
(fix): dev hub refactor for home page and improved dark mode styles #3290
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
base: main
Are you sure you want to change the base?
Conversation
… and shared components; fix Fuel SDK package type definitions.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
5 Skipped Deployments
|
…ant image container from homepage section cards.
| "name": "Pyth Data Association" | ||
| }, | ||
| "main": "./dist/cjs/index.cjs", | ||
| "types": "./dist/cjs/index.d.ts", |
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.
there's some weird things going on here when building this package, can you revert this
|
|
||
| .dark { | ||
| /* | ||
| OLD COLORS |
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.
might as well just remove these?
| {icon && <div className={styles.icon}>{icon}</div>} | ||
| <div className="bg-fd-card rounded-xl border border-fd-border overflow-hidden"> | ||
| <div className="p-6 border-b border-fd-border h-[250px] flex flex-col justify-between items-start"> | ||
| <div className="flex flex-col gap-4 items-start"> |
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.
I don't think we should combine tailwind with css modules. Becomes hard to read and not consistent anymore with how we write styles. I would suggest writing this with css modules instead and if you need some sizing from tailwind then either see if we have that in the theme.scss or then manually add it eg x rem
Summary
This PR implements a significant visual refresh of the Developer Hub Homepage and addresses TypeScript strictness errors.
Key changes:
ProductCard, andFooterto use a modern design with Tailwind utility classes, improved spacing, and gradients.BoxSVGcomponent for enhanced visual flair in the "Additional Resources" section.ProductCardand parts of the Homepage from CSS modules to Tailwind CSS.exactOptionalPropertyTypeserrors inProductCardConfigTypeby explicitly allowingundefinedfor optional properties.Rationale
These changes are necessary to elevate the design quality of the Developer Hub, matching updated brand aesthetics. The refactor to utility classes simplifies styles and improves consistency. The TypeScript fixes ensure the codebase complies with stricter compiler options (
exactOptionalPropertyTypes) enabled in the project.How has this been tested?
Verification Steps:
ProductCardConfigTypeis resolved.BoxSVG.ProductCardcomponents render features with their new icons and improved styling.