From b4cd92757c39c6dda2394187e762c5dc65cc2eb1 Mon Sep 17 00:00:00 2001 From: Flatlogic Bot Date: Mon, 10 Nov 2025 04:33:08 +0000 Subject: [PATCH] Auto commit: 2025-11-10T04:33:08.445Z --- core/__pycache__/views.cpython-311.pyc | Bin 1364 -> 1085 bytes core/templates/base.html | 27 +++- core/templates/core/index.html | 193 ++++++------------------- core/urls.py | 7 +- core/views.py | 39 +++-- static/css/custom.css | 72 +++++++++ 6 files changed, 155 insertions(+), 183 deletions(-) create mode 100644 static/css/custom.css diff --git a/core/__pycache__/views.cpython-311.pyc b/core/__pycache__/views.cpython-311.pyc index 6867ddf286a519cf1754ac97038f9f1e4605fbf2..d16c7bf099e01ab21f7eaba8b97cd3d5d3496936 100644 GIT binary patch literal 1085 zcma)5%}X0W6ras*vN0Roq@__PH4{ps0lV>{Vv!yzQfQ@mXuXup&NNxwk92m|j}VIo z4>|PUK~N}#oUFxvCJ6zr1f$`XEfttn6)3eLk)kchQC9NaH~eB3Mkyi zDWgc0L*f!egre2Z7l1~-^3)S!9xH~VVKhGQy5h|mRe(mT+!m`c#a7gk@dt^0zd zn%ECxQ`HS$>Se#zY=r&zTg|XNw6L(aI6J%Ui;fqxs*J4lj2T$TXW%>ABg5_`)qw?! zE$Da!Q+HjA*g&Y3%f#MR4aFBt3Wj2RQOT}Y)T5&TKsHi=s|Hpb3ZLvjwW#WrQjs;A z;Ji++%&t;$O(Q4x5fi&58xeMEe7=ZX!dS|MeX+l#FKV{s;$4?SXn-(gNt7ywRWJtO z_0xRGHgVo7c$Vws@h;Xp*CzQLn`}8{Rm1sU?6!_~9HqSHhXVj4N$c4x=YpyO(2W8) zd9d6O#|}T8rdndUA*MTW>T~r{PPgQAJ<^n?+VWIQ=p@FE^$N*+x$9?qN>o6>w+nr{g6R}?OImE-*c+ElHgtvDr{xO8PFpf1?!J0SOH s7D-Tb9bGbQww3Ne@|Dq&nI!@|TuH%hUh$T{~CE!96oTjQ1oHkCdQ%ZHHPf-Q6#oP5Eq{V!1Q7#*Ku^61OfEk4%~~s}guETzy!YnKoA>c! z|CpMZL_mL+PRlpL2>m0JfI>sz+l$SscSs^=|k4VB6wxYJ2mwh>6 zP1s6a0Xh0B%Et_88>QrbMYzqB#N#E*3Oks3CUHQODRvA@K~k7$;|6iCE(zZu#bJlk z(8(RJK1WUTVt6pV9fEo^GQIeJgpqaJXHRNMhV;}glZK3tBN^en5Q~o7QAND#(>piA zMx+^HvEUS;@pC3}9#TaPq;a2SxGAxj;0&RP639l>kPjiNqhJ8&1AY_l`WecBvKL`< zK_mp-GGfihA=Gg+ss)BI*;w21yRNY^)~upqm`+Labc(T~)l62_EK-D_XmFxoXUC+( zv9ZH61GA!Od6`C{=(;tt(Wqy1VsquT>;5P-9=l@|nMF#b-iU4DnzqgA7Upvgw;tSE z&pj%9yS|;<+IaYA=m{Nfc9(G8LP76tKq2MQk+Efgahls~zxB^Y15iq2p ze1hU%s@P+67IZo#*hj*3LMINxyUY_2H9@DJWy{3I+3Mq}!>U=li}flaG+QI|spl4T zob~hDF>%eyxOE;8-gFVJ3n+TO18bo->ila}J65%hy4+QlU#ly}>PkmVchz)jqo<`_ z{(P+6Xlpn2)BEXH3$5?^ljojY`z`Y<)5;BG^zo;?`Q?6crISo|lj(kPxtsi=lf2$d zUhiF8=v}zfU%GryZ>QE?g*r>Q?ozJ5xODJS`|4MJebZUI)m^+bn2pWI0|cyf_w9L< zIJbYby>RVisS{uA##h^s)e}e(07x&wM(2TX`E06G0Q9V<>X{|ul?i3g0?%(HPYlgf z1`zb;;Me{qqL;+gPk@~&H*I26ExbmrfGYk1-V - + - {% 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" }} -

-
-
-
- Page updated: {{ current_time|date:"Y-m-d H:i:s" }} (UTC) -
-{% 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); +}