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
31 changes: 31 additions & 0 deletions frontend/src/components/bounty/BountyGrid.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
'use client'

import React from 'react'
import { cn } from '@/lib/utils'

interface BountyGridProps {
children: React.ReactNode
className?: string
}

/**
* BountyGrid - Responsive grid layout for bounty cards.
*
* Breakpoints:
* - < 640px (mobile): 1 column
* - ≥ 768px (tablet): 2 columns
* - ≥1024px (desktop): 3 columns
* - ≥1280px (wide): 4 columns
*/
export default function BountyGrid({ children, className }: BountyGridProps) {
return (
<div
className={cn(
'grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-6',
className
)}
>
{children}
</div>
)
}
3 changes: 2 additions & 1 deletion frontend/src/components/bounty/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
export { default as BountyCard } from './BountyCard'
export type { BountyStatus } from './BountyCard'
export type { BountyStatus } from './BountyCard'
export { default as BountyGrid } from './BountyGrid'