Skip to content

Commit 10c4233

Browse files
committed
frontend: fix DonateView layout
1 parent 7570084 commit 10c4233

1 file changed

Lines changed: 31 additions & 23 deletions

File tree

frontend/src/components/views/DonateView.jsx

Lines changed: 31 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -6,31 +6,39 @@ import { isPS5 } from '../../utils/helpers'
66
const DonateView = () => {
77
const donateUrl = 'https://github.com/itsPLK/ps5-payload-manager/blob/main/DONATE.md';
88
return (
9-
<div className="flex flex-col items-center justify-center min-h-[60vh] text-center space-y-8 md:space-y-12 animate-fade-in max-w-4xl mx-auto py-10 md:py-20">
10-
<div className="p-8 md:p-12 rounded-[2.5rem] md:rounded-[3.5rem] bg-red-600/10 border border-red-600/20 text-red-500 shadow-2xl">
11-
<Heart className="w-16 h-16 md:w-24 md:h-24 fill-current animate-pulse" />
12-
</div>
13-
<div className="space-y-4 md:space-y-6 px-4">
14-
<h3 className="text-4xl md:text-6xl font-black text-white uppercase italic tracking-tighter">Support <span className="text-red-500">Project</span></h3>
15-
<p className="text-lg md:text-2xl text-zinc-400 font-medium leading-relaxed italic">
16-
If you'd like to support my work or just say thanks, you can buy me a coffee. It's much appreciated!
17-
</p>
9+
<div className="flex flex-col xl:flex-row items-center justify-center min-h-[60vh] animate-fade-in max-w-6xl mx-auto py-10 xl:py-20 gap-12 xl:gap-24">
10+
{/* Left Column */}
11+
<div className="flex flex-col items-center text-center space-y-8 md:space-y-10 flex-1 px-4">
12+
<div className="p-8 md:p-10 rounded-[2.5rem] md:rounded-[3.5rem] bg-red-600/10 border border-red-600/20 text-red-500 shadow-2xl inline-flex">
13+
<Heart className="w-16 h-16 md:w-20 md:h-20 fill-current animate-pulse" />
14+
</div>
15+
<div className="space-y-4 md:space-y-6">
16+
<h3 className="text-4xl md:text-6xl font-black text-white uppercase italic tracking-tighter">
17+
Support <span className="text-red-500">Project</span>
18+
</h3>
19+
<p className="text-lg md:text-2xl text-zinc-400 font-medium leading-relaxed italic">
20+
If you'd like to support my work or just say thanks, you can buy me a coffee. It's much appreciated!
21+
</p>
22+
</div>
1823
</div>
1924

20-
{isPS5 ? (
21-
<div className="bg-white p-6 md:p-8 rounded-[2rem] md:rounded-[3rem] shadow-[0_0_60px_rgba(220,38,38,0.3)] mx-4">
22-
<QRCodeSVG value={donateUrl} size={isPS5 ? 250 : 180} level="H" />
23-
</div>
24-
) : (
25-
<a
26-
href={donateUrl}
27-
target="_blank"
28-
rel="noopener noreferrer"
29-
className="px-10 md:px-16 py-6 md:py-8 bg-red-600 text-white text-xl md:text-3xl font-black uppercase rounded-2xl md:rounded-[2rem] hover:bg-red-500 transition-all transform active:scale-95 shadow-[0_0_50px_rgba(220,38,38,0.4)]"
30-
>
31-
View Donation Options
32-
</a>
33-
)}
25+
{/* Right Column */}
26+
<div className="flex items-center justify-center flex-1 px-4">
27+
{isPS5 ? (
28+
<div className="bg-white p-6 md:p-8 rounded-[2rem] md:rounded-[3rem] shadow-[0_0_60px_rgba(220,38,38,0.3)]">
29+
<QRCodeSVG value={donateUrl} size={isPS5 ? 280 : 180} level="H" />
30+
</div>
31+
) : (
32+
<a
33+
href={donateUrl}
34+
target="_blank"
35+
rel="noopener noreferrer"
36+
className="px-10 md:px-16 py-6 md:py-8 bg-red-600 text-white text-xl md:text-3xl font-black uppercase rounded-2xl md:rounded-[2rem] hover:bg-red-500 transition-all transform active:scale-95 shadow-[0_0_50px_rgba(220,38,38,0.4)] text-center block"
37+
>
38+
View Donation Options
39+
</a>
40+
)}
41+
</div>
3442
</div>
3543
)
3644
}

0 commit comments

Comments
 (0)