-
Analyzing your requirements and generating your app…
-
-
Loading…
+
+
+
+
Find your perfect getaway
+
Discover and book unique homes and experiences.
+
-
AppWizzy AI is collecting your requirements and applying the first changes.
-
This page will refresh automatically as the plan is implemented.
-
- Runtime: Django {{ django_version }} · Python {{ python_version }}
- — UTC {{ current_time|date:"Y-m-d H:i:s" }}
-
-
-
-
-{% endblock %}
\ No newline at end of file
+
+
+
+
Featured Properties
+
+ {% for property in properties %}
+
+
+

+
+
{{ property.title }}
+
{{ property.location }}
+
${{ property.price_per_night }} / night
+
View Details
+
+
+
+ {% endfor %}
+
+
+{% endblock %}
diff --git a/core/urls.py b/core/urls.py
index 6299e3d..8e0d0ae 100644
--- a/core/urls.py
+++ b/core/urls.py
@@ -1,7 +1,7 @@
from django.urls import path
-from .views import home
+from .views import index
urlpatterns = [
- path("", home, name="home"),
+ path("", index, name="index"),
]
diff --git a/core/views.py b/core/views.py
index c9aed12..fff1779 100644
--- a/core/views.py
+++ b/core/views.py
@@ -1,25 +1,9 @@
-import os
-import platform
-
-from django import get_version as django_version
from django.shortcuts import render
-from django.utils import timezone
-
-
-def home(request):
- """Render the landing screen with loader and environment details."""
- host_name = request.get_host().lower()
- agent_brand = "AppWizzy" if host_name == "appwizzy.com" else "Flatlogic"
- now = timezone.now()
+from .models import Property
+def index(request):
+ properties = Property.objects.all()[:6]
context = {
- "project_name": "New Style",
- "agent_brand": agent_brand,
- "django_version": django_version(),
- "python_version": platform.python_version(),
- "current_time": now,
- "host_name": host_name,
- "project_description": os.getenv("PROJECT_DESCRIPTION", ""),
- "project_image_url": os.getenv("PROJECT_IMAGE_URL", ""),
+ 'properties': properties
}
- return render(request, "core/index.html", context)
+ return render(request, 'core/index.html', context)
diff --git a/static/css/custom.css b/static/css/custom.css
new file mode 100644
index 0000000..7cc6ccc
--- /dev/null
+++ b/static/css/custom.css
@@ -0,0 +1,93 @@
+body {
+ font-family: 'Lato', sans-serif;
+ color: #484848;
+ background-color: #F7F7F7;
+}
+
+h1, h2, h3, h4, h5, h6 {
+ font-family: 'Montserrat', sans-serif;
+}
+
+.hero-section {
+ position: relative;
+ height: 60vh;
+ background: url('https://images.pexels.com/photos/261102/pexels-photo-261102.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1') no-repeat center center;
+ background-size: cover;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+}
+
+.hero-overlay {
+ position: absolute;
+ top: 0;
+ left: 0;
+ width: 100%;
+ height: 100%;
+ background-color: rgba(0, 0, 0, 0.4);
+}
+
+.hero-content {
+ position: relative;
+ z-index: 1;
+}
+
+.hero-title {
+ font-size: 3.5rem;
+ font-weight: 700;
+ color: #FFFFFF;
+}
+
+.hero-subtitle {
+ font-size: 1.5rem;
+ color: #FFFFFF;
+}
+
+.search-form .form-control {
+ padding: 0.75rem 1rem;
+}
+
+.btn-primary {
+ background-color: #FF5A5F;
+ border-color: #FF5A5F;
+ padding: 0.75rem 1rem;
+}
+
+.btn-primary:hover {
+ background-color: #e04f54;
+ border-color: #e04f54;
+}
+
+.section-title {
+ font-weight: 700;
+ margin-bottom: 2rem;
+}
+
+.property-card {
+ border: none;
+ box-shadow: 0 4px 6px rgba(0,0,0,0.1);
+ transition: transform 0.2s;
+}
+
+.property-card:hover {
+ transform: translateY(-5px);
+}
+
+.property-card .card-img-top {
+ height: 200px;
+ object-fit: cover;
+}
+
+.property-card .card-title {
+ font-weight: 700;
+}
+
+.btn-secondary {
+ background-color: #00A699;
+ border-color: #00A699;
+}
+
+.btn-secondary:hover {
+ background-color: #008a7e;
+ border-color: #008a7e;
+}