Skip to content

Commit 470324f

Browse files
Apply flat design to advanced stats
Apply flat design styling, including border radius and border color, to the advanced stats section in `src/components/AffiliateStatsCell.tsx` to maintain visual consistency with other components.
1 parent 49ca550 commit 470324f

5 files changed

Lines changed: 29 additions & 54 deletions

src/components/AdvancedStatsAdditionalMetrics.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,21 +15,21 @@ interface AdvancedStatsAdditionalMetricsProps {
1515
export const AdvancedStatsAdditionalMetrics = ({ metrics }: AdvancedStatsAdditionalMetricsProps) => {
1616
return (
1717
<div className="xl:col-span-1">
18-
<div className="bg-gradient-to-br from-emerald-50/50 via-white to-green-50/30 rounded-2xl p-6 shadow-lg border border-white/50 h-full">
18+
<div className="bg-white rounded-xl p-6 border border-slate-200 h-full">
1919
<h3 className="text-lg font-semibold text-slate-900 mb-4 flex items-center gap-2">
2020
<Zap className="h-5 w-5 text-emerald-600" />
2121
Métriques Avancées
2222
</h3>
2323
<div className="space-y-4">
24-
<div className="bg-white/60 rounded-lg p-4">
24+
<div className="bg-slate-50 rounded-lg p-4">
2525
<div className="flex items-center justify-between mb-2">
2626
<Users className="h-5 w-5 text-blue-600" />
2727
<span className="text-xl font-bold text-blue-600">{metrics.activeAffiliates}</span>
2828
</div>
2929
<p className="text-sm text-slate-600">Affiliés actifs</p>
3030
</div>
3131

32-
<div className="bg-white/60 rounded-lg p-4">
32+
<div className="bg-slate-50 rounded-lg p-4">
3333
<div className="flex items-center justify-between mb-2">
3434
<DollarSign className="h-5 w-5 text-green-600" />
3535
<span className="text-lg font-bold text-green-600">
@@ -43,15 +43,15 @@ export const AdvancedStatsAdditionalMetrics = ({ metrics }: AdvancedStatsAdditio
4343
<p className="text-sm text-slate-600">Commission moy./affilié</p>
4444
</div>
4545

46-
<div className="bg-white/60 rounded-lg p-4">
46+
<div className="bg-slate-50 rounded-lg p-4">
4747
<div className="flex items-center justify-between mb-2">
4848
<Target className="h-5 w-5 text-purple-600" />
4949
<span className="text-xl font-bold text-purple-600">{metrics.profitMargin.toFixed(1)}%</span>
5050
</div>
5151
<p className="text-sm text-slate-600">Marge bénéficiaire</p>
5252
</div>
5353

54-
<div className="bg-white/60 rounded-lg p-4">
54+
<div className="bg-slate-50 rounded-lg p-4">
5555
<div className="flex items-center justify-between mb-2">
5656
<Award className="h-5 w-5 text-orange-600" />
5757
<span className="text-lg font-bold text-orange-600">

src/components/AdvancedStatsBehavioralMetrics.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export const AdvancedStatsBehavioralMetrics = ({ behavioralMetrics }: AdvancedSt
3131
<div className="grid grid-cols-1 gap-4">
3232

3333
{/* Valeur moyenne des commandes */}
34-
<Card className="bg-white border-slate-200 shadow-sm hover:shadow-md transition-shadow">
34+
<Card className="bg-white border-slate-200">
3535
<CardHeader className="flex flex-row items-center justify-between space-y-0 pb-2">
3636
<CardTitle className="text-sm font-medium text-slate-700">Panier moyen</CardTitle>
3737
<div className="p-2 bg-green-100 rounded-full">
@@ -47,7 +47,7 @@ export const AdvancedStatsBehavioralMetrics = ({ behavioralMetrics }: AdvancedSt
4747
</Card>
4848

4949
{/* Taux de rétention des affiliés */}
50-
<Card className="bg-white border-slate-200 shadow-sm hover:shadow-md transition-shadow">
50+
<Card className="bg-white border-slate-200">
5151
<CardHeader className="flex flex-row items-center justify-between space-y-0 pb-2">
5252
<CardTitle className="text-sm font-medium text-slate-700">Rétention Affiliés</CardTitle>
5353
<div className="p-2 bg-purple-100 rounded-full">
@@ -63,7 +63,7 @@ export const AdvancedStatsBehavioralMetrics = ({ behavioralMetrics }: AdvancedSt
6363
</Card>
6464

6565
{/* Concentration du CA */}
66-
<Card className="bg-white border-slate-200 shadow-sm hover:shadow-md transition-shadow">
66+
<Card className="bg-white border-slate-200">
6767
<CardHeader className="flex flex-row items-center justify-between space-y-0 pb-2">
6868
<CardTitle className="text-sm font-medium text-slate-700">Concentration CA</CardTitle>
6969
<div className="p-2 bg-orange-100 rounded-full">

src/components/AdvancedStatsEvolution.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ const EvolutionCard = ({ metric }: { metric: EvolutionMetric }) => {
4444
const isNeutral = change === 0;
4545

4646
return (
47-
<Card className="bg-white border-slate-200 shadow-sm">
47+
<Card className="bg-white border-slate-200">
4848
<CardHeader className="pb-2">
4949
<CardTitle className="text-sm font-medium text-slate-700">{metric.label}</CardTitle>
5050
</CardHeader>

src/components/AdvancedStatsFinanceCard.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ interface AdvancedStatsFinanceCardProps {
1313
export const AdvancedStatsFinanceCard = ({ stats }: AdvancedStatsFinanceCardProps) => {
1414
return (
1515
<div className="xl:col-span-1">
16-
<div className="bg-gradient-to-br from-emerald-50/50 via-white to-green-50/30 rounded-2xl p-6 shadow-lg border border-white/50 h-full">
16+
<div className="bg-white rounded-xl p-6 border border-slate-200 h-full">
1717
<h3 className="text-lg font-semibold text-slate-900 mb-4 flex items-center gap-2">
1818
<DollarSign className="h-5 w-5 text-emerald-600" />
1919
Finance
2020
</h3>
2121
<div className="space-y-4">
22-
<div className="bg-white/60 rounded-lg p-4">
22+
<div className="bg-slate-50 rounded-lg p-4">
2323
<div className="text-xl font-bold text-emerald-600 mb-1">
2424
{new Intl.NumberFormat('fr-FR', {
2525
style: 'currency',
@@ -29,7 +29,7 @@ export const AdvancedStatsFinanceCard = ({ stats }: AdvancedStatsFinanceCardProp
2929
</div>
3030
<p className="text-sm text-slate-600">CA Total</p>
3131
</div>
32-
<div className="bg-white/60 rounded-lg p-4">
32+
<div className="bg-slate-50 rounded-lg p-4">
3333
<div className="text-xl font-bold text-purple-600 mb-1">
3434
{stats.conversionRate.toFixed(1)}%
3535
</div>

src/components/AdvancedStatsHallOfFame.tsx

Lines changed: 17 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -16,71 +16,46 @@ export const AdvancedStatsHallOfFame = ({
1616
topPerformerRevenue
1717
}: AdvancedStatsHallOfFameProps) => {
1818
return (
19-
<div className="xl:col-span-1 relative">
20-
<div className="absolute -inset-2 bg-gradient-to-r from-blue-400/10 via-purple-500/10 to-blue-400/10 rounded-2xl blur-lg animate-pulse" style={{ animationDuration: '3s' }}></div>
21-
<div className="absolute -inset-1 bg-gradient-to-r from-purple-400/8 via-blue-500/8 to-purple-400/8 rounded-xl blur-md animate-pulse" style={{ animationDelay: '1.5s', animationDuration: '4s' }}></div>
22-
23-
<div className="relative bg-gradient-to-br from-blue-500 via-purple-600 to-indigo-700 rounded-2xl p-6 shadow-2xl border-none h-full overflow-hidden transform hover:scale-[1.01] transition-all duration-700 z-10">
24-
<div className="absolute inset-0 bg-gradient-to-r from-transparent via-white/10 to-transparent -skew-x-12 animate-pulse" style={{ animationDuration: '4s' }}></div>
25-
26-
<div className="absolute top-3 left-3">
27-
<Star className="h-4 w-4 text-blue-200 fill-current animate-pulse" style={{ animationDuration: '2s' }} />
28-
</div>
29-
<div className="absolute top-6 right-6">
30-
<Star className="h-3 w-3 text-indigo-100 fill-current animate-pulse" style={{ animationDelay: '0.7s', animationDuration: '2.5s' }} />
31-
</div>
32-
<div className="absolute bottom-3 right-3">
33-
<Star className="h-4 w-4 text-purple-200 fill-current animate-pulse" style={{ animationDelay: '1.2s', animationDuration: '3s' }} />
34-
</div>
35-
<div className="absolute bottom-6 left-6">
36-
<Star className="h-2 w-2 text-blue-100 fill-current animate-pulse" style={{ animationDelay: '1.8s', animationDuration: '2.2s' }} />
37-
</div>
38-
39-
<div className="relative z-10 h-full flex flex-col justify-center text-center">
40-
<div className="flex items-center justify-center mb-6">
41-
<Crown className="h-8 w-8 text-white drop-shadow-lg mr-2 animate-pulse" style={{ animationDuration: '2.5s' }} />
42-
<h3 className="text-xl font-black text-white drop-shadow-lg">HALL OF FAME</h3>
19+
<div className="xl:col-span-1">
20+
<div className="bg-white rounded-xl p-6 border border-slate-200 h-full">
21+
<div className="text-center">
22+
<div className="flex items-center justify-center mb-4">
23+
<Crown className="h-6 w-6 text-yellow-600 mr-2" />
24+
<h3 className="text-lg font-semibold text-slate-900">Top Performer</h3>
4325
</div>
4426

45-
<div className="mb-6">
46-
<div className="text-2xl font-black text-white mb-2 drop-shadow-lg break-words">
27+
<div className="mb-4">
28+
<div className="text-xl font-bold text-slate-900 mb-1 break-words">
4729
{topPerformingAffiliate.name}
4830
</div>
49-
<div className="text-sm text-white/90 font-bold">
50-
🏆 TOP PERFORMER
31+
<div className="text-sm text-slate-600">
32+
🏆 Meilleur affilié
5133
</div>
5234
</div>
5335

54-
<div className="space-y-4">
55-
<div className="bg-white/20 backdrop-blur-sm rounded-xl p-4 border border-white/30">
56-
<div className="text-3xl font-black text-white mb-1 drop-shadow-lg">
36+
<div className="space-y-3">
37+
<div className="bg-slate-50 rounded-lg p-4">
38+
<div className="text-2xl font-bold text-purple-600 mb-1">
5739
{topPerformingAffiliate.conversionRate.toFixed(1)}%
5840
</div>
59-
<div className="text-xs font-bold text-white/90 uppercase tracking-wide">
41+
<div className="text-xs text-slate-600">
6042
Taux de conversion
6143
</div>
6244
</div>
6345

64-
<div className="bg-white/20 backdrop-blur-sm rounded-xl p-4 border border-white/30">
65-
<div className="text-2xl font-black text-white mb-1 drop-shadow-lg">
46+
<div className="bg-slate-50 rounded-lg p-4">
47+
<div className="text-xl font-bold text-emerald-600 mb-1">
6648
{new Intl.NumberFormat('fr-FR', {
6749
style: 'currency',
6850
currency: 'EUR',
6951
minimumFractionDigits: 0,
7052
}).format(topPerformerRevenue)}
7153
</div>
72-
<div className="text-xs font-bold text-white/90 uppercase tracking-wide">
54+
<div className="text-xs text-slate-600">
7355
CA rapporté
7456
</div>
7557
</div>
7658
</div>
77-
78-
<div className="mt-4 flex items-center justify-center">
79-
<div className="bg-emerald-500/30 backdrop-blur-sm rounded-full px-3 py-1 border border-emerald-400/50 flex items-center gap-1 animate-pulse" style={{ animationDuration: '2.8s' }}>
80-
<TrendingUp className="h-3 w-3 text-white" />
81-
<span className="text-xs font-bold text-white">EN FORME</span>
82-
</div>
83-
</div>
8459
</div>
8560
</div>
8661
</div>

0 commit comments

Comments
 (0)