Skip to content

Commit 4e2928f

Browse files
Update design to match dashboard
Apply flat design principles to the affiliate landing page to ensure consistency with the dashboard's aesthetic. This includes removing background gradients and simplifying borders.
1 parent de5bf2b commit 4e2928f

File tree

1 file changed

+34
-25
lines changed

1 file changed

+34
-25
lines changed

src/pages/AffiliatePage.tsx

Lines changed: 34 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -113,41 +113,50 @@ const AffiliatePage = () => {
113113
// Error display with more helpful message for public access
114114
if (error) {
115115
return (
116-
<div className="min-h-screen bg-gradient-to-br from-blue-50 via-white to-purple-50 flex flex-col">
117-
<PublicDashboardHeader campaignName={t('publicDashboard.errors.accessRestricted')} loading={false} />
118-
<div className="flex-1 flex items-center justify-center py-20 px-4 sm:px-6 lg:px-8">
119-
<Card className="max-w-md border-red-200 bg-red-50/50">
120-
<CardContent className="p-8">
121-
<div className="text-center">
122-
<div className="w-12 h-12 bg-red-100 rounded-full flex items-center justify-center mx-auto mb-4">
123-
<Users className="h-6 w-6 text-red-500" />
116+
<div className="min-h-screen bg-white overflow-hidden flex flex-col">
117+
<div className="fixed inset-0 pointer-events-none">
118+
<div className="absolute top-20 right-10 w-64 h-64 bg-blue-500/5 rounded-full blur-3xl animate-pulse"></div>
119+
<div className="absolute top-1/2 left-10 w-48 h-48 bg-purple-500/5 rounded-full blur-3xl animate-pulse"></div>
120+
<div className="absolute bottom-1/4 right-1/4 w-32 h-32 bg-green-500/5 rounded-full blur-2xl animate-pulse"></div>
121+
</div>
122+
123+
<div className="relative z-10">
124+
<PublicDashboardHeader campaignName={t('publicDashboard.errors.accessRestricted')} loading={false} />
125+
<div className="flex-1 flex items-center justify-center py-20 px-4 sm:px-6 lg:px-8">
126+
<Card className="max-w-md border-red-200 bg-red-50/50">
127+
<CardContent className="p-8">
128+
<div className="text-center">
129+
<div className="w-12 h-12 bg-red-100 rounded-xl flex items-center justify-center mx-auto mb-4">
130+
<Users className="h-6 w-6 text-red-500" />
131+
</div>
132+
<h3 className="text-lg font-semibold mb-3 text-red-700">{t('publicDashboard.errors.accessRestricted')}</h3>
133+
<p className="text-red-600 mb-4">{error}</p>
134+
<p className="text-sm text-red-500/80 mb-4">
135+
{t('publicDashboard.errors.specialConfig')}
136+
</p>
137+
<p className="text-xs text-red-400 font-mono bg-red-100/50 px-3 py-2 rounded-xl">
138+
ID: {campaignId}
139+
</p>
124140
</div>
125-
<h3 className="text-lg font-semibold mb-3 text-red-700">{t('publicDashboard.errors.accessRestricted')}</h3>
126-
<p className="text-red-600 mb-4">{error}</p>
127-
<p className="text-sm text-red-500/80 mb-4">
128-
{t('publicDashboard.errors.specialConfig')}
129-
</p>
130-
<p className="text-xs text-red-400 font-mono bg-red-100/50 px-3 py-2 rounded-lg">
131-
ID: {campaignId}
132-
</p>
133-
</div>
134-
</CardContent>
135-
</Card>
141+
</CardContent>
142+
</Card>
143+
</div>
144+
<PublicDashboardFooter />
136145
</div>
137-
<PublicDashboardFooter />
138146
</div>
139147
);
140148
}
141149

142150
return (
143-
<div className="min-h-screen bg-gradient-to-br from-blue-50 via-white to-purple-50 flex flex-col">
151+
<div className="min-h-screen bg-white overflow-hidden flex flex-col">
144152
{/* Background decorations */}
145-
<div className="fixed inset-0 pointer-events-none overflow-hidden">
146-
<div className="absolute top-20 right-10 w-64 h-64 bg-blue-500/5 rounded-full blur-3xl"></div>
147-
<div className="absolute bottom-20 left-10 w-48 h-48 bg-purple-500/5 rounded-full blur-3xl"></div>
153+
<div className="fixed inset-0 pointer-events-none">
154+
<div className="absolute top-20 right-10 w-64 h-64 bg-blue-500/5 rounded-full blur-3xl animate-pulse"></div>
155+
<div className="absolute top-1/2 left-10 w-48 h-48 bg-purple-500/5 rounded-full blur-3xl animate-pulse"></div>
156+
<div className="absolute bottom-1/4 right-1/4 w-32 h-32 bg-green-500/5 rounded-full blur-2xl animate-pulse"></div>
148157
</div>
149158

150-
<div className="relative flex flex-col flex-1">
159+
<div className="relative z-10 flex flex-col flex-1">
151160
<PublicDashboardHeader campaignName={campaignName} loading={loading} />
152161

153162
<main className="flex-1 max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8 w-full">

0 commit comments

Comments
 (0)