diff --git a/core/__pycache__/views.cpython-311.pyc b/core/__pycache__/views.cpython-311.pyc index 6867ddf..d16c7bf 100644 Binary files a/core/__pycache__/views.cpython-311.pyc and b/core/__pycache__/views.cpython-311.pyc differ diff --git a/core/templates/base.html b/core/templates/base.html index 788576e..92a0933 100644 --- a/core/templates/base.html +++ b/core/templates/base.html @@ -1,11 +1,22 @@ - + - {% block title %}Knowledge Base{% endblock %} - {% block head %}{% endblock %} - - - {% block content %}{% endblock %} - - + + {% block title %}Stock Bar{% endblock %} + + + + + {% load static %} + + + + +
+ {% block content %}{% endblock %} +
+ + + + \ No newline at end of file diff --git a/core/templates/core/index.html b/core/templates/core/index.html index 0a3f404..ac5671e 100644 --- a/core/templates/core/index.html +++ b/core/templates/core/index.html @@ -1,154 +1,47 @@ -{% extends "base.html" %} +{% extends 'base.html' %} -{% block title %}{{ project_name }}{% endblock %} - -{% block head %} -{% if project_description %} - - - -{% endif %} -{% if project_image_url %} - - -{% endif %} - - - - -{% endblock %} +{% block title %}Stock Bar - Futurist Bar Management{% endblock %} {% block content %} -
-
-

Analyzing your requirements and generating your app…

-
- Loading… +
+ +
+

Stock Bar

+

An elegant and futuristic system for bar inventory and member management.

-

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 + + +
+
+
+

Request Admin Access

+ + {% if message %} + + {% endif %} + +
+ {% csrf_token %} +
+ + +
+
+ + +
+
+ + +
+
+ +
+
+
+
+
+ +{% endblock %} diff --git a/core/urls.py b/core/urls.py index 6299e3d..34bd639 100644 --- a/core/urls.py +++ b/core/urls.py @@ -1,7 +1,6 @@ from django.urls import path - -from .views import home +from .views import index urlpatterns = [ - path("", home, name="home"), -] + path("", index, name="index"), +] \ No newline at end of file diff --git a/core/views.py b/core/views.py index c9aed12..f4cbc79 100644 --- a/core/views.py +++ b/core/views.py @@ -1,25 +1,22 @@ -import os -import platform - -from django import get_version as django_version from django.shortcuts import render -from django.utils import timezone +def index(request): + """ + Render the landing page and handle the admin access request form. + """ + context = {} + if request.method == 'POST': + name = request.POST.get('name') + email = request.POST.get('email') + access_code = request.POST.get('access_code') -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() + # For this first iteration, we'll use a hardcoded secret key. + # In a real application, this should be stored securely. + if access_code == 'Xcloud779900': + context['success'] = True + context['message'] = f"Success, {name}! Your request has been submitted for approval." + else: + context['success'] = False + context['message'] = "Invalid access code. Please try again." - 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) + return render(request, 'core/index.html', context) \ No newline at end of file diff --git a/static/css/custom.css b/static/css/custom.css new file mode 100644 index 0000000..1e4bcdf --- /dev/null +++ b/static/css/custom.css @@ -0,0 +1,72 @@ +:root { + --near-black: #0D0D1A; + --cyan: #00F2FE; + --purple: #7B2BFF; + --silver: #EAEAEA; + --off-white: #F5F5F5; + --danger: #dc3545; + --success: #198754; +} + +body { + background-color: var(--near-black); + color: var(--off-white); + font-family: 'Inter', sans-serif; +} + +h1, h2, h3, h4, h5, h6 { + font-family: 'Poppins', sans-serif; + font-weight: 600; + letter-spacing: 0.05em; +} + +.hero-gradient-text { + background: linear-gradient(90deg, var(--cyan), var(--purple)); + -webkit-background-clip: text; + -webkit-text-fill-color: transparent; + background-clip: text; + text-fill-color: transparent; + font-weight: 800; +} + +.custom-btn { + background: linear-gradient(90deg, var(--cyan), var(--purple)); + border: 0; + border-radius: 12px; + padding: 12px 30px; + font-weight: 600; + color: var(--near-black); + transition: transform 0.2s ease-in-out; +} + +.custom-btn:hover { + transform: scale(1.05); + color: var(--near-black); +} + +.form-card { + background-color: rgba(255, 255, 255, 0.05); + border-radius: 16px; + padding: 2rem; + border: 1px solid rgba(255, 255, 255, 0.1); +} + +.form-control-dark { + background-color: rgba(0, 0, 0, 0.2); + border: 1px solid rgba(255, 255, 255, 0.2); + color: var(--off-white); + border-radius: 12px; + padding: 12px 15px; +} + +.form-control-dark:focus { + background-color: rgba(0, 0, 0, 0.3); + color: var(--off-white); + border-color: var(--cyan); + box-shadow: 0 0 0 0.25rem rgba(0, 242, 254, 0.25); +} + +.form-label { + font-weight: 600; + color: var(--silver); +}