From 02525633d4df0fef54ed4964375b3eab6cc6f56a Mon Sep 17 00:00:00 2001 From: Flatlogic Bot Date: Tue, 9 Dec 2025 06:05:51 +0000 Subject: [PATCH] harsh --- core/__pycache__/admin.cpython-311.pyc | Bin 212 -> 361 bytes core/__pycache__/models.cpython-311.pyc | Bin 209 -> 1053 bytes core/__pycache__/urls.cpython-311.pyc | Bin 347 -> 462 bytes core/__pycache__/views.cpython-311.pyc | Bin 1364 -> 1553 bytes core/admin.py | 3 +- core/migrations/0001_initial.py | 25 +++ .../__pycache__/0001_initial.cpython-311.pyc | Bin 0 -> 1311 bytes core/models.py | 10 +- core/templates/base.html | 4 + core/templates/core/index.html | 197 +++++------------- core/templates/core/registration_success.html | 11 + core/urls.py | 6 +- core/views.py | 43 ++-- static/css/custom.css | 52 ++++- staticfiles/css/custom.css | 61 ++++-- 15 files changed, 225 insertions(+), 187 deletions(-) create mode 100644 core/migrations/0001_initial.py create mode 100644 core/migrations/__pycache__/0001_initial.cpython-311.pyc create mode 100644 core/templates/core/registration_success.html diff --git a/core/__pycache__/admin.cpython-311.pyc b/core/__pycache__/admin.cpython-311.pyc index cd6f855b12f4883b1ba9de01c54245c53aacd714..4f3a9af607cfc02dbc85933846248989d0997534 100644 GIT binary patch delta 267 zcmcb@_>!r9IWI340}ycTG0%(!(vLwL7+{7nJ_i9A(-~42QW$d>av7r-85vTTQkZj? za+#x;85vR;vshqS7O=ut$aE_6GDZf5)j$jZK>aMi44SMj6+nDV##^k3DY=<>FF^`` zJob?M(xS}b5^gD1l<^G)=?kdn0Rw9b*L4QrOANvj+%Gc7Tw##807FIGK#c$r!8cU^ delta 117 zcmaFKbcNA>IWI340}y=Q^((_3NIwQ~V1NnA_$&luOlL@8NMX!j$YqRTWMoKT3TDt` wehE^b$#{!3F(o%M&rg$S;(XDG7ah4cfWnMGTr4|ThEa<90)qk&6|n(D09Qm7z5oCK diff --git a/core/__pycache__/models.cpython-311.pyc b/core/__pycache__/models.cpython-311.pyc index 9aa598b9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%RM0pb7xTsWln^ diff --git a/core/__pycache__/urls.cpython-311.pyc b/core/__pycache__/urls.cpython-311.pyc index 1f807fae1897c89361c99c5e868a26d00799b73f..1d9f9ffc82a838c1caa225598d6447fae64ac612 100644 GIT binary patch literal 462 zcmZusy-ve05I!eP=#Q#O2*dybWvc|u1`9BCW@%Znpb%SWAc-qGrohy(ZvamKLhuMY zL@ITNvNCn6)U6YCDH0$)-`RKizPs~1*J>3|*nU3>bM=1c5F-~M zAOgXDLPn*9Ih8QYuZJXTzN^rT9QYC z>z@_YO-Kh~*<`6Is)|$7Q_2(Z0&}H-#lF*HF?HmnOj7C4Tk6Y{ac98zwdi|3b$rGZ zt(vy_cZceYl)+dNVe4PLQ delta 257 zcmX@de4D9$IWI340}vcY|CNyiq#uJgFu)3Be6|5HrZc24q%h_%dMO^#=jvUtECegPGIU}IqAY;fri>Ij*^c7a9yB8&VL7Wog%O#Dm@+#p!Q1Jn)x Df+RVD diff --git a/core/__pycache__/views.cpython-311.pyc b/core/__pycache__/views.cpython-311.pyc index 6867ddf286a519cf1754ac97038f9f1e4605fbf2..2725761af3290b4af2b897aa3e743603160f5b76 100644 GIT binary patch literal 1553 zcma)6&ube;6rS0ivSn9N*0E{gT9yKKms%3BLrSS#Q%WyQ;|3fE_+pgZi6up=b!S(N z6SgIX9CGL(hk$$3A-ELh&_AI6KySNZLCb<65PHZ>#qGtXz8OdBp9K%gn>X{`_vX{Q zPxI^O=rDqD`HxTQe~JjbWsAWO-aGqcaJG?&Ox#2kUc;8KCSYU=rq~oMX-xuOdWP0y zQwFP;$|};;cMPlxu|i49Bs5M@V%8}!+;^A-aID_7+qCYu23rq?0uInX`)^=(8+oWP zh``|wIUyRtZi49yNG5sAF@+t-*iEv2#23Jbr!c|=Fw!ZEcma%j3L|-#HavmWJdr-| zBx<_s7T%ABH1Im|z&k#B!fWMZz0NW8QRWV~yUEhI_CIH+Ny;(D!=B)Yp7dJX0XDk{ zBaGbKQJR@L$zv6{+ELU)=FkrGY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index 71a8362..e6c00a9 100644 --- a/core/models.py +++ b/core/models.py @@ -1,3 +1,11 @@ from django.db import models -# Create your models here. +class Tourist(models.Model): + name = models.CharField(max_length=100) + email = models.EmailField(unique=True) + emergency_contact_name = models.CharField(max_length=100) + emergency_contact_phone = models.CharField(max_length=20) + created_at = models.DateTimeField(auto_now_add=True) + + def __str__(self): + return self.name \ No newline at end of file diff --git a/core/templates/base.html b/core/templates/base.html index 1e7e5fb..381a993 100644 --- a/core/templates/base.html +++ b/core/templates/base.html @@ -14,6 +14,10 @@ {% endif %} {% load static %} + + + + {% block head %}{% endblock %} diff --git a/core/templates/core/index.html b/core/templates/core/index.html index faec813..5d8ca73 100644 --- a/core/templates/core/index.html +++ b/core/templates/core/index.html @@ -1,145 +1,60 @@ -{% extends "base.html" %} +{% extends 'base.html' %} +{% load static %} -{% block title %}{{ project_name }}{% endblock %} - -{% block head %} - - - - -{% endblock %} +{% block title %}Smart Tourist Safety{% endblock %} {% block content %} -
-
-

Analyzing your requirements and generating your app…

-
- Loading… +
+
+
+
+

Travel with Confidence

+

Your safety, our priority. A smart monitoring and incident response system for tourists.

+
+
+
+

Create Your Digital ID

+

Register in seconds to stay protected during your travels.

+
+ {% csrf_token %} +
+ + +
+
+ + +
+
+ + +
+
+ + +
+ +
+
+
+
-

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" }} -

-
-
-
- Page updated: {{ current_time|date:"Y-m-d H:i:s" }} (UTC) -
-{% endblock %} \ No newline at end of file + + +
+
+
+

Geo-Fence Alerts

+

Receive notifications when entering or leaving designated zones.

+
+
+

Instant SOS

+

Send emergency alerts to our response team with a single tap.

+
+
+

Verified Digital ID

+

Securely share your identity and critical information with responders.

+
+
+
+{% endblock %} diff --git a/core/templates/core/registration_success.html b/core/templates/core/registration_success.html new file mode 100644 index 0000000..96d6f97 --- /dev/null +++ b/core/templates/core/registration_success.html @@ -0,0 +1,11 @@ +{% extends 'base.html' %} + +{% block title %}Registration Successful{% endblock %} + +{% block content %} +
+

Registration Successful!

+

Thank you for registering. Your Digital ID has been created.

+ Go to Homepage +
+{% endblock %} diff --git a/core/urls.py b/core/urls.py index 6299e3d..b41603f 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, registration_success urlpatterns = [ - path("", home, name="home"), + path('', index, name='index'), + path('registration-success/', registration_success, name='registration_success'), ] diff --git a/core/views.py b/core/views.py index c9aed12..b26470e 100644 --- a/core/views.py +++ b/core/views.py @@ -1,25 +1,24 @@ -import os -import platform +from django.shortcuts import render, redirect +from .models import Tourist -from django import get_version as django_version -from django.shortcuts import render -from django.utils import timezone +def index(request): + if request.method == 'POST': + name = request.POST.get('name') + email = request.POST.get('email') + emergency_contact_name = request.POST.get('emergency_contact_name') + emergency_contact_phone = request.POST.get('emergency_contact_phone') + if name and email and emergency_contact_name and emergency_contact_phone: + if not Tourist.objects.filter(email=email).exists(): + Tourist.objects.create( + name=name, + email=email, + emergency_contact_name=emergency_contact_name, + emergency_contact_phone=emergency_contact_phone + ) + return redirect('registration_success') + + return render(request, 'core/index.html') -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() - - 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) +def registration_success(request): + return render(request, 'core/registration_success.html') diff --git a/static/css/custom.css b/static/css/custom.css index 925f6ed..4e1e5f5 100644 --- a/static/css/custom.css +++ b/static/css/custom.css @@ -1,4 +1,50 @@ -/* Custom styles for the application */ -body { - font-family: system-ui, -apple-system, sans-serif; +:root { + --primary-color: #0A2342; + --secondary-color: #F4F7F5; + --accent-color: #2CA58D; + --highlight-color: #F4D35E; + --text-color: #212529; + --heading-font: 'Poppins', sans-serif; + --body-font: 'Lato', sans-serif; } + +body { + font-family: var(--body-font); + color: var(--text-color); +} + +h1, h2, h3, h4, h5, h6 { + font-family: var(--heading-font); + font-weight: 700; +} + +.btn-primary { + background-color: var(--accent-color); + border-color: var(--accent-color); +} + +.btn-primary:hover { + background-color: #248d78; + border-color: #248d78; +} + +.hero-section { + background: linear-gradient(45deg, #0A2342, #1a3a63); + color: var(--secondary-color); + padding: 6rem 0; +} + +.hero-section .lead { + font-size: 1.25rem; + opacity: 0.9; +} + +.registration-form-container { + background-color: rgba(255, 255, 255, 0.05); + backdrop-filter: blur(10px); + border: 1px solid rgba(255, 255, 255, 0.1); +} + +.registration-form-container h2 { + color: var(--highlight-color); +} \ No newline at end of file diff --git a/staticfiles/css/custom.css b/staticfiles/css/custom.css index 108056f..4e1e5f5 100644 --- a/staticfiles/css/custom.css +++ b/staticfiles/css/custom.css @@ -1,21 +1,50 @@ - :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); + --primary-color: #0A2342; + --secondary-color: #F4F7F5; + --accent-color: #2CA58D; + --highlight-color: #F4D35E; + --text-color: #212529; + --heading-font: 'Poppins', sans-serif; + --body-font: 'Lato', sans-serif; } + body { - margin: 0; - font-family: 'Inter', sans-serif; - background: linear-gradient(45deg, var(--bg-color-start), var(--bg-color-end)); + font-family: var(--body-font); color: var(--text-color); - display: flex; - justify-content: center; - align-items: center; - min-height: 100vh; - text-align: center; - overflow: hidden; - position: relative; } + +h1, h2, h3, h4, h5, h6 { + font-family: var(--heading-font); + font-weight: 700; +} + +.btn-primary { + background-color: var(--accent-color); + border-color: var(--accent-color); +} + +.btn-primary:hover { + background-color: #248d78; + border-color: #248d78; +} + +.hero-section { + background: linear-gradient(45deg, #0A2342, #1a3a63); + color: var(--secondary-color); + padding: 6rem 0; +} + +.hero-section .lead { + font-size: 1.25rem; + opacity: 0.9; +} + +.registration-form-container { + background-color: rgba(255, 255, 255, 0.05); + backdrop-filter: blur(10px); + border: 1px solid rgba(255, 255, 255, 0.1); +} + +.registration-form-container h2 { + color: var(--highlight-color); +} \ No newline at end of file