# urbanprosper thailand real estate ```tsx import Image from 'next/image'; import { MapPin, Bed, Bath, Maximize } from 'lucide-react'; // ใช้ไอคอนจาก lucide-react interface PropertyProps { title: string; price: number; location: string; beds: number; baths: number; sqm: number; imageUrl: string; } export default function PropertyCard({ title, price, location, beds, baths, sqm, imageUrl }: PropertyProps) { return (
{/* ส่วนรูปภาพ พร้อม Hover Effect */}
{title}
ขายด่วน
{/* รายละเอียด */}

{title}

{location}

{beds} นอน
{baths} น้ำ
{sqm} ตร.ม.
฿{price.toLocaleString()}
); } ``` --- ### 2. หน้าแสดงรายการหลัก (`app/properties/page.tsx`) ```tsx import PropertyCard from '@/components/PropertyCard'; const mockData = [ { id: 1, title: "โมเดิร์นวิลล่า สุขุมวิท 101", price: 12500000, location: "พระโขนง, กรุงเทพฯ", beds: 4, baths: 3, sqm: 250, imageUrl: "https://images.unsplash.com/photo-1600585154340-be6161a56a0c" }, { id: 2, title: "คอนโดหรู วิวแม่น้ำ", price: 5200000, location: "บางคอแหลม, กรุงเทพฯ", beds: 1, baths: 1, sqm: 45, imageUrl: "https://images.unsplash.com/photo-1512917774080-9991f1c4c750" }, // เพิ่มข้อมูลอื่นๆ ตามต้องการ... ]; export default function PropertiesPage() { return (

รายการอสังหาริมทรัพย์

พบประกาศทั้งหมด {mockData.length} รายการในพื้นที่ของคุณ

{/* Responsive Grid */}
{mockData.map((item) => ( ))}
); } ```