44 lines
1.9 KiB
TypeScript
44 lines
1.9 KiB
TypeScript
import { mockDb } from '@/lib/mockDb'
|
||
|
||
export default async function AdminNeighborhoodsPage() {
|
||
const neighborhoods = await mockDb.getNeighborhoods()
|
||
|
||
return (
|
||
<div className="space-y-6">
|
||
<div className="flex items-center justify-between">
|
||
<div>
|
||
<h2 className="text-3xl font-heading font-extrabold text-pine lowercase">mahalleler</h2>
|
||
<p className="text-ink/65 text-xs font-medium mt-1">
|
||
Marmaris Local rehberindeki mekanların filtrelendiği mahalle/bölgeler.
|
||
</p>
|
||
</div>
|
||
</div>
|
||
|
||
<div className="bg-paper border border-pine/8 rounded-2xl shadow-sm overflow-hidden max-w-4xl">
|
||
<table className="min-w-full divide-y divide-pine/8 text-sm">
|
||
<thead className="bg-stone-deep/40 text-shutter font-mono text-[10px] uppercase tracking-wider">
|
||
<tr>
|
||
<th className="px-6 py-4 text-left">ID</th>
|
||
<th className="px-6 py-4 text-left">Slug</th>
|
||
<th className="px-6 py-4 text-left">Adı (TR)</th>
|
||
<th className="px-6 py-4 text-left">Name (EN)</th>
|
||
<th className="px-6 py-4 text-left">Имя (RU)</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody className="divide-y divide-dashed divide-pine/8 text-ink/85 font-medium">
|
||
{neighborhoods.map((neigh) => (
|
||
<tr key={neigh.id} className="hover:bg-stone/20 transition duration-150">
|
||
<td className="px-6 py-4 font-mono text-xs text-shutter">{neigh.id}</td>
|
||
<td className="px-6 py-4 font-mono text-xs font-bold text-turquoise">{neigh.slug}</td>
|
||
<td className="px-6 py-4 font-heading font-bold text-pine lowercase text-sm">{neigh.nameTr}</td>
|
||
<td className="px-6 py-4 text-xs">{neigh.nameEn}</td>
|
||
<td className="px-6 py-4 text-xs">{neigh.nameRu}</td>
|
||
</tr>
|
||
))}
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
</div>
|
||
)
|
||
}
|