{stat.label}
- -{stat.value}
-+ +
+{item.excerpt}
+diff --git a/src/app/dashboard/page.tsx b/src/app/dashboard/page.tsx index 654e5d4..2961e6a 100644 --- a/src/app/dashboard/page.tsx +++ b/src/app/dashboard/page.tsx @@ -10,9 +10,8 @@ import { UsersIcon, UserCircleIcon, StarIcon, - ChartBarIcon, HeartIcon, - BuildingOffice2Icon // <-- added + LinkIcon } from '@heroicons/react/24/outline' export default function DashboardPage() { @@ -59,11 +58,18 @@ export default function DashboardPage() { color: 'bg-blue-500' }, { - title: 'Join Community', - description: 'Connect with like-minded people', + title: 'Browse Affiliate Links', + description: 'Discover affiliate offers and links', + icon: LinkIcon, + href: '/affiliate-links', + color: 'bg-teal-500' + }, + { + title: 'Referral Management', + description: 'Create and manage referral links', icon: UsersIcon, - href: '/community', - color: 'bg-green-500' + href: '/referral-management', + color: 'bg-amber-600' }, { title: 'Edit Profile', @@ -74,19 +80,35 @@ export default function DashboardPage() { } ] - // Stats (mock data for now) - const stats = [ - { label: 'Orders', value: '12', icon: ShoppingBagIcon }, - { label: 'Favorites', value: '8', icon: HeartIcon }, - { label: 'Gold Points', value: '250', icon: StarIcon }, - { label: 'Activity', value: '15', icon: ChartBarIcon } - ] - - // Referral statistics (mock values) - const referralStats = [ - { label: 'Registered Users', value: '123', icon: UsersIcon, color: 'bg-indigo-600' }, - { label: 'Personal Users', value: '85', icon: UserCircleIcon, color: 'bg-teal-600' }, - { label: 'Company Users', value: '38', icon: BuildingOffice2Icon, color: 'bg-amber-600' }, + // New: Latest news/articles (replace stats) + const news = [ + { + id: 'n1', + title: 'Profit Planet launches Referral Management', + excerpt: 'Create, track, and manage your referral links with real‑time usage and status.', + date: '2025-01-08', + category: 'Product Update', + href: '/news/referral-management', + image: null as string | null, + }, + { + id: 'n2', + title: 'Tips to maximize referral conversions', + excerpt: 'Learn 7 quick optimizations to improve referral performance and user onboarding.', + date: '2025-01-05', + category: 'Guides', + href: '/news/maximize-referrals', + image: null, + }, + { + id: 'n3', + title: 'Community spotlight: January', + excerpt: 'A look at the most inspiring community stories and achievements of the month.', + date: '2025-01-02', + category: 'Community', + href: '/news/community-spotlight-jan', + image: null, + }, ] return ( @@ -105,83 +127,40 @@ export default function DashboardPage() {
- {/* Account setup note */} -- Complete your verification process to unlock all features.{' '} - -
-{stat.label}
-{stat.value}
-{stat.label}
- -{stat.value}
-{item.excerpt}
+