-
Analyzing your requirements and generating your app…
-
-
Loading…
+
+
+
+
+
Travel with Confidence
+
Your safety, our priority. A smart monitoring and incident response system for tourists.
+
+
+
-
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
+
+
+
+
+
+
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