diff --git a/core/__pycache__/context_processors.cpython-311.pyc b/core/__pycache__/context_processors.cpython-311.pyc index 8c0db3a..007e591 100644 Binary files a/core/__pycache__/context_processors.cpython-311.pyc and b/core/__pycache__/context_processors.cpython-311.pyc differ diff --git a/core/__pycache__/forms.cpython-311.pyc b/core/__pycache__/forms.cpython-311.pyc new file mode 100644 index 0000000..41b86ae Binary files /dev/null and b/core/__pycache__/forms.cpython-311.pyc differ diff --git a/core/__pycache__/models.cpython-311.pyc b/core/__pycache__/models.cpython-311.pyc index 9aa598b..a9cc0d1 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..7d0ada6 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..649abc8 100644 Binary files a/core/__pycache__/views.cpython-311.pyc and b/core/__pycache__/views.cpython-311.pyc differ diff --git a/core/context_processors.py b/core/context_processors.py index 5de8c8d..23cd384 100644 --- a/core/context_processors.py +++ b/core/context_processors.py @@ -1,4 +1,5 @@ import os +import time def project_context(request): """ @@ -7,4 +8,5 @@ def project_context(request): return { "project_description": os.getenv("PROJECT_DESCRIPTION", ""), "project_image_url": os.getenv("PROJECT_IMAGE_URL", ""), + "deployment_timestamp": int(time.time()), } diff --git a/core/forms.py b/core/forms.py new file mode 100644 index 0000000..fc0fb5f --- /dev/null +++ b/core/forms.py @@ -0,0 +1,7 @@ +from django import forms +from .models import Ticket + +class TicketForm(forms.ModelForm): + class Meta: + model = Ticket + fields = ['subject', 'email', 'description'] diff --git a/core/migrations/0001_initial.py b/core/migrations/0001_initial.py new file mode 100644 index 0000000..95cb3af --- /dev/null +++ b/core/migrations/0001_initial.py @@ -0,0 +1,25 @@ +# Generated by Django 5.2.7 on 2025-11-24 17:09 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + initial = True + + dependencies = [ + ] + + operations = [ + migrations.CreateModel( + name='Ticket', + fields=[ + ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('subject', models.CharField(max_length=255)), + ('description', models.TextField()), + ('email', models.EmailField(max_length=254)), + ('status', models.CharField(choices=[('open', 'Open'), ('in_progress', 'In Progress'), ('closed', 'Closed')], default='open', max_length=20)), + ('created_at', models.DateTimeField(auto_now_add=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..7f1f181 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..38ef411 100644 --- a/core/models.py +++ b/core/models.py @@ -1,3 +1,17 @@ from django.db import models -# Create your models here. +class Ticket(models.Model): + STATUS_CHOICES = [ + ('open', 'Open'), + ('in_progress', 'In Progress'), + ('closed', 'Closed'), + ] + + subject = models.CharField(max_length=255) + description = models.TextField() + email = models.EmailField() + status = models.CharField(max_length=20, choices=STATUS_CHOICES, default='open') + created_at = models.DateTimeField(auto_now_add=True) + + def __str__(self): + return self.subject \ No newline at end of file diff --git a/core/templates/base.html b/core/templates/base.html index f712934..02e9899 100644 --- a/core/templates/base.html +++ b/core/templates/base.html @@ -13,9 +13,9 @@ {% endif %} + {% load static %} - - {% block head %}{% endblock %} + diff --git a/core/templates/core/index.html b/core/templates/core/index.html index faec813..023be5a 100644 --- a/core/templates/core/index.html +++ b/core/templates/core/index.html @@ -1,145 +1,32 @@ -{% extends "base.html" %} +{% extends 'base.html' %} +{% load static %} -{% block title %}{{ project_name }}{% endblock %} - -{% block head %} - - - - -{% endblock %} +{% block title %}Support Center{% endblock %} {% block content %} -
-
-

Analyzing your requirements and generating your app…

-
- Loading… +
+
+

Support Center

+

Submit a ticket and we'll get back to you shortly.

+ +
+ {% csrf_token %} +
+
+ {{ form.subject.label_tag }} + {{ form.subject }} +
+
+ {{ form.email.label_tag }} + {{ form.email }} +
+
+
+ {{ form.description.label_tag }} + {{ form.description }} +
+ +
-

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 diff --git a/core/templates/core/ticket_success.html b/core/templates/core/ticket_success.html new file mode 100644 index 0000000..c2358cb --- /dev/null +++ b/core/templates/core/ticket_success.html @@ -0,0 +1,12 @@ +{% extends 'base.html' %} +{% load static %} + +{% block title %}Ticket Submitted Successfully{% endblock %} + +{% block content %} +
+

Ticket Submitted!

+

Thank you for contacting us. We will get back to you shortly.

+ Submit another ticket +
+{% endblock %} diff --git a/core/urls.py b/core/urls.py index 6299e3d..a877698 100644 --- a/core/urls.py +++ b/core/urls.py @@ -1,7 +1,7 @@ from django.urls import path - -from .views import home +from . import views urlpatterns = [ - path("", home, name="home"), -] + path('', views.index, name='index'), + path('success/', views.ticket_success, name='ticket_success'), +] \ No newline at end of file diff --git a/core/views.py b/core/views.py index c9aed12..538f341 100644 --- a/core/views.py +++ b/core/views.py @@ -2,24 +2,20 @@ import os import platform from django import get_version as django_version -from django.shortcuts import render -from django.utils import timezone +from django.shortcuts import render, redirect +from django.views.generic import TemplateView +from .forms import TicketForm +def index(request): + if request.method == 'POST': + form = TicketForm(request.POST) + if form.is_valid(): + form.save() + return redirect('ticket_success') + else: + form = TicketForm() + return render(request, 'core/index.html', {'form': form}) -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() +def ticket_success(request): + return render(request, 'core/ticket_success.html') - 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", ""), - } - return render(request, "core/index.html", context) diff --git a/static/css/custom.css b/static/css/custom.css index 925f6ed..2a85403 100644 --- a/static/css/custom.css +++ b/static/css/custom.css @@ -1,4 +1,87 @@ -/* Custom styles for the application */ +/* Custom Styles */ +@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&family=Inter:wght@400;500;600;700&display=swap'); + body { - font-family: system-ui, -apple-system, sans-serif; + font-family: 'Inter', sans-serif; + background: linear-gradient(120deg, #89f7fe 0%, #66a6ff 100%); + color: #fff; + height: 100vh; + display: flex; + align-items: center; + justify-content: center; +} + +h1, h2, h3, h4, h5, h6 { + font-family: 'Poppins', sans-serif; + font-weight: 600; +} + +.glass-container { + background: rgba(255, 255, 255, 0.1); + backdrop-filter: blur(12px); + -webkit-backdrop-filter: blur(12px); + border-radius: 20px; + border: 1px solid rgba(255, 255, 255, 0.18); + box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37); + padding: 40px 50px; + max-width: 800px; + width: 100%; +} + +.display-4 { + color: #fff; + font-weight: 700; +} + +.lead { + color: rgba(255, 255, 255, 0.8); + font-size: 1.2rem; +} + +form { + margin-top: 30px; +} + +form label { + font-weight: 500; + margin-bottom: 8px; + display: block; + color: rgba(255, 255, 255, 0.9); +} + +form input[type="text"], +form input[type="email"], +form textarea { + width: 100%; + padding: 12px 15px; + border-radius: 10px; + border: 1px solid rgba(255, 255, 255, 0.2); + background: rgba(255, 255, 255, 0.08); + color: #fff; + font-family: 'Inter', sans-serif; + font-size: 1rem; + margin-bottom: 15px; +} + +form input[type="text"]::placeholder, +form input[type="email"]::placeholder, +form textarea::placeholder { + color: rgba(255, 255, 255, 0.5); +} + +.btn-primary { + background-color: #4299e1; + border-color: #4299e1; + padding: 12px 30px; + font-weight: 600; + border-radius: 10px; + transition: all 0.3s ease; +} + +.btn-primary:hover { + background-color: #fff; + color: #4299e1; + border-color: #fff; + transform: translateY(-2px); + box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); } diff --git a/staticfiles/css/custom.css b/staticfiles/css/custom.css index 108056f..2a85403 100644 --- a/staticfiles/css/custom.css +++ b/staticfiles/css/custom.css @@ -1,21 +1,87 @@ +/* Custom Styles */ +@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&family=Inter:wght@400;500;600;700&display=swap'); -: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); -} body { - margin: 0; font-family: 'Inter', sans-serif; - background: linear-gradient(45deg, var(--bg-color-start), var(--bg-color-end)); - color: var(--text-color); + background: linear-gradient(120deg, #89f7fe 0%, #66a6ff 100%); + color: #fff; + height: 100vh; display: flex; - justify-content: center; align-items: center; - min-height: 100vh; - text-align: center; - overflow: hidden; - position: relative; + justify-content: center; +} + +h1, h2, h3, h4, h5, h6 { + font-family: 'Poppins', sans-serif; + font-weight: 600; +} + +.glass-container { + background: rgba(255, 255, 255, 0.1); + backdrop-filter: blur(12px); + -webkit-backdrop-filter: blur(12px); + border-radius: 20px; + border: 1px solid rgba(255, 255, 255, 0.18); + box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37); + padding: 40px 50px; + max-width: 800px; + width: 100%; +} + +.display-4 { + color: #fff; + font-weight: 700; +} + +.lead { + color: rgba(255, 255, 255, 0.8); + font-size: 1.2rem; +} + +form { + margin-top: 30px; +} + +form label { + font-weight: 500; + margin-bottom: 8px; + display: block; + color: rgba(255, 255, 255, 0.9); +} + +form input[type="text"], +form input[type="email"], +form textarea { + width: 100%; + padding: 12px 15px; + border-radius: 10px; + border: 1px solid rgba(255, 255, 255, 0.2); + background: rgba(255, 255, 255, 0.08); + color: #fff; + font-family: 'Inter', sans-serif; + font-size: 1rem; + margin-bottom: 15px; +} + +form input[type="text"]::placeholder, +form input[type="email"]::placeholder, +form textarea::placeholder { + color: rgba(255, 255, 255, 0.5); +} + +.btn-primary { + background-color: #4299e1; + border-color: #4299e1; + padding: 12px 30px; + font-weight: 600; + border-radius: 10px; + transition: all 0.3s ease; +} + +.btn-primary:hover { + background-color: #fff; + color: #4299e1; + border-color: #fff; + transform: translateY(-2px); + box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); }