diff --git a/core/__pycache__/admin.cpython-311.pyc b/core/__pycache__/admin.cpython-311.pyc index cd6f855..ee84441 100644 Binary files a/core/__pycache__/admin.cpython-311.pyc and b/core/__pycache__/admin.cpython-311.pyc differ diff --git a/core/__pycache__/models.cpython-311.pyc b/core/__pycache__/models.cpython-311.pyc index 9aa598b..0103a73 100644 Binary files a/core/__pycache__/models.cpython-311.pyc and b/core/__pycache__/models.cpython-311.pyc differ diff --git a/core/__pycache__/urls.cpython-311.pyc b/core/__pycache__/urls.cpython-311.pyc index 1f807fa..85d8d1a 100644 Binary files a/core/__pycache__/urls.cpython-311.pyc and b/core/__pycache__/urls.cpython-311.pyc differ diff --git a/core/__pycache__/views.cpython-311.pyc b/core/__pycache__/views.cpython-311.pyc index 6867ddf..f0a068a 100644 Binary files a/core/__pycache__/views.cpython-311.pyc and b/core/__pycache__/views.cpython-311.pyc differ diff --git a/core/admin.py b/core/admin.py index 8c38f3f..6378bb2 100644 --- a/core/admin.py +++ b/core/admin.py @@ -1,3 +1,4 @@ from django.contrib import admin +from .models import Property -# Register your models here. +admin.site.register(Property) \ No newline at end of file diff --git a/core/migrations/0001_initial.py b/core/migrations/0001_initial.py new file mode 100644 index 0000000..afd8fc4 --- /dev/null +++ b/core/migrations/0001_initial.py @@ -0,0 +1,24 @@ +# Generated by Django 5.2.7 on 2025-10-31 12:24 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + initial = True + + dependencies = [ + ] + + operations = [ + migrations.CreateModel( + name='Property', + fields=[ + ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('title', models.CharField(max_length=255)), + ('location', models.CharField(max_length=255)), + ('price_per_night', models.DecimalField(decimal_places=2, max_digits=8)), + ('image_url', models.URLField(blank=True, max_length=1024, null=True)), + ], + ), + ] diff --git a/core/migrations/__pycache__/0001_initial.cpython-311.pyc b/core/migrations/__pycache__/0001_initial.cpython-311.pyc new file mode 100644 index 0000000..f70aec5 Binary files /dev/null and b/core/migrations/__pycache__/0001_initial.cpython-311.pyc differ diff --git a/core/models.py b/core/models.py index 71a8362..c1985ec 100644 --- a/core/models.py +++ b/core/models.py @@ -1,3 +1,10 @@ from django.db import models -# Create your models here. +class Property(models.Model): + title = models.CharField(max_length=255) + location = models.CharField(max_length=255) + price_per_night = models.DecimalField(max_digits=8, decimal_places=2) + image_url = models.URLField(max_length=1024, blank=True, null=True) + + def __str__(self): + return self.title \ No newline at end of file diff --git a/core/templates/base.html b/core/templates/base.html index 788576e..bffb148 100644 --- a/core/templates/base.html +++ b/core/templates/base.html @@ -1,11 +1,19 @@ - + - {% block title %}Knowledge Base{% endblock %} + + {% block title %}Homey - Vacation Rentals{% endblock %} + + + + + {% load static %} + {% block head %}{% endblock %} - - + + {% block content %}{% endblock %} - + + diff --git a/core/templates/core/index.html b/core/templates/core/index.html index 0a3f404..c86290d 100644 --- a/core/templates/core/index.html +++ b/core/templates/core/index.html @@ -1,154 +1,50 @@ -{% extends "base.html" %} - -{% block title %}{{ project_name }}{% endblock %} - -{% block head %} -{% if project_description %} - - - -{% endif %} -{% if project_image_url %} - - -{% endif %} - - - - -{% endblock %} +{% extends 'base.html' %} +{% load static %} {% block content %} -
-
-

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.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; +}