sksameermujahid's picture
Upload 34 files
9860c76 verified
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Property Recommender</title>
<style>
body {
font-family: Arial, sans-serif;
background: #f8f9fa;
padding: 20px;
}
.container {
max-width: 960px;
margin: auto;
}
form {
background: #fff;
padding: 20px;
border-radius: 8px;
box-shadow: 0 0 8px rgba(0,0,0,0.1);
margin-bottom: 30px;
}
input[type="text"], button {
width: 100%;
padding: 12px;
margin: 8px 0;
border-radius: 4px;
border: 1px solid #ccc;
}
button {
background-color: #273469;
color: white;
cursor: pointer;
font-weight: bold;
}
button:hover {
background-color: #1e2749;
}
.property-card {
background: #fff;
padding: 16px;
margin-bottom: 20px;
border-radius: 8px;
border-left: 6px solid #273469;
box-shadow: 0 0 5px rgba(0,0,0,0.1);
}
.property-card img {
width: 200px;
height: auto;
margin-right: 10px;
border-radius: 6px;
}
.images {
display: flex;
gap: 10px;
margin-top: 10px;
}
</style>
</head>
<body>
<div class="container">
<h1>Find Your Dream Property</h1>
<form method="POST">
<label>What type of property are you looking for?</label>
<input type="text" name="propertyType" placeholder="e.g., Villa, Flat" required>
<label>What price range are you looking for? (e.g., 50000-20000000)</label>
<input type="text" name="priceRange" placeholder="e.g., 50000-20000000" required>
<button type="submit">Get Recommendations</button>
</form>
{% if error %}
<p style="color: red;"><strong>Error:</strong> {{ error }}</p>
{% endif %}
{% if recommended %}
<h2>Recommended Properties</h2>
{% for prop in recommended %}
<div class="property-card">
<h3>{{ prop.propertyName }}</h3>
<p><strong>Type:</strong> {{ prop.typeName }}</p>
<p><strong>Location:</strong> {{ prop.address }}</p>
<p><strong>Price:</strong> ₹{{ "{:,}".format(prop.marketValue) }}</p>
<p><strong>Description:</strong> {{ prop.description }}</p>
<div class="images">
{% for img in prop.propertyImages[:3] %}
<img src="{{ img }}" alt="Property Image">
{% endfor %}
</div>
</div>
{% endfor %}
{% endif %}
</div>
</body>
</html>