feat: split big file and update agents.md
This commit is contained in:
23
src/shared/ui/info-columns.tsx
Normal file
23
src/shared/ui/info-columns.tsx
Normal file
@@ -0,0 +1,23 @@
|
||||
import { StarIcon } from "lucide-react";
|
||||
|
||||
import { Container } from "@/shared/ui/container";
|
||||
import { RestaurantPanel } from "@/shared/ui/restaurant-panel";
|
||||
|
||||
type InfoItem = { title: string; text: string };
|
||||
|
||||
export function InfoColumns({ title, items }: { title: string; items: readonly InfoItem[] }) {
|
||||
return (
|
||||
<Container className="py-12">
|
||||
<h2 className="mb-6 font-display text-4xl font-semibold">{title}</h2>
|
||||
<div className="grid gap-4 md:grid-cols-3">
|
||||
{items.map((item) => (
|
||||
<RestaurantPanel key={item.title} className="p-6">
|
||||
<StarIcon className="mb-8 size-5 text-primary" />
|
||||
<h3 className="font-display text-2xl font-semibold">{item.title}</h3>
|
||||
<p className="mt-3 text-sm leading-6 text-muted-foreground">{item.text}</p>
|
||||
</RestaurantPanel>
|
||||
))}
|
||||
</div>
|
||||
</Container>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user