12/20/25 V.1

This commit is contained in:
Flatlogic Bot 2025-12-20 21:25:51 +00:00
parent 933aa09496
commit d87453fb96
8 changed files with 254 additions and 184 deletions

View File

@ -15,6 +15,8 @@
{% endif %} {% endif %}
{% load static %} {% load static %}
<link rel="stylesheet" href="{% static 'css/custom.css' %}?v={{ deployment_timestamp }}"> <link rel="stylesheet" href="{% static 'css/custom.css' %}?v={{ deployment_timestamp }}">
<script src="https://cdn.tailwindcss.com"></script>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap" rel="stylesheet">
{% block head %}{% endblock %} {% block head %}{% endblock %}
</head> </head>

View File

@ -1,145 +1,147 @@
{% extends "base.html" %} {% extends 'base.html' %}
{% load static %}
{% block title %}{{ project_name }}{% endblock %} {% block title %}ComplianceShield — Construction Compliance, Made Simple{% endblock %}
{% block head %}
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap" rel="stylesheet">
<style>
: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);
}
* {
box-sizing: border-box;
}
body {
margin: 0;
font-family: 'Inter', sans-serif;
background: linear-gradient(45deg, var(--bg-color-start), var(--bg-color-end));
color: var(--text-color);
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
text-align: center;
overflow: hidden;
position: relative;
}
body::before {
content: '';
position: absolute;
inset: 0;
background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'><path d='M-10 10L110 10M10 -10L10 110' stroke-width='1' stroke='rgba(255,255,255,0.05)'/></svg>");
animation: bg-pan 20s linear infinite;
z-index: -1;
}
@keyframes bg-pan {
0% {
background-position: 0% 0%;
}
100% {
background-position: 100% 100%;
}
}
main {
padding: 2rem;
}
.card {
background: var(--card-bg-color);
border: 1px solid var(--card-border-color);
border-radius: 16px;
padding: 2.5rem 2rem;
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25);
}
h1 {
font-size: clamp(2.2rem, 3vw + 1.2rem, 3.2rem);
font-weight: 700;
margin: 0 0 1.2rem;
letter-spacing: -0.02em;
}
p {
margin: 0.5rem 0;
font-size: 1.1rem;
opacity: 0.92;
}
.loader {
margin: 1.5rem auto;
width: 56px;
height: 56px;
border: 4px solid rgba(255, 255, 255, 0.25);
border-top-color: #fff;
border-radius: 50%;
animation: spin 1s linear infinite;
}
@keyframes spin {
to {
transform: rotate(360deg);
}
}
.runtime code {
background: rgba(0, 0, 0, 0.25);
padding: 0.15rem 0.45rem;
border-radius: 4px;
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
border: 0;
}
footer {
position: absolute;
bottom: 1rem;
width: 100%;
text-align: center;
font-size: 0.85rem;
opacity: 0.75;
}
</style>
{% endblock %}
{% block content %} {% block content %}
<main> <body class="bg-premium">
<div class="card">
<h1>Analyzing your requirements and generating your app…</h1> <!-- NAV -->
<div class="loader" role="status" aria-live="polite" aria-label="Applying initial changes"> <header class="max-w-7xl mx-auto px-6 py-5">
<span class="sr-only">Loading…</span> <div class="shell px-5 py-4 flex items-center justify-between gap-3">
<a href="#" class="flex items-center gap-3">
<div class="h-10 w-10 rounded-2xl bg-[#0b0b0c] text-white flex items-center justify-center text-sm font-semibold">CS</div>
<div class="font-semibold tracking-tight">ComplianceShield</div>
<span class="hidden sm:inline chip px-3 py-1 text-xs text-gray-700">Pro</span>
</a>
<nav class="hidden lg:flex items-center gap-7 text-sm">
<a class="text-gray-700 hover:text-black" href="#">Home</a>
<a class="text-gray-700 hover:text-black" href="#">Features</a>
<a class="text-gray-700 hover:text-black" href="#">Pricing</a>
<a class="text-gray-700 hover:text-black" href="#">Integrations</a>
<a class="text-gray-700 hover:text-black" href="#">About</a>
</nav>
<div class="flex items-center gap-2">
<a class="hidden sm:inline text-sm text-gray-700 hover:text-black" href="#">Sign In</a>
<a href="#" class="btn bg-[#2563eb] text-white text-sm px-4 py-2">Start Free Trial</a>
<button class="lg:hidden chip px-3 py-2 text-sm" onclick="toggleMenu()" aria-label="Open menu">Menu</button>
</div> </div>
<p class="hint">AppWizzy AI is collecting your requirements and applying the first changes.</p>
<p class="hint">This page will refresh automatically as the plan is implemented.</p>
<p class="runtime">
Runtime: Django <code>{{ django_version }}</code> · Python <code>{{ python_version }}</code>
— UTC <code>{{ current_time|date:"Y-m-d H:i:s" }}</code>
</p>
</div> </div>
<!-- mobile drawer -->
<div id="drawer" class="drawer hidden mt-3 shell p-4">
<div class="grid gap-2 text-sm">
<a class="text-gray-900 font-semibold" href="#" onclick="toggleMenu(true)">Home</a>
<a class="text-gray-800" href="#" onclick="toggleMenu(true)">Features</a>
<a class="text-gray-800" href="#" onclick="toggleMenu(true)">Pricing</a>
<a class="text-gray-800" href="#" onclick="toggleMenu(true)">Integrations</a>
<a class="text-gray-800" href="#" onclick="toggleMenu(true)">About</a>
<div class="h-px border-t border-black/10 my-2"></div>
<a class="text-gray-800" href="#" onclick="toggleMenu(true)">Sign In</a>
<a href="#" onclick="toggleMenu(true)" class="btn bg-[#2563eb] text-white text-sm px-4 py-2 text-center">Start Free Trial</a>
</div>
</div>
</header>
<main class="max-w-7xl mx-auto px-6 pb-16">
<!-- HERO -->
<section class="shell overflow-hidden">
<div class="grid lg:grid-cols-12 gap-10 p-8 lg:p-10 items-center">
<div class="lg:col-span-6">
<div class="inline-flex items-center gap-2 chip px-3 py-1 text-xs">
<span class="h-2 w-2 rounded-full bg-[#2563eb]"></span>
Trusted by contractors & project managers
</div>
<h1 class="mt-6 text-4xl md:text-6xl font-extrabold tracking-tight leading-[1.02]">
Construction compliance,<br/>made simple.
</h1>
<p class="mt-6 text-base md:text-lg text-gray-700">
Track daily logs, manage OSHA documentation, monitor equipment maintenance,
and keep subcontractors compliant — with a portal that looks premium and works in the field.
</p>
<div class="mt-7 flex flex-wrap gap-3">
<a href="#" class="btn bg-[#2563eb] text-white px-5 py-3 text-sm">Get Started</a>
<a href="#" class="btn bg-white border border-black/10 px-5 py-3 text-sm">View Portal Preview</a>
</div>
<div class="mt-7 flex flex-wrap gap-2 text-xs text-gray-600">
<span class="chip px-3 py-1">Daily activity logs</span>
<span class="chip px-3 py-1">Document expiration alerts</span>
<span class="chip px-3 py-1">Safety meetings</span>
<span class="chip px-3 py-1">Audit-ready exports</span>
</div>
<div class="mt-7 panel p-5">
<div class="text-sm font-semibold">“Expensive” look, operational outcomes</div>
<div class="mt-2 text-sm text-gray-700">
Field teams move faster. Managers see risk instantly. Owners stay audit-ready.
</div>
</div>
</div>
<!-- hero preview card -->
<div class="lg:col-span-6">
<div class="panel p-6 md:p-7">
<div class="flex items-center justify-between">
<div class="text-sm font-semibold">Portal Snapshot</div>
<span class="chip px-3 py-1 text-xs text-gray-700">Live-style UI</span>
</div>
<div class="mt-5 grid grid-cols-2 gap-4">
<div class="panel p-5">
<div class="text-xs text-gray-500">Ongoing Projects</div>
<div class="mt-1 text-3xl font-extrabold">08</div>
<div class="mt-2 text-xs text-green-600">+3.0% from last month</div>
</div>
<div class="panel p-5">
<div class="text-xs text-gray-500">Alerts</div>
<div class="mt-1 text-3xl font-extrabold">03</div>
<div class="mt-2 text-xs text-amber-600">2 expiring documents</div>
</div>
</div>
<div class="mt-4 panel p-5">
<div class="text-xs text-gray-500">Alert Overview</div>
<div class="mt-3 space-y-2">
<div class="flex items-start gap-3">
<span class="mt-0.5 h-2.5 w-2.5 rounded-full bg-red-500"></span>
<div>
<div class="text-sm font-semibold">Safety incident report pending</div>
<div class="text-xs text-gray-600">Requires photos + supervisor review</div>
</div>
</div>
<div class="flex items-start gap-3">
<span class="mt-0.5 h-2.5 w-2.5 rounded-full bg-amber-500"></span>
<div>
<div class="text-sm font-semibold">COI expiring in 7 days</div>
<div class="text-xs text-gray-600">Subcontractor: R. Builders LLC</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
</main> </main>
<footer>
Page updated: {{ current_time|date:"Y-m-d H:i:s" }} (UTC) <script>
</footer> function toggleMenu(close) {
const drawer = document.getElementById('drawer');
if (close) {
drawer.classList.add('hidden');
} else {
drawer.classList.toggle('hidden');
}
}
</script>
</body>
{% endblock %} {% endblock %}

View File

@ -1,7 +1,7 @@
from django.urls import path from django.urls import path
from .views import home from .views import index
urlpatterns = [ urlpatterns = [
path("", home, name="home"), path("", index, name="index"),
] ]

View File

@ -1,25 +1,8 @@
import os
import platform
from django import get_version as django_version
from django.shortcuts import render from django.shortcuts import render
from django.utils import timezone
def home(request): def index(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 = { context = {
"project_name": "New Style", "project_name": "ComplianceShield",
"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)

View File

@ -1,4 +1,54 @@
/* Custom styles for the application */ :root{
body { --ink:#0b0b0c;
font-family: system-ui, -apple-system, sans-serif; --paper:#fbfaf7;
} --line: rgba(11,11,12,.08);
--shadow: 0 18px 48px rgba(11,11,12,.10);
--shadow2: 0 10px 26px rgba(11,11,12,.10);
--radius: 22px;
/* premium blue theme (like the dashboard reference) */
--blue:#2563eb;
--blue2:#60a5fa;
--ice:#eaf2ff;
--ice2:#f6fbff;
}
html, body { height: 100%; }
body { font-family: 'Inter', sans-serif; color: var(--ink); }
.bg-premium{
background:
radial-gradient(1400px 560px at 18% 8%, rgba(96,165,250,.30), rgba(255,255,255,0) 60%),
radial-gradient(1200px 520px at 92% 12%, rgba(37,99,235,.22), rgba(255,255,255,0) 55%),
radial-gradient(1100px 620px at 55% 100%, rgba(234,242,255,.95), rgba(255,255,255,0) 60%),
linear-gradient(180deg, #f6fbff 0%, #ffffff 55%, #f7fbff 100%);
}
.shell {
border-radius: 26px;
background: rgba(255,255,255,.78);
border: 1px solid rgba(11,11,12,.08);
box-shadow: var(--shadow);
backdrop-filter: blur(10px);
}
.panel {
border-radius: var(--radius);
background: rgba(255,255,255,.92);
border: 1px solid rgba(11,11,12,.06);
box-shadow: var(--shadow2);
}
.chip {
border-radius: 999px;
background: rgba(255,255,255,.8);
border: 1px solid rgba(11,11,12,.08);
}
.btn {
border-radius: 16px;
transition: transform .16s ease, box-shadow .16s ease, opacity .16s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 18px 48px rgba(11,11,12,.10); }
.drawer.hidden { display:none; }

View File

@ -1,21 +1,54 @@
:root{
--ink:#0b0b0c;
--paper:#fbfaf7;
--line: rgba(11,11,12,.08);
--shadow: 0 18px 48px rgba(11,11,12,.10);
--shadow2: 0 10px 26px rgba(11,11,12,.10);
--radius: 22px;
:root { /* premium blue theme (like the dashboard reference) */
--bg-color-start: #6a11cb; --blue:#2563eb;
--bg-color-end: #2575fc; --blue2:#60a5fa;
--text-color: #ffffff; --ice:#eaf2ff;
--card-bg-color: rgba(255, 255, 255, 0.01); --ice2:#f6fbff;
--card-border-color: rgba(255, 255, 255, 0.1); }
}
body { html, body { height: 100%; }
margin: 0; body { font-family: 'Inter', sans-serif; color: var(--ink); }
font-family: 'Inter', sans-serif;
background: linear-gradient(45deg, var(--bg-color-start), var(--bg-color-end)); .bg-premium{
color: var(--text-color); background:
display: flex; radial-gradient(1400px 560px at 18% 8%, rgba(96,165,250,.30), rgba(255,255,255,0) 60%),
justify-content: center; radial-gradient(1200px 520px at 92% 12%, rgba(37,99,235,.22), rgba(255,255,255,0) 55%),
align-items: center; radial-gradient(1100px 620px at 55% 100%, rgba(234,242,255,.95), rgba(255,255,255,0) 60%),
min-height: 100vh; linear-gradient(180deg, #f6fbff 0%, #ffffff 55%, #f7fbff 100%);
text-align: center; }
overflow: hidden;
position: relative; .shell {
} border-radius: 26px;
background: rgba(255,255,255,.78);
border: 1px solid rgba(11,11,12,.08);
box-shadow: var(--shadow);
backdrop-filter: blur(10px);
}
.panel {
border-radius: var(--radius);
background: rgba(255,255,255,.92);
border: 1px solid rgba(11,11,12,.06);
box-shadow: var(--shadow2);
}
.chip {
border-radius: 999px;
background: rgba(255,255,255,.8);
border: 1px solid rgba(11,11,12,.08);
}
.btn {
border-radius: 16px;
transition: transform .16s ease, box-shadow .16s ease, opacity .16s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 18px 48px rgba(11,11,12,.10); }
.drawer.hidden { display:none; }