diff --git a/src/ui/design-system/src/lib/Pages/HomePage/BrowseByCategory.tsx b/src/ui/design-system/src/lib/Pages/HomePage/BrowseByCategory.tsx index 1def721381..05a4a50563 100644 --- a/src/ui/design-system/src/lib/Pages/HomePage/BrowseByCategory.tsx +++ b/src/ui/design-system/src/lib/Pages/HomePage/BrowseByCategory.tsx @@ -2,6 +2,16 @@ import React from 'react'; import { event } from '@site/src/utils/gtags.client'; import { GA_EVENTS, GA_CATEGORIES } from '@site/src/constants/ga-events'; +const CATEGORY_COLORS: Record = { + Defi: '#10b981', + Tutorials: '#3b82f6', + Cadence: '#a855f7', + EVM: '#f97316', + Tools: '#64748b', + Networks: '#06b6d4', + Ecosystem: '#ec4899', +}; + const CATEGORIES = [ { title: 'Defi', @@ -117,38 +127,52 @@ const BrowseByCategory: React.FC = () => { return (
-

Browse by category

-
+

Browse by category

+
{CATEGORIES.map((cat) => { const firstLink = cat.links[0]; const remainingLinks = cat.links.slice(1); + const color = CATEGORY_COLORS[cat.title] || '#64748b'; + return ( -
- handleLinkClick(firstLink.label, firstLink.href, cat.title)} - className="text-xl font-semibold text-primary-green-600 dark:text-primary-green-400 mb-4 hover:text-primary-green-700 dark:hover:text-primary-green-300 transition-colors underline" - > - {cat.title} - - +
+ {/* Color bar at top */} + ); })} diff --git a/src/ui/design-system/src/lib/Pages/HomePage/FeatureSection.tsx b/src/ui/design-system/src/lib/Pages/HomePage/FeatureSection.tsx index d75c18bc2d..787558e216 100644 --- a/src/ui/design-system/src/lib/Pages/HomePage/FeatureSection.tsx +++ b/src/ui/design-system/src/lib/Pages/HomePage/FeatureSection.tsx @@ -31,11 +31,10 @@ interface FeatureSectionProps { } const FeatureSection: React.FC = ({ sections }) => { - // Flatten all cards from all sections into a single array const allCards = sections.flatMap(section => section.cards); return ( -
+
{allCards.map((card, cardIdx) => ( @@ -43,7 +42,7 @@ const FeatureSection: React.FC = ({ sections }) => { href={card.href} target={card.target} rel={card.target === '_blank' ? 'noopener noreferrer' : undefined} - className="group flex items-center gap-3 p-4 rounded-lg bg-gray-50 dark:bg-gray-800 border border-gray-200 dark:border-gray-700 hover:bg-gray-100 dark:hover:bg-gray-700 hover:border-gray-300 dark:hover:border-gray-600 shadow-lg hover:shadow-md transition-all duration-200 cursor-pointer no-underline hover:no-underline h-full min-h-[80px]" + className="group flex items-center gap-4 p-4 rounded-xl bg-white dark:bg-gray-900 border border-gray-200 dark:border-gray-800 hover:border-[#00EF8B] dark:hover:border-[#00EF8B] transition-colors duration-200 cursor-pointer no-underline hover:no-underline" onClick={(e) => { event({ action: GA_EVENTS.ACTION_CARD_CLICK, @@ -53,13 +52,13 @@ const FeatureSection: React.FC = ({ sections }) => { }); }} > - - {card.icon && } + + {card.icon && } -
- {card.heading} -
- + + {card.heading} + + diff --git a/src/ui/design-system/src/lib/Pages/HomePage/GrowSection.tsx b/src/ui/design-system/src/lib/Pages/HomePage/GrowSection.tsx index 4890b56f66..3ee7c352cb 100644 --- a/src/ui/design-system/src/lib/Pages/HomePage/GrowSection.tsx +++ b/src/ui/design-system/src/lib/Pages/HomePage/GrowSection.tsx @@ -8,39 +8,41 @@ const GrowSection: React.FC = () => { const cards = growGridData.sections[0].cards; return ( -
+
diff --git a/src/ui/design-system/src/lib/Pages/HomePage/HeroSection.tsx b/src/ui/design-system/src/lib/Pages/HomePage/HeroSection.tsx index 65dbccff58..6363759660 100644 --- a/src/ui/design-system/src/lib/Pages/HomePage/HeroSection.tsx +++ b/src/ui/design-system/src/lib/Pages/HomePage/HeroSection.tsx @@ -4,29 +4,26 @@ import { event } from '@site/src/utils/gtags.client'; import { GA_EVENTS, GA_CATEGORIES, GA_ACTIONS } from '@site/src/constants/ga-events'; const HeroSection: React.FC = () => { - // const { colorMode } = useColorMode(); - // const calendarSrc = colorMode === 'dark' - // ? 'https://lu.ma/embed/calendar/cal-DBqbEn6mwZR13qQ/events?lt=dark' - // : 'https://lu.ma/embed/calendar/cal-DBqbEn6mwZR13qQ/events'; return ( -
-
- {/* Left: Hero Content */} -
-

+
+
+
+

Turn decentralized finance into personal finance.

-

- Flow is the leading consumer layer-one network, + +

+ Flow is the leading consumer layer-one network, trusted by 1 million monthly active users. Chosen by top global brands like NBA, Disney, PayPal, NFL, and Ticketmaster, it is the foundation for the next generation of consumer finance:{" "} - global, always-on, and in real-time. + global, always-on, and in real-time.

-
+ +
{ event({ action: GA_EVENTS.ACTION_CARD_CLICK, @@ -38,6 +35,7 @@ const HeroSection: React.FC = () => { > Automate DeFi +
- {/* Right: Calendar card (visible on lg and up) */} - {/*
-
-

Upcoming Events

-