Add brewery header, your-rating, beer list, and comments components

This commit is contained in:
Aaron Po
2026-08-28 14:17:42 -04:00
parent 989aa3ca52
commit 013b4860e1
5 changed files with 261 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
import StarRating from './StarRating';
interface YourRatingCardProps {
value: number;
onChange: (value: number) => void;
}
const YourRatingCard = ({ value, onChange }: YourRatingCardProps) => (
<div className="card bg-base-100 shadow">
<div className="card-body flex-row flex-wrap items-center justify-between gap-4 p-6">
<div className="flex flex-col gap-0.5">
<h3 className="text-xl m-0">Your rating</h3>
<p className="text-sm text-base-content/60 m-0">
{value
? `You rated this ${value} of 5. Tap the same star to clear.`
: 'Tap a star to rate this brewery.'}
</p>
</div>
<StarRating value={value} onChange={onChange} size="lg" />
</div>
</div>
);
export default YourRatingCard;