Add sidebar cards and shared star-rating component for brewery detail page

This commit is contained in:
Aaron Po
2026-08-28 14:16:52 -04:00
parent 28148e9ec4
commit 989aa3ca52
8 changed files with 401 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
import type { ReactNode } from 'react';
interface SidebarCardProps {
title: string;
children: ReactNode;
}
const SidebarCard = ({ title, children }: SidebarCardProps) => (
<div className="card bg-base-100 shadow">
<div className="card-body gap-3 p-6">
<p className="text-xs font-bold uppercase tracking-widest text-base-content/50 m-0">
{title}
</p>
{children}
</div>
</div>
);
export default SidebarCard;