main layout
This commit is contained in:
@@ -1,115 +0,0 @@
|
||||
'use client';
|
||||
|
||||
import { useSession } from 'next-auth/react';
|
||||
|
||||
export default function UserDashboard() {
|
||||
const { data: session } = useSession();
|
||||
|
||||
return (
|
||||
<div className="space-y-6">
|
||||
{/* Welcome Section */}
|
||||
<div className="bg-white rounded-[20px] shadow-lg p-8">
|
||||
<h1 className="text-3xl font-bold text-[#00293d] mb-2">
|
||||
Welcome, {session?.user?.name?.split(' ')[0] || 'User'}!
|
||||
</h1>
|
||||
<p className="text-[#00293d]/70">
|
||||
Your real estate journey starts here. Explore properties, connect with agents, and find your dream home.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
{/* Quick Actions */}
|
||||
<div className="grid grid-cols-1 md:grid-cols-3 gap-6">
|
||||
<div className="bg-white rounded-[20px] shadow-lg p-6 hover:shadow-xl transition-shadow cursor-pointer">
|
||||
<div className="w-12 h-12 bg-[#00293d] rounded-full flex items-center justify-center mb-4">
|
||||
<svg className="w-6 h-6 text-white" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||||
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z" />
|
||||
</svg>
|
||||
</div>
|
||||
<h3 className="text-lg font-semibold text-[#00293d] mb-2">Search Properties</h3>
|
||||
<p className="text-sm text-[#00293d]/70">Find your perfect home from thousands of listings</p>
|
||||
</div>
|
||||
|
||||
<div className="bg-white rounded-[20px] shadow-lg p-6 hover:shadow-xl transition-shadow cursor-pointer">
|
||||
<div className="w-12 h-12 bg-[#e58625] rounded-full flex items-center justify-center mb-4">
|
||||
<svg className="w-6 h-6 text-white" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||||
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M17 20h5v-2a3 3 0 00-5.356-1.857M17 20H7m10 0v-2c0-.656-.126-1.283-.356-1.857M7 20H2v-2a3 3 0 015.356-1.857M7 20v-2c0-.656.126-1.283.356-1.857m0 0a5.002 5.002 0 019.288 0M15 7a3 3 0 11-6 0 3 3 0 016 0zm6 3a2 2 0 11-4 0 2 2 0 014 0zM7 10a2 2 0 11-4 0 2 2 0 014 0z" />
|
||||
</svg>
|
||||
</div>
|
||||
<h3 className="text-lg font-semibold text-[#00293d] mb-2">Find Agents</h3>
|
||||
<p className="text-sm text-[#00293d]/70">Connect with top real estate professionals</p>
|
||||
</div>
|
||||
|
||||
<div className="bg-white rounded-[20px] shadow-lg p-6 hover:shadow-xl transition-shadow cursor-pointer">
|
||||
<div className="w-12 h-12 bg-[#5ba4a4] rounded-full flex items-center justify-center mb-4">
|
||||
<svg className="w-6 h-6 text-white" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||||
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M4.318 6.318a4.5 4.5 0 000 6.364L12 20.364l7.682-7.682a4.5 4.5 0 00-6.364-6.364L12 7.636l-1.318-1.318a4.5 4.5 0 00-6.364 0z" />
|
||||
</svg>
|
||||
</div>
|
||||
<h3 className="text-lg font-semibold text-[#00293d] mb-2">Saved Favorites</h3>
|
||||
<p className="text-sm text-[#00293d]/70">View your saved properties and searches</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* Stats */}
|
||||
<div className="grid grid-cols-1 md:grid-cols-4 gap-6">
|
||||
<div className="bg-white rounded-[20px] shadow-lg p-6">
|
||||
<p className="text-3xl font-bold text-[#00293d]">0</p>
|
||||
<p className="text-sm text-[#00293d]/70">Saved Properties</p>
|
||||
</div>
|
||||
<div className="bg-white rounded-[20px] shadow-lg p-6">
|
||||
<p className="text-3xl font-bold text-[#00293d]">0</p>
|
||||
<p className="text-sm text-[#00293d]/70">Active Inquiries</p>
|
||||
</div>
|
||||
<div className="bg-white rounded-[20px] shadow-lg p-6">
|
||||
<p className="text-3xl font-bold text-[#00293d]">0</p>
|
||||
<p className="text-sm text-[#00293d]/70">Scheduled Tours</p>
|
||||
</div>
|
||||
<div className="bg-white rounded-[20px] shadow-lg p-6">
|
||||
<p className="text-3xl font-bold text-[#00293d]">0</p>
|
||||
<p className="text-sm text-[#00293d]/70">Messages</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* Featured Properties */}
|
||||
<div className="bg-white rounded-[20px] shadow-lg p-8">
|
||||
<div className="flex items-center justify-between mb-6">
|
||||
<h2 className="text-xl font-bold text-[#00293d]">Featured Properties</h2>
|
||||
<button className="text-[#e58625] hover:text-[#d47a1f] font-medium text-sm">
|
||||
View All →
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<div className="grid grid-cols-1 md:grid-cols-3 gap-6">
|
||||
{/* Property Card Placeholder */}
|
||||
<div className="bg-[#f0f5fc] rounded-[20px] p-6 text-center">
|
||||
<div className="w-16 h-16 bg-[#00293d]/10 rounded-full flex items-center justify-center mx-auto mb-4">
|
||||
<svg className="w-8 h-8 text-[#00293d]/40" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||||
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M19 21V5a2 2 0 00-2-2H7a2 2 0 00-2 2v16m14 0h2m-2 0h-5m-9 0H3m2 0h5M9 7h1m-1 4h1m4-4h1m-1 4h1m-5 10v-5a1 1 0 011-1h2a1 1 0 011 1v5m-4 0h4" />
|
||||
</svg>
|
||||
</div>
|
||||
<p className="text-[#00293d]/70 text-sm">No featured properties yet</p>
|
||||
<button className="mt-4 text-[#e58625] hover:text-[#d47a1f] font-medium text-sm">
|
||||
Browse Properties
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* Recent Activity */}
|
||||
<div className="bg-white rounded-[20px] shadow-lg p-8">
|
||||
<h2 className="text-xl font-bold text-[#00293d] mb-6">Recent Activity</h2>
|
||||
<div className="text-center py-8">
|
||||
<div className="w-16 h-16 bg-[#f0f5fc] rounded-full flex items-center justify-center mx-auto mb-4">
|
||||
<svg className="w-8 h-8 text-[#00293d]/40" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||||
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z" />
|
||||
</svg>
|
||||
</div>
|
||||
<p className="text-[#00293d]/70">No recent activity</p>
|
||||
<p className="text-sm text-[#00293d]/50 mt-2">
|
||||
Start exploring properties to see your activity here
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user