Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion frontend/src/components/home/FeaturedBounties.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ export function FeaturedBounties() {
{isLoading && (
<div className="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4">
{Array.from({ length: 4 }).map((_, i) => (
<div key={i} className="rounded-xl border border-border bg-forge-900 h-48 animate-pulse" />
<div key={i} className="rounded-xl border border-border bg-forge-900 p-4 h-56 overflow-hidden">
<div className="h-full bg-gradient-to-r from-forge-900 via-forge-800 to-forge-900 bg-[length:200%_100%] animate-shimmer" />
</div>
))}
</div>
)}
Expand Down
10 changes: 9 additions & 1 deletion frontend/src/components/profile/ProfileDashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,15 @@ function BountyStatusBadge({ status }: { status: string }) {

function MyBountiesTab({ bounties, loading }: { bounties: Bounty[]; loading: boolean }) {
if (loading) {
return <div className="text-text-muted text-sm py-8 text-center">Loading...</div>;
return (
<div className="space-y-2">
{Array.from({ length: 5 }).map((_, i) => (
<div key={i} className="h-16 rounded-lg border border-border bg-forge-900 overflow-hidden">
<div className="h-full bg-gradient-to-r from-forge-900 via-forge-800 to-forge-900 bg-[length:200%_100%] animate-shimmer" />
</div>
))}
</div>
);
}
if (!bounties.length) {
return (
Expand Down
13 changes: 11 additions & 2 deletions frontend/src/pages/LeaderboardPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,17 @@ export function LeaderboardPage() {

{/* Loading */}
{isLoading && (
<div className="flex justify-center py-16">
<div className="w-8 h-8 rounded-full border-2 border-emerald border-t-transparent animate-spin" />
<div className="space-y-4 py-6">
<div className="grid grid-cols-1 md:grid-cols-3 gap-4">
{Array.from({ length: 3 }).map((_, i) => (
<div key={i} className="h-32 rounded-xl border border-border bg-forge-900 overflow-hidden">
<div className="h-full bg-gradient-to-r from-forge-900 via-forge-800 to-forge-900 bg-[length:200%_100%] animate-shimmer" />
</div>
))}
</div>
<div className="h-72 rounded-xl border border-border bg-forge-900 overflow-hidden">
<div className="h-full bg-gradient-to-r from-forge-900 via-forge-800 to-forge-900 bg-[length:200%_100%] animate-shimmer" />
</div>
</div>
)}

Expand Down
Loading