Skip to content

Conversation

@partyparrotgreg
Copy link
Contributor

Summary

This PR implements a significant visual refresh of the Developer Hub Homepage and addresses TypeScript strictness errors.

Key changes:

  • Visual Redesign: Updated the Homepage layout, ProductCard, and Footer to use a modern design with Tailwind utility classes, improved spacing, and gradients.
  • New Assets: Added BoxSVG component for enhanced visual flair in the "Additional Resources" section.
  • Refactor: Migrated ProductCard and parts of the Homepage from CSS modules to Tailwind CSS.
  • Type Fixes: Resolved exactOptionalPropertyTypes errors in ProductCardConfigType by explicitly allowing undefined for optional properties.
  • Icons: Added icons to product feature lists for better readability.

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?

  • Current tests cover my changes
  • Added new tests
  • Manually tested the code

Verification Steps:

  1. Verified that the TypeScript build error regarding ProductCardConfigType is resolved.
  2. Visual check of the Homepage to ensure:
    • The hero section and new product grid layout render correctly.
    • The "Additional Resources" section displays the gradient background and BoxSVG.
    • The Footer appears with the new gradient border.
    • ProductCard components render features with their new icons and improved styling.

@partyparrotgreg partyparrotgreg requested a review from a team as a code owner December 10, 2025 19:22
@vercel
Copy link

vercel bot commented Dec 10, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
component-library Ready Ready Preview Comment Dec 11, 2025 9:36am
developer-hub Ready Ready Preview Comment Dec 11, 2025 9:36am
5 Skipped Deployments
Project Deployment Preview Comments Updated (UTC)
api-reference Skipped Skipped Dec 11, 2025 9:36am
entropy-explorer Skipped Skipped Dec 11, 2025 9:36am
insights Skipped Skipped Dec 11, 2025 9:36am
proposals Skipped Skipped Dec 11, 2025 9:36am
staking Skipped Skipped Dec 11, 2025 9:36am

…ant image container from homepage section cards.
"name": "Pyth Data Association"
},
"main": "./dist/cjs/index.cjs",
"types": "./dist/cjs/index.d.ts",
Copy link
Contributor

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
Copy link
Contributor

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">
Copy link
Contributor

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

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