1
This commit is contained in:
parent
98e6a8ccae
commit
876e031ac2
@ -1,403 +1,225 @@
|
|||||||
body {
|
/* Core palette */
|
||||||
background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
|
:root {
|
||||||
background-size: 400% 400%;
|
--space-950: #0b0f14;
|
||||||
animation: gradient 15s ease infinite;
|
--space-900: #10161f;
|
||||||
color: #212529;
|
--space-800: #151c28;
|
||||||
font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
|
--space-700: #1f2633;
|
||||||
font-size: 14px;
|
--space-600: #2a3240;
|
||||||
margin: 0;
|
--space-500: #3a4353;
|
||||||
min-height: 100vh;
|
--space-200: #9aa4b2;
|
||||||
|
--space-100: #cbd5e1;
|
||||||
|
--space-50: #f1f5f9;
|
||||||
|
--radius-sm: 6px;
|
||||||
|
--radius-md: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.main-wrapper {
|
* {
|
||||||
display: flex;
|
box-sizing: border-box;
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
|
||||||
min-height: 100vh;
|
|
||||||
width: 100%;
|
|
||||||
padding: 20px;
|
|
||||||
box-sizing: border-box;
|
|
||||||
position: relative;
|
|
||||||
z-index: 1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@keyframes gradient {
|
body.space-body {
|
||||||
0% {
|
margin: 0;
|
||||||
background-position: 0% 50%;
|
min-height: 100vh;
|
||||||
}
|
font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
|
||||||
50% {
|
background-color: var(--space-950);
|
||||||
background-position: 100% 50%;
|
color: var(--space-50);
|
||||||
}
|
position: relative;
|
||||||
100% {
|
overflow-x: hidden;
|
||||||
background-position: 0% 50%;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.chat-container {
|
body.space-body::before {
|
||||||
width: 100%;
|
content: "";
|
||||||
max-width: 600px;
|
position: fixed;
|
||||||
background: rgba(255, 255, 255, 0.85);
|
inset: 0;
|
||||||
border: 1px solid rgba(255, 255, 255, 0.3);
|
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='white' fill-opacity='0.08'%3E%3Ccircle cx='18' cy='22' r='1'/%3E%3Ccircle cx='62' cy='14' r='1'/%3E%3Ccircle cx='96' cy='38' r='1'/%3E%3Ccircle cx='30' cy='70' r='1'/%3E%3Ccircle cx='78' cy='86' r='1'/%3E%3Ccircle cx='110' cy='102' r='1'/%3E%3C/g%3E%3C/svg%3E");
|
||||||
border-radius: 20px;
|
opacity: 0.7;
|
||||||
display: flex;
|
pointer-events: none;
|
||||||
flex-direction: column;
|
z-index: 0;
|
||||||
height: 85vh;
|
|
||||||
box-shadow: 0 20px 40px rgba(0,0,0,0.2);
|
|
||||||
backdrop-filter: blur(15px);
|
|
||||||
-webkit-backdrop-filter: blur(15px);
|
|
||||||
overflow: hidden;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.chat-header {
|
.site-header {
|
||||||
padding: 1.5rem;
|
background-color: rgba(11, 15, 20, 0.94);
|
||||||
border-bottom: 1px solid rgba(0, 0, 0, 0.05);
|
backdrop-filter: blur(6px);
|
||||||
background: rgba(255, 255, 255, 0.5);
|
position: sticky;
|
||||||
font-weight: 700;
|
top: 0;
|
||||||
font-size: 1.1rem;
|
z-index: 10;
|
||||||
display: flex;
|
|
||||||
justify-content: space-between;
|
|
||||||
align-items: center;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.chat-messages {
|
.navbar-brand {
|
||||||
flex: 1;
|
letter-spacing: 0.04em;
|
||||||
overflow-y: auto;
|
font-size: 0.95rem;
|
||||||
padding: 1.5rem;
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
gap: 1.25rem;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Custom Scrollbar */
|
.nav-link {
|
||||||
::-webkit-scrollbar {
|
font-size: 0.85rem;
|
||||||
width: 6px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
::-webkit-scrollbar-track {
|
.container {
|
||||||
background: transparent;
|
position: relative;
|
||||||
|
z-index: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
::-webkit-scrollbar-thumb {
|
.eyebrow {
|
||||||
background: rgba(255, 255, 255, 0.3);
|
font-size: 0.7rem;
|
||||||
border-radius: 10px;
|
letter-spacing: 0.2em;
|
||||||
}
|
}
|
||||||
|
|
||||||
::-webkit-scrollbar-thumb:hover {
|
.display-6 {
|
||||||
background: rgba(255, 255, 255, 0.5);
|
font-size: 2.2rem;
|
||||||
|
line-height: 1.2;
|
||||||
}
|
}
|
||||||
|
|
||||||
.message {
|
.lead {
|
||||||
max-width: 85%;
|
font-size: 1rem;
|
||||||
padding: 0.85rem 1.1rem;
|
|
||||||
border-radius: 16px;
|
|
||||||
line-height: 1.5;
|
|
||||||
font-size: 0.95rem;
|
|
||||||
box-shadow: 0 4px 15px rgba(0,0,0,0.05);
|
|
||||||
animation: fadeIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@keyframes fadeIn {
|
.panel {
|
||||||
from { opacity: 0; transform: translateY(20px) scale(0.95); }
|
background-color: var(--space-900);
|
||||||
to { opacity: 1; transform: translateY(0) scale(1); }
|
border: 1px solid var(--space-700);
|
||||||
|
border-radius: var(--radius-md);
|
||||||
|
padding: 1.75rem;
|
||||||
|
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
|
||||||
}
|
}
|
||||||
|
|
||||||
.message.visitor {
|
.form-control-dark {
|
||||||
align-self: flex-end;
|
background-color: var(--space-800);
|
||||||
background: linear-gradient(135deg, #212529 0%, #343a40 100%);
|
border: 1px solid var(--space-700);
|
||||||
color: #fff;
|
color: var(--space-50);
|
||||||
border-bottom-right-radius: 4px;
|
border-radius: var(--radius-sm);
|
||||||
|
padding: 0.7rem 0.85rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.message.bot {
|
.form-control-dark::placeholder {
|
||||||
align-self: flex-start;
|
color: var(--space-200);
|
||||||
background: #ffffff;
|
|
||||||
color: #212529;
|
|
||||||
border-bottom-left-radius: 4px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.chat-input-area {
|
.form-control-dark:focus {
|
||||||
padding: 1.25rem;
|
background-color: var(--space-800);
|
||||||
background: rgba(255, 255, 255, 0.5);
|
color: var(--space-50);
|
||||||
border-top: 1px solid rgba(0, 0, 0, 0.05);
|
border-color: var(--space-500);
|
||||||
|
box-shadow: 0 0 0 0.2rem rgba(148, 163, 184, 0.15);
|
||||||
}
|
}
|
||||||
|
|
||||||
.chat-input-area form {
|
.btn {
|
||||||
display: flex;
|
border-radius: var(--radius-sm);
|
||||||
gap: 0.75rem;
|
font-size: 0.85rem;
|
||||||
|
padding: 0.65rem 1.1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.chat-input-area input {
|
.btn-light {
|
||||||
flex: 1;
|
background-color: var(--space-50);
|
||||||
border: 1px solid rgba(0, 0, 0, 0.1);
|
color: var(--space-950);
|
||||||
border-radius: 12px;
|
border: 1px solid var(--space-50);
|
||||||
padding: 0.75rem 1rem;
|
|
||||||
outline: none;
|
|
||||||
background: rgba(255, 255, 255, 0.9);
|
|
||||||
transition: all 0.3s ease;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.chat-input-area input:focus {
|
.btn-light:hover {
|
||||||
border-color: #23a6d5;
|
background-color: var(--space-100);
|
||||||
box-shadow: 0 0 0 3px rgba(35, 166, 213, 0.2);
|
border-color: var(--space-100);
|
||||||
}
|
}
|
||||||
|
|
||||||
.chat-input-area button {
|
.btn-outline-light {
|
||||||
background: #212529;
|
border-color: var(--space-500);
|
||||||
color: #fff;
|
color: var(--space-50);
|
||||||
border: none;
|
|
||||||
padding: 0.75rem 1.5rem;
|
|
||||||
border-radius: 12px;
|
|
||||||
cursor: pointer;
|
|
||||||
font-weight: 600;
|
|
||||||
transition: all 0.3s ease;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.chat-input-area button:hover {
|
.btn-outline-light:hover {
|
||||||
background: #000;
|
background-color: var(--space-700);
|
||||||
transform: translateY(-2px);
|
border-color: var(--space-500);
|
||||||
box-shadow: 0 5px 15px rgba(0,0,0,0.2);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Background Animations */
|
.btn-outline-secondary {
|
||||||
.bg-animations {
|
border-color: var(--space-600);
|
||||||
position: fixed;
|
color: var(--space-200);
|
||||||
top: 0;
|
|
||||||
left: 0;
|
|
||||||
width: 100%;
|
|
||||||
height: 100%;
|
|
||||||
z-index: 0;
|
|
||||||
overflow: hidden;
|
|
||||||
pointer-events: none;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.blob {
|
.btn-outline-secondary:hover {
|
||||||
position: absolute;
|
background-color: var(--space-700);
|
||||||
width: 500px;
|
color: var(--space-50);
|
||||||
height: 500px;
|
|
||||||
background: rgba(255, 255, 255, 0.2);
|
|
||||||
border-radius: 50%;
|
|
||||||
filter: blur(80px);
|
|
||||||
animation: move 20s infinite alternate cubic-bezier(0.45, 0, 0.55, 1);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.blob-1 {
|
.chip {
|
||||||
top: -10%;
|
display: inline-flex;
|
||||||
left: -10%;
|
align-items: center;
|
||||||
background: rgba(238, 119, 82, 0.4);
|
gap: 0.35rem;
|
||||||
|
border: 1px solid var(--space-700);
|
||||||
|
border-radius: 999px;
|
||||||
|
padding: 0.35rem 0.75rem;
|
||||||
|
color: var(--space-100);
|
||||||
|
text-decoration: none;
|
||||||
|
font-size: 0.75rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.blob-2 {
|
.chip:hover {
|
||||||
bottom: -10%;
|
background-color: var(--space-800);
|
||||||
right: -10%;
|
color: var(--space-50);
|
||||||
background: rgba(35, 166, 213, 0.4);
|
|
||||||
animation-delay: -7s;
|
|
||||||
width: 600px;
|
|
||||||
height: 600px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.blob-3 {
|
.orbit {
|
||||||
top: 40%;
|
position: absolute;
|
||||||
left: 30%;
|
border: 1px solid rgba(148, 163, 184, 0.2);
|
||||||
background: rgba(231, 60, 126, 0.3);
|
border-radius: 50%;
|
||||||
animation-delay: -14s;
|
pointer-events: none;
|
||||||
width: 450px;
|
z-index: 0;
|
||||||
height: 450px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@keyframes move {
|
.orbit-lg {
|
||||||
0% { transform: translate(0, 0) rotate(0deg) scale(1); }
|
width: 520px;
|
||||||
33% { transform: translate(150px, 100px) rotate(120deg) scale(1.1); }
|
height: 520px;
|
||||||
66% { transform: translate(-50px, 200px) rotate(240deg) scale(0.9); }
|
top: -180px;
|
||||||
100% { transform: translate(0, 0) rotate(360deg) scale(1); }
|
right: -140px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.header-link {
|
.orbit-md {
|
||||||
font-size: 14px;
|
width: 360px;
|
||||||
color: #fff;
|
height: 360px;
|
||||||
text-decoration: none;
|
bottom: -140px;
|
||||||
background: rgba(0, 0, 0, 0.2);
|
left: -120px;
|
||||||
padding: 0.5rem 1rem;
|
|
||||||
border-radius: 8px;
|
|
||||||
transition: all 0.3s ease;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.header-link:hover {
|
.orbit-sm {
|
||||||
background: rgba(0, 0, 0, 0.4);
|
width: 180px;
|
||||||
text-decoration: none;
|
height: 180px;
|
||||||
|
top: 40%;
|
||||||
|
left: 45%;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Admin Styles */
|
.border-top,
|
||||||
.admin-container {
|
.border-bottom {
|
||||||
max-width: 900px;
|
border-color: var(--space-700) !important;
|
||||||
margin: 3rem auto;
|
|
||||||
padding: 2.5rem;
|
|
||||||
background: rgba(255, 255, 255, 0.85);
|
|
||||||
backdrop-filter: blur(20px);
|
|
||||||
-webkit-backdrop-filter: blur(20px);
|
|
||||||
border-radius: 24px;
|
|
||||||
box-shadow: 0 20px 50px rgba(0,0,0,0.15);
|
|
||||||
border: 1px solid rgba(255, 255, 255, 0.4);
|
|
||||||
position: relative;
|
|
||||||
z-index: 1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.admin-container h1 {
|
.text-muted {
|
||||||
margin-top: 0;
|
color: var(--space-200) !important;
|
||||||
color: #212529;
|
|
||||||
font-weight: 800;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.table {
|
.badge.text-bg-dark {
|
||||||
width: 100%;
|
background-color: var(--space-800) !important;
|
||||||
border-collapse: separate;
|
border: 1px solid var(--space-700);
|
||||||
border-spacing: 0 8px;
|
color: var(--space-100);
|
||||||
margin-top: 1.5rem;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.table th {
|
.toast {
|
||||||
background: transparent;
|
border-radius: var(--radius-sm);
|
||||||
border: none;
|
|
||||||
padding: 1rem;
|
|
||||||
color: #6c757d;
|
|
||||||
font-weight: 600;
|
|
||||||
text-transform: uppercase;
|
|
||||||
font-size: 0.75rem;
|
|
||||||
letter-spacing: 1px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.table td {
|
.toast-header {
|
||||||
background: #fff;
|
font-size: 0.75rem;
|
||||||
padding: 1rem;
|
|
||||||
border: none;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.table tr td:first-child { border-radius: 12px 0 0 12px; }
|
@media (max-width: 991px) {
|
||||||
.table tr td:last-child { border-radius: 0 12px 12px 0; }
|
.navbar .btn {
|
||||||
|
display: none;
|
||||||
.form-group {
|
}
|
||||||
margin-bottom: 1.25rem;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.form-group label {
|
@media (max-width: 767px) {
|
||||||
display: block;
|
.display-6 {
|
||||||
margin-bottom: 0.5rem;
|
font-size: 1.85rem;
|
||||||
font-weight: 600;
|
}
|
||||||
font-size: 0.9rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.form-control {
|
.orbit-lg,
|
||||||
width: 100%;
|
.orbit-md,
|
||||||
padding: 0.75rem 1rem;
|
.orbit-sm {
|
||||||
border: 1px solid rgba(0, 0, 0, 0.1);
|
display: none;
|
||||||
border-radius: 12px;
|
}
|
||||||
background: #fff;
|
|
||||||
transition: all 0.3s ease;
|
|
||||||
box-sizing: border-box;
|
|
||||||
}
|
|
||||||
|
|
||||||
.form-control:focus {
|
|
||||||
outline: none;
|
|
||||||
border-color: #23a6d5;
|
|
||||||
box-shadow: 0 0 0 3px rgba(35, 166, 213, 0.1);
|
|
||||||
}
|
|
||||||
|
|
||||||
.header-container {
|
|
||||||
display: flex;
|
|
||||||
justify-content: space-between;
|
|
||||||
align-items: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
.header-links {
|
|
||||||
display: flex;
|
|
||||||
gap: 1rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.admin-card {
|
|
||||||
background: rgba(255, 255, 255, 0.6);
|
|
||||||
padding: 2rem;
|
|
||||||
border-radius: 20px;
|
|
||||||
border: 1px solid rgba(255, 255, 255, 0.5);
|
|
||||||
margin-bottom: 2.5rem;
|
|
||||||
box-shadow: 0 10px 30px rgba(0,0,0,0.05);
|
|
||||||
}
|
|
||||||
|
|
||||||
.admin-card h3 {
|
|
||||||
margin-top: 0;
|
|
||||||
margin-bottom: 1.5rem;
|
|
||||||
font-weight: 700;
|
|
||||||
}
|
|
||||||
|
|
||||||
.btn-delete {
|
|
||||||
background: #dc3545;
|
|
||||||
color: white;
|
|
||||||
border: none;
|
|
||||||
padding: 0.25rem 0.5rem;
|
|
||||||
border-radius: 4px;
|
|
||||||
cursor: pointer;
|
|
||||||
}
|
|
||||||
|
|
||||||
.btn-add {
|
|
||||||
background: #212529;
|
|
||||||
color: white;
|
|
||||||
border: none;
|
|
||||||
padding: 0.5rem 1rem;
|
|
||||||
border-radius: 4px;
|
|
||||||
cursor: pointer;
|
|
||||||
margin-top: 1rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.btn-save {
|
|
||||||
background: #0088cc;
|
|
||||||
color: white;
|
|
||||||
border: none;
|
|
||||||
padding: 0.8rem 1.5rem;
|
|
||||||
border-radius: 12px;
|
|
||||||
cursor: pointer;
|
|
||||||
font-weight: 600;
|
|
||||||
width: 100%;
|
|
||||||
transition: all 0.3s ease;
|
|
||||||
}
|
|
||||||
|
|
||||||
.webhook-url {
|
|
||||||
font-size: 0.85em;
|
|
||||||
color: #555;
|
|
||||||
margin-top: 0.5rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.history-table-container {
|
|
||||||
overflow-x: auto;
|
|
||||||
background: rgba(255, 255, 255, 0.4);
|
|
||||||
padding: 1rem;
|
|
||||||
border-radius: 12px;
|
|
||||||
border: 1px solid rgba(255, 255, 255, 0.3);
|
|
||||||
}
|
|
||||||
|
|
||||||
.history-table {
|
|
||||||
width: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.history-table-time {
|
|
||||||
width: 15%;
|
|
||||||
white-space: nowrap;
|
|
||||||
font-size: 0.85em;
|
|
||||||
color: #555;
|
|
||||||
}
|
|
||||||
|
|
||||||
.history-table-user {
|
|
||||||
width: 35%;
|
|
||||||
background: rgba(255, 255, 255, 0.3);
|
|
||||||
border-radius: 8px;
|
|
||||||
padding: 8px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.history-table-ai {
|
|
||||||
width: 50%;
|
|
||||||
background: rgba(255, 255, 255, 0.5);
|
|
||||||
border-radius: 8px;
|
|
||||||
padding: 8px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.no-messages {
|
|
||||||
text-align: center;
|
|
||||||
color: #777;
|
|
||||||
}
|
}
|
||||||
@ -1,39 +1,26 @@
|
|||||||
document.addEventListener('DOMContentLoaded', () => {
|
document.addEventListener('DOMContentLoaded', () => {
|
||||||
const chatForm = document.getElementById('chat-form');
|
const form = document.getElementById('search-form');
|
||||||
const chatInput = document.getElementById('chat-input');
|
const input = document.getElementById('search-input');
|
||||||
const chatMessages = document.getElementById('chat-messages');
|
const toastEl = document.getElementById('searchToast');
|
||||||
|
const toastBody = document.getElementById('searchToastBody');
|
||||||
|
|
||||||
const appendMessage = (text, sender) => {
|
if (!form || !input || !toastEl || !toastBody || !window.bootstrap) {
|
||||||
const msgDiv = document.createElement('div');
|
return;
|
||||||
msgDiv.classList.add('message', sender);
|
}
|
||||||
msgDiv.textContent = text;
|
|
||||||
chatMessages.appendChild(msgDiv);
|
|
||||||
chatMessages.scrollTop = chatMessages.scrollHeight;
|
|
||||||
};
|
|
||||||
|
|
||||||
chatForm.addEventListener('submit', async (e) => {
|
const toast = new window.bootstrap.Toast(toastEl, { delay: 4000 });
|
||||||
e.preventDefault();
|
|
||||||
const message = chatInput.value.trim();
|
|
||||||
if (!message) return;
|
|
||||||
|
|
||||||
appendMessage(message, 'visitor');
|
form.addEventListener('submit', (event) => {
|
||||||
chatInput.value = '';
|
event.preventDefault();
|
||||||
|
const query = input.value.trim();
|
||||||
|
|
||||||
try {
|
if (!query) {
|
||||||
const response = await fetch('api/chat.php', {
|
toastBody.textContent = 'Enter a keyword to start searching.';
|
||||||
method: 'POST',
|
toast.show();
|
||||||
headers: { 'Content-Type': 'application/json' },
|
return;
|
||||||
body: JSON.stringify({ message })
|
}
|
||||||
});
|
|
||||||
const data = await response.json();
|
|
||||||
|
|
||||||
// Artificial delay for realism
|
toastBody.textContent = `Search will route to /search?q=${query} once enabled.`;
|
||||||
setTimeout(() => {
|
toast.show();
|
||||||
appendMessage(data.reply, 'bot');
|
});
|
||||||
}, 500);
|
|
||||||
} catch (error) {
|
|
||||||
console.error('Error:', error);
|
|
||||||
appendMessage("Sorry, something went wrong. Please try again.", 'bot');
|
|
||||||
}
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
|
|||||||
191
index.php
191
index.php
@ -12,7 +12,7 @@ $now = date('Y-m-d H:i:s');
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
<title>New Style</title>
|
<title>404 — Lost in Space</title>
|
||||||
<?php
|
<?php
|
||||||
// Read project preview data from environment
|
// Read project preview data from environment
|
||||||
$projectDescription = $_SERVER['PROJECT_DESCRIPTION'] ?? '';
|
$projectDescription = $_SERVER['PROJECT_DESCRIPTION'] ?? '';
|
||||||
@ -32,119 +32,90 @@ $projectImageUrl = $_SERVER['PROJECT_IMAGE_URL'] ?? '';
|
|||||||
<!-- Twitter image -->
|
<!-- Twitter image -->
|
||||||
<meta property="twitter:image" content="<?= htmlspecialchars($projectImageUrl) ?>" />
|
<meta property="twitter:image" content="<?= htmlspecialchars($projectImageUrl) ?>" />
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
<meta name="color-scheme" content="dark" />
|
||||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet">
|
||||||
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap" rel="stylesheet">
|
<link rel="stylesheet" href="assets/css/custom.css?v=<?= time(); ?>">
|
||||||
<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);
|
|
||||||
}
|
|
||||||
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;
|
|
||||||
top: 0;
|
|
||||||
left: 0;
|
|
||||||
width: 100%;
|
|
||||||
height: 100%;
|
|
||||||
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: 2rem;
|
|
||||||
backdrop-filter: blur(20px);
|
|
||||||
-webkit-backdrop-filter: blur(20px);
|
|
||||||
box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
|
|
||||||
}
|
|
||||||
.loader {
|
|
||||||
margin: 1.25rem auto 1.25rem;
|
|
||||||
width: 48px;
|
|
||||||
height: 48px;
|
|
||||||
border: 3px solid rgba(255, 255, 255, 0.25);
|
|
||||||
border-top-color: #fff;
|
|
||||||
border-radius: 50%;
|
|
||||||
animation: spin 1s linear infinite;
|
|
||||||
}
|
|
||||||
@keyframes spin {
|
|
||||||
from { transform: rotate(0deg); }
|
|
||||||
to { transform: rotate(360deg); }
|
|
||||||
}
|
|
||||||
.hint {
|
|
||||||
opacity: 0.9;
|
|
||||||
}
|
|
||||||
.sr-only {
|
|
||||||
position: absolute;
|
|
||||||
width: 1px; height: 1px;
|
|
||||||
padding: 0; margin: -1px;
|
|
||||||
overflow: hidden;
|
|
||||||
clip: rect(0, 0, 0, 0);
|
|
||||||
white-space: nowrap; border: 0;
|
|
||||||
}
|
|
||||||
h1 {
|
|
||||||
font-size: 3rem;
|
|
||||||
font-weight: 700;
|
|
||||||
margin: 0 0 1rem;
|
|
||||||
letter-spacing: -1px;
|
|
||||||
}
|
|
||||||
p {
|
|
||||||
margin: 0.5rem 0;
|
|
||||||
font-size: 1.1rem;
|
|
||||||
}
|
|
||||||
code {
|
|
||||||
background: rgba(0,0,0,0.2);
|
|
||||||
padding: 2px 6px;
|
|
||||||
border-radius: 4px;
|
|
||||||
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
|
|
||||||
}
|
|
||||||
footer {
|
|
||||||
position: absolute;
|
|
||||||
bottom: 1rem;
|
|
||||||
font-size: 0.8rem;
|
|
||||||
opacity: 0.7;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body class="space-body">
|
||||||
<main>
|
<header class="site-header border-bottom">
|
||||||
<div class="card">
|
<nav class="navbar navbar-expand-lg container py-3">
|
||||||
<h1>Analyzing your requirements and generating your website…</h1>
|
<a class="navbar-brand text-white fw-semibold" href="/">Lost in Space</a>
|
||||||
<div class="loader" role="status" aria-live="polite" aria-label="Applying initial changes">
|
<div class="ms-auto d-flex align-items-center gap-3">
|
||||||
<span class="sr-only">Loading…</span>
|
<a class="nav-link text-muted" href="/">Home</a>
|
||||||
|
<a class="nav-link text-muted" href="#search">Search</a>
|
||||||
|
<a class="btn btn-outline-light btn-sm" href="/">Return to Orbit</a>
|
||||||
|
</div>
|
||||||
|
</nav>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<main class="container py-5 position-relative">
|
||||||
|
<div class="orbit orbit-lg"></div>
|
||||||
|
<div class="orbit orbit-md"></div>
|
||||||
|
<div class="orbit orbit-sm"></div>
|
||||||
|
|
||||||
|
<div class="row align-items-center g-4">
|
||||||
|
<div class="col-lg-6">
|
||||||
|
<div class="eyebrow text-uppercase text-muted mb-3">Error 404</div>
|
||||||
|
<h1 class="display-6 text-white mb-3">This route drifted off course.</h1>
|
||||||
|
<p class="lead text-muted mb-4">
|
||||||
|
The page you requested isn’t in this quadrant. Let’s guide you back to something useful.
|
||||||
|
</p>
|
||||||
|
<div class="d-flex flex-wrap gap-2">
|
||||||
|
<a class="btn btn-light" href="/">Go Home</a>
|
||||||
|
<a class="btn btn-outline-light" href="/">Return to Orbit</a>
|
||||||
|
<a class="btn btn-outline-secondary" href="#search">Open Search</a>
|
||||||
|
</div>
|
||||||
|
<p class="small text-muted mt-4">
|
||||||
|
Runtime: PHP <?= htmlspecialchars($phpVersion) ?> · Updated <?= htmlspecialchars($now) ?> UTC
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
<div class="col-lg-6">
|
||||||
|
<section id="search" class="panel">
|
||||||
|
<div class="d-flex align-items-center justify-content-between mb-3">
|
||||||
|
<h2 class="h6 text-white mb-0">Search the site</h2>
|
||||||
|
<span class="badge text-bg-dark border">Optional</span>
|
||||||
|
</div>
|
||||||
|
<p class="text-muted small mb-4">
|
||||||
|
Start with a keyword and we’ll point you to the closest match.
|
||||||
|
</p>
|
||||||
|
<form id="search-form" class="d-flex flex-column gap-3">
|
||||||
|
<input id="search-input" name="q" type="search" class="form-control form-control-dark" placeholder="Try “pricing”, “projects”, or “dashboard”" aria-label="Search the site">
|
||||||
|
<button class="btn btn-outline-light w-100" type="submit">Search</button>
|
||||||
|
</form>
|
||||||
|
<div class="mt-4 small text-muted">
|
||||||
|
Suggested next stops:
|
||||||
|
<div class="d-flex flex-wrap gap-2 mt-2">
|
||||||
|
<a class="chip" href="/">Portfolio</a>
|
||||||
|
<a class="chip" href="/">Product</a>
|
||||||
|
<a class="chip" href="/">Support</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
</div>
|
</div>
|
||||||
<p class="hint"><?= ($_SERVER['HTTP_HOST'] ?? '') === 'appwizzy.com' ? 'AppWizzy' : 'Flatlogic' ?> AI is collecting your requirements and applying the first changes.</p>
|
|
||||||
<p class="hint">This page will update automatically as the plan is implemented.</p>
|
|
||||||
<p>Runtime: PHP <code><?= htmlspecialchars($phpVersion) ?></code> — UTC <code><?= htmlspecialchars($now) ?></code></p>
|
|
||||||
</div>
|
</div>
|
||||||
</main>
|
</main>
|
||||||
<footer>
|
|
||||||
Page updated: <?= htmlspecialchars($now) ?> (UTC)
|
<footer class="container py-4 text-muted small border-top">
|
||||||
|
<div class="d-flex flex-wrap justify-content-between gap-2">
|
||||||
|
<span>Lost in Space · Premium 404 experience</span>
|
||||||
|
<span>Need help? Start from Home or Search.</span>
|
||||||
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
||||||
|
<div class="toast-container position-fixed bottom-0 end-0 p-3">
|
||||||
|
<div id="searchToast" class="toast text-bg-dark border" role="alert" aria-live="assertive" aria-atomic="true">
|
||||||
|
<div class="toast-header text-bg-dark border-0">
|
||||||
|
<strong class="me-auto">Navigation</strong>
|
||||||
|
<small>Just now</small>
|
||||||
|
<button type="button" class="btn-close btn-close-white ms-2 mb-1" data-bs-dismiss="toast" aria-label="Close"></button>
|
||||||
|
</div>
|
||||||
|
<div id="searchToastBody" class="toast-body">
|
||||||
|
Search isn’t wired yet.
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script>
|
||||||
|
<script src="assets/js/main.js?v=<?= time(); ?>"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user