From 943079d94f00331ef0da22d4d769d23ba90e8e54 Mon Sep 17 00:00:00 2001
From: DeathKaioken
Date: Thu, 16 Oct 2025 08:41:55 +0200
Subject: [PATCH] beatutify: adjust dashboard
---
src/app/dashboard/page.tsx | 171 ++++++++++++++++---------------------
1 file changed, 75 insertions(+), 96 deletions(-)
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 account setup
-
-
-
- Complete your verification process to unlock all features.{' '}
-
-
-
-
-
-
-
- {/* Stats Grid - Tailwind UI Plus "With brand icon" */}
-
-
- {stats.map((stat, index) => {
- // Define icon colors for each stat
- const iconColors = [
- 'bg-blue-500', // Orders
- 'bg-red-500', // Favorites
- 'bg-yellow-500', // Gold Points
- 'bg-green-500' // Activity
- ];
-
- return (
-
-
-
-
-
- {stat.label}
-
-
- {stat.value}
-
-
-
- );
- })}
-
-
-
- {/* Referral Statistics */}
-
-
Referral Statistics
-
- {referralStats.map((stat, i) => (
-
-
-
-
+ {/* News Section (replaces Account setup + Stats Grid) */}
+
+
Latest News & Articles
+
+ {news.map(item => (
+
+ {/* Image/placeholder */}
+
+
+
+
+ {item.category}
+
+ {new Date(item.date).toLocaleDateString()}
-
{stat.label}
-
-
- {stat.value}
-
-
+
+
+
+ {item.excerpt}
+
+
+
+
+
))}
@@ -189,7 +168,7 @@ export default function DashboardPage() {
{/* Quick Actions */}
Quick Actions
-
+
{quickActions.map((action, index) => (