Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b09d42dfdb |
Binary file not shown.
BIN
core/__pycache__/forms.cpython-311.pyc
Normal file
BIN
core/__pycache__/forms.cpython-311.pyc
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,3 +1,9 @@
|
|||||||
from django.contrib import admin
|
from django.contrib import admin
|
||||||
|
from .models import Booking
|
||||||
|
|
||||||
# Register your models here.
|
@admin.register(Booking)
|
||||||
|
class BookingAdmin(admin.ModelAdmin):
|
||||||
|
list_display = ('name', 'email', 'company', 'created_at')
|
||||||
|
list_filter = ('created_at',)
|
||||||
|
search_fields = ('name', 'email', 'company', 'message')
|
||||||
|
readonly_fields = ('created_at',)
|
||||||
13
core/forms.py
Normal file
13
core/forms.py
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
from django import forms
|
||||||
|
from .models import Booking
|
||||||
|
|
||||||
|
class BookingForm(forms.ModelForm):
|
||||||
|
class Meta:
|
||||||
|
model = Booking
|
||||||
|
fields = ['name', 'email', 'company', 'message']
|
||||||
|
widgets = {
|
||||||
|
'name': forms.TextInput(attrs={'class': 'form-control', 'placeholder': 'Your Name'}),
|
||||||
|
'email': forms.EmailInput(attrs={'class': 'form-control', 'placeholder': 'Your Email'}),
|
||||||
|
'company': forms.TextInput(attrs={'class': 'form-control', 'placeholder': 'Company Name (Optional)'}),
|
||||||
|
'message': forms.Textarea(attrs={'class': 'form-control', 'placeholder': 'How can we help you?', 'rows': 4}),
|
||||||
|
}
|
||||||
28
core/migrations/0001_initial.py
Normal file
28
core/migrations/0001_initial.py
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
# Generated by Django 5.2.7 on 2026-02-13 20:13
|
||||||
|
|
||||||
|
from django.db import migrations, models
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
initial = True
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.CreateModel(
|
||||||
|
name='Booking',
|
||||||
|
fields=[
|
||||||
|
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||||
|
('name', models.CharField(max_length=255)),
|
||||||
|
('email', models.EmailField(max_length=254)),
|
||||||
|
('company', models.CharField(blank=True, max_length=255)),
|
||||||
|
('message', models.TextField()),
|
||||||
|
('created_at', models.DateTimeField(auto_now_add=True)),
|
||||||
|
],
|
||||||
|
options={
|
||||||
|
'ordering': ['-created_at'],
|
||||||
|
},
|
||||||
|
),
|
||||||
|
]
|
||||||
BIN
core/migrations/__pycache__/0001_initial.cpython-311.pyc
Normal file
BIN
core/migrations/__pycache__/0001_initial.cpython-311.pyc
Normal file
Binary file not shown.
@ -1,3 +1,14 @@
|
|||||||
from django.db import models
|
from django.db import models
|
||||||
|
|
||||||
# Create your models here.
|
class Booking(models.Model):
|
||||||
|
name = models.CharField(max_length=255)
|
||||||
|
email = models.EmailField()
|
||||||
|
company = models.CharField(max_length=255, blank=True)
|
||||||
|
message = models.TextField()
|
||||||
|
created_at = models.DateTimeField(auto_now_add=True)
|
||||||
|
|
||||||
|
def __str__(self):
|
||||||
|
return f"Booking from {self.name} ({self.company})"
|
||||||
|
|
||||||
|
class Meta:
|
||||||
|
ordering = ['-created_at']
|
||||||
@ -1,25 +1,72 @@
|
|||||||
|
{% load static %}
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<title>{% block title %}Knowledge Base{% endblock %}</title>
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
{% if project_description %}
|
<title>{% block title %}Fin Build | Modern Web Design for Businesses{% endblock %}</title>
|
||||||
<meta name="description" content="{{ project_description }}">
|
<meta name="description" content="{% block meta_description %}Fin Build helps business owners create modern, clean, and professional websites that drive results.{% endblock %}">
|
||||||
<meta property="og:description" content="{{ project_description }}">
|
|
||||||
<meta property="twitter:description" content="{{ project_description }}">
|
<!-- Google Fonts -->
|
||||||
{% endif %}
|
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||||
{% if project_image_url %}
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||||
<meta property="og:image" content="{{ project_image_url }}">
|
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Montserrat:wght@700&display=swap" rel="stylesheet">
|
||||||
<meta property="twitter:image" content="{{ project_image_url }}">
|
|
||||||
{% endif %}
|
<!-- Bootstrap 5 CSS CDN -->
|
||||||
{% load static %}
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
|
||||||
<link rel="stylesheet" href="{% static 'css/custom.css' %}?v={{ deployment_timestamp }}">
|
|
||||||
{% block head %}{% endblock %}
|
<!-- Custom CSS -->
|
||||||
|
<link rel="stylesheet" href="{% static 'css/custom.css' %}?v={{ deployment_timestamp }}">
|
||||||
|
|
||||||
|
{% block extra_head %}{% endblock %}
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
{% block content %}{% endblock %}
|
<nav class="navbar navbar-expand-lg sticky-top">
|
||||||
</body>
|
<div class="container">
|
||||||
|
<a class="navbar-brand" href="{% url 'home' %}">
|
||||||
|
<span class="accent-text">FIN</span> BUILD
|
||||||
|
</a>
|
||||||
|
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav">
|
||||||
|
<span class="navbar-toggler-icon"></span>
|
||||||
|
</button>
|
||||||
|
<div class="collapse navbar-collapse" id="navbarNav">
|
||||||
|
<ul class="navbar-nav ms-auto">
|
||||||
|
<li class="nav-item"><a class="nav-link" href="#services">Services</a></li>
|
||||||
|
<li class="nav-item"><a class="nav-link" href="#how-it-works">How It Works</a></li>
|
||||||
|
<li class="nav-item"><a class="nav-link" href="#portfolio">Portfolio</a></li>
|
||||||
|
<li class="nav-item"><a class="nav-link" href="/admin/">Admin Login</a></li>
|
||||||
|
<li class="nav-item ms-lg-3">
|
||||||
|
<a class="btn btn-accent btn-sm" href="#contact">Book Now</a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</nav>
|
||||||
|
|
||||||
|
<main>
|
||||||
|
{% if messages %}
|
||||||
|
<div class="container mt-4">
|
||||||
|
{% for message in messages %}
|
||||||
|
<div class="alert alert-{% if message.tags == 'error' %}danger{% else %}{{ message.tags }}{% endif %} alert-dismissible fade show" role="alert">
|
||||||
|
{{ message }}
|
||||||
|
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
|
||||||
|
</div>
|
||||||
|
{% endfor %}
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
{% block content %}{% endblock %}
|
||||||
|
</main>
|
||||||
|
|
||||||
|
<footer class="footer mt-auto">
|
||||||
|
<div class="container text-center">
|
||||||
|
<p class="mb-2"><span class="accent-text">FIN BUILD</span> — Modern Web Design Agency</p>
|
||||||
|
<p class="text-secondary small mb-0">© 2026 Fin Build. All rights reserved.</p>
|
||||||
|
</div>
|
||||||
|
</footer>
|
||||||
|
|
||||||
|
<!-- Bootstrap 5 JS Bundle -->
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
|
||||||
|
{% block extra_js %}{% endblock %}
|
||||||
|
</body>
|
||||||
</html>
|
</html>
|
||||||
@ -1,145 +1,153 @@
|
|||||||
{% extends "base.html" %}
|
{% extends 'base.html' %}
|
||||||
|
{% load static %}
|
||||||
{% block title %}{{ project_name }}{% endblock %}
|
|
||||||
|
|
||||||
{% block head %}
|
|
||||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
|
||||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
||||||
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap" rel="stylesheet">
|
|
||||||
<style>
|
|
||||||
:root {
|
|
||||||
--bg-color-start: #6a11cb;
|
|
||||||
--bg-color-end: #2575fc;
|
|
||||||
--text-color: #ffffff;
|
|
||||||
--card-bg-color: rgba(255, 255, 255, 0.01);
|
|
||||||
--card-border-color: rgba(255, 255, 255, 0.1);
|
|
||||||
}
|
|
||||||
|
|
||||||
* {
|
|
||||||
box-sizing: border-box;
|
|
||||||
}
|
|
||||||
|
|
||||||
body {
|
|
||||||
margin: 0;
|
|
||||||
font-family: 'Inter', sans-serif;
|
|
||||||
background: linear-gradient(45deg, var(--bg-color-start), var(--bg-color-end));
|
|
||||||
color: var(--text-color);
|
|
||||||
display: flex;
|
|
||||||
justify-content: center;
|
|
||||||
align-items: center;
|
|
||||||
min-height: 100vh;
|
|
||||||
text-align: center;
|
|
||||||
overflow: hidden;
|
|
||||||
position: relative;
|
|
||||||
}
|
|
||||||
|
|
||||||
body::before {
|
|
||||||
content: '';
|
|
||||||
position: absolute;
|
|
||||||
inset: 0;
|
|
||||||
background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'><path d='M-10 10L110 10M10 -10L10 110' stroke-width='1' stroke='rgba(255,255,255,0.05)'/></svg>");
|
|
||||||
animation: bg-pan 20s linear infinite;
|
|
||||||
z-index: -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
@keyframes bg-pan {
|
|
||||||
0% {
|
|
||||||
background-position: 0% 0%;
|
|
||||||
}
|
|
||||||
|
|
||||||
100% {
|
|
||||||
background-position: 100% 100%;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
main {
|
|
||||||
padding: 2rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.card {
|
|
||||||
background: var(--card-bg-color);
|
|
||||||
border: 1px solid var(--card-border-color);
|
|
||||||
border-radius: 16px;
|
|
||||||
padding: 2.5rem 2rem;
|
|
||||||
backdrop-filter: blur(20px);
|
|
||||||
-webkit-backdrop-filter: blur(20px);
|
|
||||||
box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25);
|
|
||||||
}
|
|
||||||
|
|
||||||
h1 {
|
|
||||||
font-size: clamp(2.2rem, 3vw + 1.2rem, 3.2rem);
|
|
||||||
font-weight: 700;
|
|
||||||
margin: 0 0 1.2rem;
|
|
||||||
letter-spacing: -0.02em;
|
|
||||||
}
|
|
||||||
|
|
||||||
p {
|
|
||||||
margin: 0.5rem 0;
|
|
||||||
font-size: 1.1rem;
|
|
||||||
opacity: 0.92;
|
|
||||||
}
|
|
||||||
|
|
||||||
.loader {
|
|
||||||
margin: 1.5rem auto;
|
|
||||||
width: 56px;
|
|
||||||
height: 56px;
|
|
||||||
border: 4px solid rgba(255, 255, 255, 0.25);
|
|
||||||
border-top-color: #fff;
|
|
||||||
border-radius: 50%;
|
|
||||||
animation: spin 1s linear infinite;
|
|
||||||
}
|
|
||||||
|
|
||||||
@keyframes spin {
|
|
||||||
to {
|
|
||||||
transform: rotate(360deg);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.runtime code {
|
|
||||||
background: rgba(0, 0, 0, 0.25);
|
|
||||||
padding: 0.15rem 0.45rem;
|
|
||||||
border-radius: 4px;
|
|
||||||
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
|
|
||||||
}
|
|
||||||
|
|
||||||
.sr-only {
|
|
||||||
position: absolute;
|
|
||||||
width: 1px;
|
|
||||||
height: 1px;
|
|
||||||
padding: 0;
|
|
||||||
margin: -1px;
|
|
||||||
overflow: hidden;
|
|
||||||
clip: rect(0, 0, 0, 0);
|
|
||||||
border: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
footer {
|
|
||||||
position: absolute;
|
|
||||||
bottom: 1rem;
|
|
||||||
width: 100%;
|
|
||||||
text-align: center;
|
|
||||||
font-size: 0.85rem;
|
|
||||||
opacity: 0.75;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
{% endblock %}
|
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<main>
|
<!-- Hero Section -->
|
||||||
<div class="card">
|
<section class="hero-section">
|
||||||
<h1>Analyzing your requirements and generating your app…</h1>
|
<div class="container">
|
||||||
<div class="loader" role="status" aria-live="polite" aria-label="Applying initial changes">
|
<div class="row align-items-center">
|
||||||
<span class="sr-only">Loading…</span>
|
<div class="col-lg-7">
|
||||||
|
<h1 class="display-3 mb-4">Websites Built for <span class="accent-text">Business Growth</span></h1>
|
||||||
|
<p class="lead text-secondary mb-5 fs-4">We create modern, clean, and professional websites that help business owners build trust and attract more clients.</p>
|
||||||
|
<div class="d-flex gap-3">
|
||||||
|
<a href="#contact" class="btn btn-accent px-5">Get Started</a>
|
||||||
|
<a href="#services" class="btn btn-outline-accent px-5">Our Services</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-lg-5 d-none d-lg-block">
|
||||||
|
<!-- Placeholder for a clean graphic/3D shape -->
|
||||||
|
<div style="width: 100%; height: 400px; background: rgba(198, 167, 78, 0.1); border-radius: 24px; border: 1px dashed var(--fb-accent); display: flex; align-items: center; justify-content: center; transform: rotate(3deg);">
|
||||||
|
<div style="width: 200px; height: 200px; background: var(--fb-accent); border-radius: 50%; filter: blur(80px); opacity: 0.3;"></div>
|
||||||
|
<span class="accent-text h3" style="transform: rotate(-3deg);">Professional. Clean. Confident.</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<p class="hint">AppWizzy AI is collecting your requirements and applying the first changes.</p>
|
</section>
|
||||||
<p class="hint">This page will refresh automatically as the plan is implemented.</p>
|
|
||||||
<p class="runtime">
|
<!-- Services Section -->
|
||||||
Runtime: Django <code>{{ django_version }}</code> · Python <code>{{ python_version }}</code>
|
<section id="services" class="section-padding bg-section">
|
||||||
— UTC <code>{{ current_time|date:"Y-m-d H:i:s" }}</code>
|
<div class="container">
|
||||||
</p>
|
<div class="text-center mb-5">
|
||||||
</div>
|
<h2 class="h1 mb-3">Our Services</h2>
|
||||||
</main>
|
<div style="width: 80px; height: 4px; background: var(--fb-accent); margin: 0 auto;"></div>
|
||||||
<footer>
|
</div>
|
||||||
Page updated: {{ current_time|date:"Y-m-d H:i:s" }} (UTC)
|
<div class="row g-4">
|
||||||
</footer>
|
<div class="col-md-4">
|
||||||
|
<div class="card h-100 p-4">
|
||||||
|
<div class="mb-4 text-accent"><svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" fill="var(--fb-accent)" viewBox="0 0 16 16"><path d="M14 1a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1h12zM2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2z"/><path d="M8 4a.5.5 0 0 1 .5.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3A.5.5 0 0 1 8 4z"/></svg></div>
|
||||||
|
<h3 class="h4">Custom Web Design</h3>
|
||||||
|
<p class="text-secondary">Tailor-made websites designed to reflect your brand's unique identity and professional values.</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-4">
|
||||||
|
<div class="card h-100 p-4">
|
||||||
|
<div class="mb-4 text-accent"><svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" fill="var(--fb-accent)" viewBox="0 0 16 16"><path d="M11 1a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1h6zM5 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h6a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H5z"/><path d="M8 14a1 1 0 1 0 0-2 1 1 0 0 0 0 2z"/></svg></div>
|
||||||
|
<h3 class="h4">Mobile Optimization</h3>
|
||||||
|
<p class="text-secondary">Ensuring your business looks great on every device—from desktops to smartphones.</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-4">
|
||||||
|
<div class="card h-100 p-4">
|
||||||
|
<div class="mb-4 text-accent"><svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" fill="var(--fb-accent)" viewBox="0 0 16 16"><path d="M3 14.5A1.5 1.5 0 0 1 1.5 13V3A1.5 1.5 0 0 1 3 1.5h8a.5.5 0 0 1 0 1H3a.5.5 0 0 0-.5.5v10a.5.5 0 0 0 .5.5h10a.5.5 0 0 0 .5-.5V8a.5.5 0 0 1 1 0v5a1.5 1.5 0 0 1-1.5 1.5H3z"/><path d="m10.5 5h3a.5.5 0 0 1 .5.5v3a.5.5 0 0 1-1 0V6.707L7.854 11.854a.5.5 0 1 1-.708-.708L12.293 6H10.5a.5.5 0 0 1 0-1z"/></svg></div>
|
||||||
|
<h3 class="h4">Performance & Speed</h3>
|
||||||
|
<p class="text-secondary">Fast-loading pages designed to keep your visitors engaged and improve search rankings.</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<!-- How It Works Section -->
|
||||||
|
<section id="how-it-works" class="section-padding">
|
||||||
|
<div class="container">
|
||||||
|
<div class="text-center mb-5">
|
||||||
|
<h2 class="h1 mb-3">How It Works</h2>
|
||||||
|
<div style="width: 80px; height: 4px; background: var(--fb-accent); margin: 0 auto;"></div>
|
||||||
|
</div>
|
||||||
|
<div class="row g-5">
|
||||||
|
<div class="col-md-4 text-center">
|
||||||
|
<div class="h2 accent-text mb-3">01</div>
|
||||||
|
<h3 class="h5">Consultation</h3>
|
||||||
|
<p class="text-secondary">We discuss your business goals and target audience to understand your needs.</p>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-4 text-center">
|
||||||
|
<div class="h2 accent-text mb-3">02</div>
|
||||||
|
<h3 class="h5">Design & Build</h3>
|
||||||
|
<p class="text-secondary">Our team crafts a professional website tailored to your business requirements.</p>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-4 text-center">
|
||||||
|
<div class="h2 accent-text mb-3">03</div>
|
||||||
|
<h3 class="h5">Launch</h3>
|
||||||
|
<p class="text-secondary">Your new professional website goes live, ready to serve your customers.</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<!-- Portfolio Section -->
|
||||||
|
<section id="portfolio" class="section-padding bg-section">
|
||||||
|
<div class="container">
|
||||||
|
<div class="text-center mb-5">
|
||||||
|
<h2 class="h1 mb-3">Featured Work</h2>
|
||||||
|
<div style="width: 80px; height: 4px; background: var(--fb-accent); margin: 0 auto;"></div>
|
||||||
|
</div>
|
||||||
|
<div class="row g-4">
|
||||||
|
<div class="col-md-6">
|
||||||
|
<div class="card h-100">
|
||||||
|
<div style="height: 300px; background: #122a24; display: flex; align-items: center; justify-content: center;">
|
||||||
|
<span class="text-secondary">Law Firm Website</span>
|
||||||
|
</div>
|
||||||
|
<div class="p-4">
|
||||||
|
<h3 class="h5">Apex Legal Partners</h3>
|
||||||
|
<p class="text-secondary small">Clean, corporate, and trustworthy design.</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-6">
|
||||||
|
<div class="card h-100">
|
||||||
|
<div style="height: 300px; background: #122a24; display: flex; align-items: center; justify-content: center;">
|
||||||
|
<span class="text-secondary">Medical Clinic Website</span>
|
||||||
|
</div>
|
||||||
|
<div class="p-4">
|
||||||
|
<h3 class="h5">Green Valley Health</h3>
|
||||||
|
<p class="text-secondary small">Patient-focused and easy to navigate.</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<!-- Contact Section -->
|
||||||
|
<section id="contact" class="section-padding">
|
||||||
|
<div class="container">
|
||||||
|
<div class="row justify-content-center">
|
||||||
|
<div class="col-lg-6">
|
||||||
|
<div class="card p-5">
|
||||||
|
<div class="text-center mb-4">
|
||||||
|
<h2 class="h3">Book Your Consultation</h2>
|
||||||
|
<p class="text-secondary">Ready to elevate your business? Let's talk.</p>
|
||||||
|
</div>
|
||||||
|
<form method="post">
|
||||||
|
{% csrf_token %}
|
||||||
|
<div class="mb-3">
|
||||||
|
{{ form.name }}
|
||||||
|
</div>
|
||||||
|
<div class="mb-3">
|
||||||
|
{{ form.email }}
|
||||||
|
</div>
|
||||||
|
<div class="mb-3">
|
||||||
|
{{ form.company }}
|
||||||
|
</div>
|
||||||
|
<div class="mb-4">
|
||||||
|
{{ form.message }}
|
||||||
|
</div>
|
||||||
|
<button type="submit" class="btn btn-accent w-100">Send Request</button>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
@ -1,25 +1,18 @@
|
|||||||
import os
|
from django.shortcuts import render, redirect
|
||||||
import platform
|
from django.contrib import messages
|
||||||
|
from .forms import BookingForm
|
||||||
from django import get_version as django_version
|
|
||||||
from django.shortcuts import render
|
|
||||||
from django.utils import timezone
|
|
||||||
|
|
||||||
|
|
||||||
def home(request):
|
def home(request):
|
||||||
"""Render the landing screen with loader and environment details."""
|
if request.method == 'POST':
|
||||||
host_name = request.get_host().lower()
|
form = BookingForm(request.POST)
|
||||||
agent_brand = "AppWizzy" if host_name == "appwizzy.com" else "Flatlogic"
|
if form.is_valid():
|
||||||
now = timezone.now()
|
form.save()
|
||||||
|
messages.success(request, 'Thank you! Your booking request has been received. We will contact you shortly.')
|
||||||
|
return redirect('home')
|
||||||
|
else:
|
||||||
|
form = BookingForm()
|
||||||
|
|
||||||
context = {
|
context = {
|
||||||
"project_name": "New Style",
|
'form': form,
|
||||||
"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", ""),
|
|
||||||
}
|
}
|
||||||
return render(request, "core/index.html", context)
|
return render(request, 'core/index.html', context)
|
||||||
@ -1,4 +1,121 @@
|
|||||||
/* Custom styles for the application */
|
/* Fin Build Branding */
|
||||||
body {
|
:root {
|
||||||
font-family: system-ui, -apple-system, sans-serif;
|
--fb-bg: #0B1F1A;
|
||||||
|
--fb-section-bg: #0A1512;
|
||||||
|
--fb-card-bg: #1A1F1D;
|
||||||
|
--fb-heading: #FFFFFF;
|
||||||
|
--fb-body: #EDEFEA;
|
||||||
|
--fb-secondary: #B7BCB9;
|
||||||
|
--fb-accent: #C6A74E;
|
||||||
|
}
|
||||||
|
|
||||||
|
body {
|
||||||
|
background-color: var(--fb-bg);
|
||||||
|
color: var(--fb-body);
|
||||||
|
font-family: 'Inter', sans-serif;
|
||||||
|
line-height: 1.6;
|
||||||
|
}
|
||||||
|
|
||||||
|
h1, h2, h3, h4, h5, h6, .navbar-brand {
|
||||||
|
font-family: 'Montserrat', sans-serif;
|
||||||
|
color: var(--fb-heading);
|
||||||
|
font-weight: 700;
|
||||||
|
}
|
||||||
|
|
||||||
|
.text-secondary {
|
||||||
|
color: var(--fb-secondary) !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bg-section {
|
||||||
|
background-color: var(--fb-section-bg);
|
||||||
|
}
|
||||||
|
|
||||||
|
.card {
|
||||||
|
background-color: var(--fb-card-bg);
|
||||||
|
border: 1px solid rgba(255, 255, 255, 0.05);
|
||||||
|
transition: transform 0.3s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card:hover {
|
||||||
|
transform: translateY(-5px);
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-accent {
|
||||||
|
background-color: var(--fb-accent);
|
||||||
|
color: var(--fb-bg);
|
||||||
|
font-weight: 600;
|
||||||
|
border: none;
|
||||||
|
padding: 12px 24px;
|
||||||
|
border-radius: 4px;
|
||||||
|
transition: opacity 0.3s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-accent:hover {
|
||||||
|
opacity: 0.9;
|
||||||
|
color: var(--fb-bg);
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-outline-accent {
|
||||||
|
border: 2px solid var(--fb-accent);
|
||||||
|
color: var(--fb-accent);
|
||||||
|
font-weight: 600;
|
||||||
|
padding: 10px 22px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-outline-accent:hover {
|
||||||
|
background-color: var(--fb-accent);
|
||||||
|
color: var(--fb-bg);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Form Styling */
|
||||||
|
.form-control {
|
||||||
|
background-color: #0d1211;
|
||||||
|
border: 1px solid #2a3331;
|
||||||
|
color: var(--fb-body);
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-control:focus {
|
||||||
|
background-color: #0d1211;
|
||||||
|
border-color: var(--fb-accent);
|
||||||
|
color: var(--fb-body);
|
||||||
|
box-shadow: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-control::placeholder {
|
||||||
|
color: var(--fb-secondary);
|
||||||
|
opacity: 0.5;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Navbar Styling */
|
||||||
|
.navbar {
|
||||||
|
background-color: var(--fb-bg);
|
||||||
|
border-bottom: 1px solid rgba(255, 255, 255, 0.05);
|
||||||
|
}
|
||||||
|
|
||||||
|
.nav-link {
|
||||||
|
color: var(--fb-secondary) !important;
|
||||||
|
font-weight: 500;
|
||||||
|
}
|
||||||
|
|
||||||
|
.nav-link:hover {
|
||||||
|
color: var(--fb-accent) !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Hero Section */
|
||||||
|
.hero-section {
|
||||||
|
padding: 120px 0;
|
||||||
|
background: radial-gradient(circle at top right, #1a2e28 0%, var(--fb-bg) 60%);
|
||||||
|
}
|
||||||
|
|
||||||
|
.section-padding {
|
||||||
|
padding: 100px 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.accent-text {
|
||||||
|
color: var(--fb-accent);
|
||||||
|
}
|
||||||
|
|
||||||
|
.footer {
|
||||||
|
border-top: 1px solid rgba(255, 255, 255, 0.05);
|
||||||
|
padding: 40px 0;
|
||||||
}
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user