Skip to content

Commit 0628661

Browse files
Apply flat design to commissions info
Apply flat design rules to the commissions info page, consistent with the landing page's styling.
1 parent 470324f commit 0628661

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

src/pages/CommissionInfoPage.tsx

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -86,14 +86,14 @@ export default function CommissionInfoPage() {
8686
};
8787

8888
return (
89-
<div className="min-h-screen bg-gradient-to-br from-slate-50 to-slate-100 p-4">
89+
<div className="min-h-screen bg-background p-4">
9090
<div className="max-w-2xl mx-auto space-y-6">
9191

9292
{/* Header avec félicitations */}
9393
<Card className="border-green-200 bg-green-50">
9494
<CardHeader className="text-center">
9595
<div className="flex justify-center mb-4">
96-
<div className="bg-green-100 p-3 rounded-full">
96+
<div className="bg-green-100 p-3 rounded-xl">
9797
<Gift className="h-8 w-8 text-green-600" />
9898
</div>
9999
</div>
@@ -107,7 +107,7 @@ export default function CommissionInfoPage() {
107107
</Card>
108108

109109
{/* Détails de la commission */}
110-
<Card>
110+
<Card className="border-slate-200">
111111
<CardHeader>
112112
<CardTitle className="flex items-center gap-2">
113113
<CheckCircle className="h-5 w-5 text-green-600" />
@@ -131,10 +131,10 @@ export default function CommissionInfoPage() {
131131

132132
<Separator />
133133

134-
<div className="bg-blue-50 p-4 rounded-lg border border-blue-200">
134+
<div className="bg-blue-50 p-4 rounded-xl border border-blue-200">
135135
<div className="flex items-start gap-3">
136136
<Info className="h-5 w-5 text-blue-600 mt-0.5" />
137-
<div>
137+
<div className="flex-1">
138138
<h4 className="font-semibold text-blue-800 mb-2">
139139
Comment recevoir votre paiement ?
140140
</h4>
@@ -146,7 +146,7 @@ export default function CommissionInfoPage() {
146146
<div className="flex gap-3 mt-4">
147147
<Button
148148
onClick={handleConfigureStripeConnect}
149-
className="flex-1 bg-blue-600 hover:bg-blue-700 text-white"
149+
className="flex-1"
150150
disabled={loading || isConfiguring || !affiliateEmail}
151151
>
152152
{(loading || isConfiguring) ? (
@@ -159,7 +159,7 @@ export default function CommissionInfoPage() {
159159

160160
<Button
161161
variant="outline"
162-
className="flex-1 border-blue-300 text-blue-700 hover:bg-blue-50"
162+
className="flex-1"
163163
onClick={() => window.open('https://connect.stripe.com/login', '_blank')}
164164
>
165165
<LogIn className="h-4 w-4 mr-2" />
@@ -173,7 +173,7 @@ export default function CommissionInfoPage() {
173173
</Card>
174174

175175
{/* Étapes pour configurer Stripe Connect - Encart déroulant */}
176-
<Card>
176+
<Card className="border-slate-200">
177177
<Collapsible open={isStepsOpen} onOpenChange={setIsStepsOpen}>
178178
<CollapsibleTrigger asChild>
179179
<CardHeader className="cursor-pointer hover:bg-slate-50 transition-colors">
@@ -197,8 +197,8 @@ export default function CommissionInfoPage() {
197197
<CollapsibleContent>
198198
<CardContent className="space-y-4 pt-0">
199199
<div className="space-y-3">
200-
<div className="flex items-start gap-3 p-3 border rounded-lg">
201-
<div className="bg-blue-100 text-blue-600 rounded-full w-6 h-6 flex items-center justify-center text-sm font-semibold">
200+
<div className="flex items-start gap-3 p-3 border border-slate-200 rounded-xl">
201+
<div className="bg-blue-100 text-blue-600 rounded-full w-6 h-6 flex items-center justify-center text-sm font-semibold flex-shrink-0">
202202
1
203203
</div>
204204
<div>
@@ -209,8 +209,8 @@ export default function CommissionInfoPage() {
209209
</div>
210210
</div>
211211

212-
<div className="flex items-start gap-3 p-3 border rounded-lg">
213-
<div className="bg-blue-100 text-blue-600 rounded-full w-6 h-6 flex items-center justify-center text-sm font-semibold">
212+
<div className="flex items-start gap-3 p-3 border border-slate-200 rounded-xl">
213+
<div className="bg-blue-100 text-blue-600 rounded-full w-6 h-6 flex items-center justify-center text-sm font-semibold flex-shrink-0">
214214
2
215215
</div>
216216
<div>
@@ -221,8 +221,8 @@ export default function CommissionInfoPage() {
221221
</div>
222222
</div>
223223

224-
<div className="flex items-start gap-3 p-3 border rounded-lg">
225-
<div className="bg-green-100 text-green-600 rounded-full w-6 h-6 flex items-center justify-center text-sm font-semibold">
224+
<div className="flex items-start gap-3 p-3 border border-slate-200 rounded-xl">
225+
<div className="bg-green-100 text-green-600 rounded-full w-6 h-6 flex items-center justify-center text-sm font-semibold flex-shrink-0">
226226
3
227227
</div>
228228
<div>
@@ -236,7 +236,7 @@ export default function CommissionInfoPage() {
236236

237237
<Separator />
238238

239-
<div className="bg-yellow-50 p-4 rounded-lg border border-yellow-200">
239+
<div className="bg-yellow-50 p-4 rounded-xl border border-yellow-200">
240240
<p className="text-yellow-800 text-sm">
241241
<strong>💡 Bon à savoir :</strong> Cette commission de {amount}€ sera versée
242242
dès que votre compte Stripe Connect sera configuré. Rien n'est perdu !
@@ -260,7 +260,7 @@ export default function CommissionInfoPage() {
260260
Une question ? Contactez-nous sur{' '}
261261
<a
262262
href="https://refspring.com/contact"
263-
className="text-blue-600 hover:underline"
263+
className="text-primary hover:underline"
264264
target="_blank"
265265
rel="noopener noreferrer"
266266
>

0 commit comments

Comments
 (0)