From 7d1bc3ef2470a4ff3e5675e800b04fe6a43a9fbc Mon Sep 17 00:00:00 2001 From: laveshparyani Date: Thu, 12 Mar 2026 15:53:38 +0530 Subject: [PATCH 1/3] feat(affiliates): add custom partner profile pages and update platform analytics This commit introduces dynamic routing and three new components (PartnerHero, PartnerBio, PartnerFeatures) for individual affiliate landing pages. Additionally, it updates the broker statistics across the Hero and Trust Metrics sections to realistic values and updates the commission structures on the main affiliate program page. --- apps/web/app/partners/[slug]/page.tsx | 94 ++++++++++++++++++ apps/web/app/partners/affiliate/page.tsx | 54 +++++----- .../sections/hero-section-enhanced.tsx | 6 +- apps/web/components/sections/partner-bio.tsx | 84 ++++++++++++++++ apps/web/components/sections/partner-cta.tsx | 64 ++++++++++++ .../components/sections/partner-features.tsx | 82 +++++++++++++++ apps/web/components/sections/partner-hero.tsx | 90 +++++++++++++++++ .../sections/platform-selector-section.tsx | 2 +- .../sections/trust-metrics-section.tsx | 4 +- apps/web/public/images/soloetv.png | Bin 0 -> 710748 bytes 10 files changed, 447 insertions(+), 33 deletions(-) create mode 100644 apps/web/app/partners/[slug]/page.tsx create mode 100644 apps/web/components/sections/partner-bio.tsx create mode 100644 apps/web/components/sections/partner-cta.tsx create mode 100644 apps/web/components/sections/partner-features.tsx create mode 100644 apps/web/components/sections/partner-hero.tsx create mode 100644 apps/web/public/images/soloetv.png diff --git a/apps/web/app/partners/[slug]/page.tsx b/apps/web/app/partners/[slug]/page.tsx new file mode 100644 index 0000000..9667e1f --- /dev/null +++ b/apps/web/app/partners/[slug]/page.tsx @@ -0,0 +1,94 @@ +import { notFound } from "next/navigation"; +import { Navbar } from "@/components/navbar"; +import { Footer } from "@/components/footer"; +import { PartnerHero } from "@/components/sections/partner-hero"; +import { PartnerBio } from "@/components/sections/partner-bio"; +import { PartnerCTA } from "@/components/sections/partner-cta"; +import { PartnerFeatures } from "@/components/sections/partner-features"; +import { TrustMetricsSection } from "@/components/sections/trust-metrics-section"; +import { BackgroundScroll } from "@/components/ui/background-scroll"; +import { ScrollReveal } from "@/components/ui/scroll-reveal"; + +interface PartnerData { + name: string; + bio: string; + imageUrl: string; + quote?: string; + ctaMessage?: string; +} + +const PARTNERS_DATA: Record = { + "solo-e-tv": { + name: "Solo E TV", + bio: "Solo E started trading with $500–$600 paychecks to fund his music dream. No prop firms, no handouts — just self-taught grit. He burned $100K learning the hard way, mastering risk, discipline, and consistency. \n\nThe breakthrough came flipping $600 to $25K (then losing it), but going live on YouTube and turning $4K into $40K put him on the map. Now he refuses to deposit over $10K, proving small accounts can win big. The Solo E brand is about flipping limits, giving underdogs a system, and proving the world wrong one trade at a time.", + imageUrl: "/images/soloetv.png", + quote: "Life is short and working for other people sucks", + ctaMessage: "Trade with the broker I trust. Join me at RestroFX and experience trading the way it was meant to be. Raw spreads, lightning-fast execution, and a platform that puts you first." + }, + "default": { + name: "Our Global Partner", + bio: "Our partners are experienced traders and market leaders who trust RestroFX for their trading journey. They choose us for our transparency, technology, and superior trading conditions.", + imageUrl: "https://images.unsplash.com/photo-1560250097-0b93528c311a?w=800&auto=format&fit=crop", + ctaMessage: "Join our community of successful traders today." + } +}; + +export async function generateStaticParams() { + return [ + { slug: "solo-e-tv" }, + ]; +} + +export default function PartnerProfilePage({ params }: { params: { slug: string } }) { + const partner = PARTNERS_DATA[params.slug] || PARTNERS_DATA["default"]; + + if (!partner && params.slug !== "demo") { + notFound(); + } + + return ( + <> + + +
+ + +
+ + + +
+ +
+ +
+

+ Why RestroFX is my
favorite broker. +

+
+ +
+
+ +
+ + + +
+ +
+ + + +
+ +
+