Initial Commit
This commit is contained in:
@@ -0,0 +1,99 @@
|
||||
{% extends "base.html" %}
|
||||
{% block title %}NexHome - Find Your Dream Home{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<!-- Hero -->
|
||||
<section class="hero-bg text-white py-20 md:py-32">
|
||||
<div class="max-w-7xl mx-auto px-4 text-center">
|
||||
<h1 class="text-4xl md:text-6xl font-extrabold mb-4 tracking-tight">
|
||||
Find Your <span class="text-warm">Dream Home</span>
|
||||
</h1>
|
||||
<p class="text-xl text-gray-300 mb-10 max-w-2xl mx-auto">
|
||||
Browse thousands of homes for sale across the United States. Your perfect property is just a search away.
|
||||
</p>
|
||||
|
||||
<!-- Search bar -->
|
||||
<form action="/properties" method="GET" class="max-w-3xl mx-auto">
|
||||
<div class="flex flex-col sm:flex-row gap-3 bg-white/10 backdrop-blur p-4 rounded-2xl">
|
||||
<input type="text" name="search" placeholder="Search by city, state, or zip code..."
|
||||
class="flex-1 px-5 py-3 rounded-xl text-gray-800 focus:ring-2 focus:ring-warm outline-none">
|
||||
<button type="submit"
|
||||
class="bg-warm hover:bg-warm-dark text-primary font-bold px-8 py-3 rounded-xl transition">
|
||||
Search
|
||||
</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- Featured Properties -->
|
||||
<section class="max-w-7xl mx-auto px-4 py-16">
|
||||
<div class="flex items-center justify-between mb-8">
|
||||
<div>
|
||||
<h2 class="text-3xl font-bold text-primary">Featured Properties</h2>
|
||||
<p class="text-gray-500 mt-1">Hand-picked properties for you</p>
|
||||
</div>
|
||||
<a href="/properties" class="text-accent hover:text-blue-700 font-medium transition">
|
||||
View All →
|
||||
</a>
|
||||
</div>
|
||||
|
||||
{% if properties %}
|
||||
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
|
||||
{% from "components/property_card.html" import property_card %}
|
||||
{% for prop in properties %}
|
||||
{{ property_card(prop) }}
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% else %}
|
||||
<div class="text-center py-16 text-gray-400">
|
||||
<svg class="w-16 h-16 mx-auto mb-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"
|
||||
d="M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-4 0a1 1 0 01-1-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 01-1 1h-2z"/>
|
||||
</svg>
|
||||
<p class="text-lg">No featured properties yet. Be the first to list!</p>
|
||||
<a href="/properties/new" class="inline-block mt-4 bg-accent hover:bg-blue-700 text-white px-6 py-3 rounded-lg font-medium transition">
|
||||
List a Property
|
||||
</a>
|
||||
</div>
|
||||
{% endif %}
|
||||
</section>
|
||||
|
||||
<!-- Stats -->
|
||||
<section class="bg-white py-16">
|
||||
<div class="max-w-7xl mx-auto px-4">
|
||||
<div class="grid grid-cols-2 md:grid-cols-4 gap-8 text-center">
|
||||
<div>
|
||||
<div class="text-4xl font-extrabold text-accent mb-2">500+</div>
|
||||
<div class="text-gray-500 font-medium">Properties Listed</div>
|
||||
</div>
|
||||
<div>
|
||||
<div class="text-4xl font-extrabold text-accent mb-2">200+</div>
|
||||
<div class="text-gray-500 font-medium">Happy Clients</div>
|
||||
</div>
|
||||
<div>
|
||||
<div class="text-4xl font-extrabold text-accent mb-2">50+</div>
|
||||
<div class="text-gray-500 font-medium">Cities Covered</div>
|
||||
</div>
|
||||
<div>
|
||||
<div class="text-4xl font-extrabold text-accent mb-2">98%</div>
|
||||
<div class="text-gray-500 font-medium">Satisfaction Rate</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- CTA -->
|
||||
<section class="max-w-7xl mx-auto px-4 py-16">
|
||||
<div class="bg-primary rounded-2xl p-10 md:p-16 text-center text-white">
|
||||
<h2 class="text-3xl md:text-4xl font-bold mb-4">Ready to Sell Your Property?</h2>
|
||||
<p class="text-gray-300 mb-8 max-w-xl mx-auto">
|
||||
List your property on NexHome and reach thousands of potential buyers. It's fast, easy, and free.
|
||||
</p>
|
||||
<a href="/properties/new"
|
||||
class="inline-block bg-warm hover:bg-warm-dark text-primary font-bold px-10 py-4 rounded-xl text-lg transition">
|
||||
List Your Property
|
||||
</a>
|
||||
</div>
|
||||
</section>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user