Add brewery discovery & detail pages with location-based search (#253)

This commit is contained in:
Aaron Po
2026-08-29 00:44:33 -04:00
committed by GitHub
parent 92a30b11db
commit a580314583
90 changed files with 3874 additions and 187 deletions

View File

@@ -0,0 +1,24 @@
import SidebarCard from '../shared/SidebarCard';
interface BreweryDetailsCardProps {
foundedYear: number;
type: string;
beerCount: number;
}
const DetailRow = ({ label, value }: { label: string; value: string | number }) => (
<div className="flex items-center justify-between gap-2 text-sm">
<span className="text-base-content/60">{label}</span>
<span className="font-semibold">{value}</span>
</div>
);
const BreweryDetailsCard = ({ foundedYear, type, beerCount }: BreweryDetailsCardProps) => (
<SidebarCard title="Details">
<DetailRow label="Founded" value={foundedYear} />
<DetailRow label="Type" value={type} />
<DetailRow label="Beers listed" value={beerCount} />
</SidebarCard>
);
export default BreweryDetailsCard;