From 47d226245fa6544762d0f929a700a24d399e3031 Mon Sep 17 00:00:00 2001 From: Aldo Rizona Date: Thu, 18 Jun 2026 07:41:13 +0700 Subject: [PATCH] feat: implement mobile responsive polish for bounty cards and hero section --- frontend/src/components/bounty/BountyCard.tsx | 16 +++++++++------- frontend/src/components/bounty/BountyGrid.tsx | 4 ++-- frontend/src/components/home/HeroSection.tsx | 12 ++++++------ frontend/src/components/layout/Navbar.tsx | 2 +- 4 files changed, 18 insertions(+), 16 deletions(-) diff --git a/frontend/src/components/bounty/BountyCard.tsx b/frontend/src/components/bounty/BountyCard.tsx index aa974a474..98f0e848a 100644 --- a/frontend/src/components/bounty/BountyCard.tsx +++ b/frontend/src/components/bounty/BountyCard.tsx @@ -101,11 +101,11 @@ export function BountyCard({ bounty }: BountyCardProps) {
{/* Row 4: Reward + Meta */} -
- +
+ {formatCurrency(bounty.reward_amount, bounty.reward_token)} -
+
{bounty.submission_count} PRs @@ -120,10 +120,12 @@ export function BountyCard({ bounty }: BountyCardProps) {
{/* Status badge */} - - - {statusLabel} - +
+ + + {statusLabel} + +
); } diff --git a/frontend/src/components/bounty/BountyGrid.tsx b/frontend/src/components/bounty/BountyGrid.tsx index 7709ab94c..c107c8e73 100644 --- a/frontend/src/components/bounty/BountyGrid.tsx +++ b/frontend/src/components/bounty/BountyGrid.tsx @@ -54,12 +54,12 @@ export function BountyGrid() {
{/* Filter pills */} -
+
{FILTER_SKILLS.map((skill) => (
{/* Terminal body */} -
-
+
+
$ - + forge bounty --reward 100 --lang typescript --tier 2 {typewriterDone && ( @@ -211,7 +211,7 @@ export function HeroSection() { initial={{ opacity: 0 }} animate={{ opacity: 1 }} transition={{ delay: 0.8, duration: 0.5 }} - className="flex items-center justify-center gap-6 mt-8 font-mono text-sm text-text-muted" + className="flex flex-wrap items-center justify-center gap-x-6 gap-y-3 mt-8 font-mono text-xs sm:text-sm text-text-muted text-center" > @@ -219,14 +219,14 @@ export function HeroSection() { {' '}open bounties - · + · $ {' '}paid - · + · diff --git a/frontend/src/components/layout/Navbar.tsx b/frontend/src/components/layout/Navbar.tsx index e4ec31b03..9df19fa50 100644 --- a/frontend/src/components/layout/Navbar.tsx +++ b/frontend/src/components/layout/Navbar.tsx @@ -157,7 +157,7 @@ export function Navbar() { ) : (