Compare commits

...

2 Commits

Author SHA1 Message Date
Flatlogic Bot
3f441a2dc6 TEST 2026-02-17 20:46:59 +00:00
Flatlogic Bot
fc0fe835c8 Autosave: 20260217-203644 2026-02-17 20:36:44 +00:00
6 changed files with 559 additions and 137 deletions

420
assets/css/custom.css Normal file
View File

@ -0,0 +1,420 @@
:root {
--bg-page: #f3e5b1;
--parchment: #f1e0ad;
--parchment-light: #f7e9be;
--dark-red: #7c0f0f;
--gold: #e2c06a;
--green: #2f5a2c;
--border-color: #3e2a1b;
--text-dark: #2a1c12;
--sidebar-width: 230px;
}
body {
margin: 0;
padding: 0;
font-family: "Times New Roman", Times, serif;
background-color: var(--bg-page);
background-image: linear-gradient(180deg, #f6e9bf 0%, #f0e1a9 100%);
color: var(--text-dark);
height: 100vh;
overflow: hidden;
}
.elot-wrapper {
display: grid;
grid-template-columns: var(--sidebar-width) 1fr;
grid-template-rows: 28px 1fr;
height: 100vh;
width: 100vw;
box-sizing: border-box;
}
/* TOP TABS */
.elot-header {
grid-column: 1 / -1;
display: flex;
align-items: flex-end;
padding-left: var(--sidebar-width);
gap: 2px;
background: repeating-linear-gradient(
90deg,
#3a291b 0px,
#3a291b 8px,
#2b1e13 8px,
#2b1e13 16px
);
border-bottom: 2px solid #1b130c;
z-index: 10;
}
.elot-tab {
background: #e9d8a6;
background-image: linear-gradient(to bottom, #f5e7b9, #dcc68c);
border: 1px solid #3e2a1b;
border-bottom: none;
padding: 2px 10px;
font-size: 13px;
font-weight: bold;
font-style: italic;
font-family: "Palatino Linotype", "Book Antiqua", Palatino, "Times New Roman", serif;
color: #2c1b12;
text-decoration: none;
border-radius: 6px 6px 0 0;
box-shadow: inset 1px 1px 0 rgba(255,255,255,0.5);
height: 20px;
display: flex;
align-items: center;
position: relative;
top: 2px;
}
.elot-tab.active {
background: #f5e7b9;
background-image: none;
height: 24px;
padding-bottom: 4px;
margin-top: -4px;
z-index: 12;
border-bottom: 2px solid #f5e7b9;
}
/* SIDEBAR */
.elot-sidebar {
grid-row: 1 / -1;
background: var(--parchment);
background-image: linear-gradient(180deg, #f1e0ae 0%, #ead79f 100%);
border-right: 2px solid #2b1c12;
display: flex;
flex-direction: column;
overflow-y: auto;
box-shadow: 2px 0 4px rgba(0,0,0,0.35);
z-index: 20;
}
.sidebar-top-black {
background: #000;
height: 8px;
}
.sidebar-date {
background: var(--dark-red);
color: var(--gold);
text-align: center;
font-size: 11px;
padding: 4px 6px;
font-weight: bold;
border-bottom: 2px solid #000;
text-transform: uppercase;
letter-spacing: 0.2px;
}
.location-frame {
background: #000;
padding: 5px;
border-bottom: 2px solid #000;
}
.location-img {
width: 100%;
height: 70px;
display: block;
border: 1px solid var(--gold);
background-image: url("../pasted-20260217-204151-b387c572.png");
background-size: 2048px auto;
background-position: 0 -62px;
background-repeat: no-repeat;
}
.location-title {
background: var(--dark-red);
color: var(--gold);
text-align: center;
font-size: 12px;
font-weight: bold;
padding: 2px 4px;
text-transform: uppercase;
border-top: 1px solid #000;
}
.nav-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 2px;
padding: 5px;
background: #000;
}
.nav-btn {
background: #f7e9be;
border: 1px solid #000;
font-size: 10px;
font-weight: bold;
padding: 2px 0;
text-align: center;
cursor: pointer;
text-transform: uppercase;
box-shadow: inset 1px 1px 0 rgba(255,255,255,0.6);
}
.nav-btn:active {
box-shadow: inset 1px 1px 2px rgba(0,0,0,0.6);
}
.sidebar-desc {
font-size: 10px;
padding: 6px 6px 8px;
line-height: 1.2;
color: #4b2e20;
font-weight: bold;
border-bottom: 1px solid #b79a5a;
}
.guardia-header {
background: var(--green);
color: #f1dfb2;
text-align: center;
font-size: 12px;
font-weight: bold;
padding: 4px;
margin-top: 4px;
border-top: 1px solid #1d3a1a;
border-bottom: 1px solid #1d3a1a;
}
.guardia-date {
font-size: 10px;
color: #5b3c2b;
padding: 4px 6px 2px;
font-weight: bold;
}
.adventure-frame {
padding: 0 5px 6px;
}
.adventure-img {
width: 100%;
height: 86px;
display: block;
border: 1px solid #333;
background-image: url("../pasted-20260217-204151-b387c572.png");
background-size: 2048px auto;
background-position: -4px -255px;
background-repeat: no-repeat;
}
.adventure-caption {
text-align: center;
font-size: 10px;
color: #6a0f0f;
font-weight: bold;
padding-top: 2px;
}
.clock-area {
display: flex;
justify-content: center;
align-items: center;
padding: 4px 5px;
gap: 10px;
}
.clock-text {
background: #f8f3de;
border: 1px solid #000;
padding: 2px 12px;
font-weight: bold;
font-size: 14px;
color: #a10d0d;
}
.presenti-box {
padding: 6px 6px 8px;
font-size: 11px;
border-top: 1px solid #b79a5a;
}
.presenti-count {
font-weight: bold;
margin-bottom: 5px;
color: #3c261b;
}
.presenti-entry {
display: flex;
align-items: center;
gap: 5px;
margin-bottom: 2px;
}
.presenti-icon {
width: 10px;
height: 10px;
border-radius: 2px;
border: 1px solid #1f1f1f;
display: inline-block;
flex: 0 0 auto;
}
.presenti-icon.is-blue { background: #1b3e8b; }
.presenti-icon.is-red { background: #b11818; }
.presenti-icon.is-dark { background: #1d1d1d; }
.presenti-icon.is-steel { background: #485c6c; }
.presenti-icon.is-gold { background: #b28a27; }
.presenti-icon.is-violet { background: #5b2c7a; }
.presenti-icon.is-green { background: #2e5a2c; }
.presenti-name {
color: #000;
text-decoration: none;
font-weight: bold;
}
.sidebar-actions {
padding: 6px 8px 10px;
display: flex;
flex-direction: column;
gap: 5px;
}
.action-btn-green {
background: linear-gradient(180deg, #8a9b3f, #6e7c2f);
border: 2px solid #f2e6bf;
color: #fff;
font-size: 10px;
font-weight: bold;
padding: 5px;
border-radius: 10px;
cursor: pointer;
box-shadow: 0 1px 0 rgba(0,0,0,0.4);
}
.bazar-btn {
background: linear-gradient(180deg, #c51a1a, #870f0f);
color: #fff;
border: 2px solid #000;
border-radius: 20px;
padding: 7px 8px;
font-weight: bold;
font-size: 12px;
cursor: pointer;
text-align: center;
margin-top: 6px;
box-shadow: 0 2px 0 rgba(0,0,0,0.5);
}
.sidebar-banner {
background: #f0e0ac;
color: #a01111;
text-align: center;
font-size: 11px;
padding: 6px;
margin-top: auto;
font-weight: bold;
border-top: 2px solid #000;
letter-spacing: 1px;
}
/* MAIN AREA */
.elot-main {
background: #f6e7b5;
display: flex;
flex-direction: column;
align-items: center;
overflow-y: auto;
padding-top: 18px;
}
.map-wrapper {
position: relative;
}
.map-frame {
border: 2px solid #1a120b;
background: #cba86b;
padding: 6px;
box-shadow: 0 0 10px rgba(0,0,0,0.6);
}
.map-canvas {
width: 1180px;
height: 520px;
background-image: url("../pasted-20260217-204151-b387c572.png");
background-size: 2048px auto;
background-position: -245px -70px;
background-repeat: no-repeat;
border: 2px solid #3a2416;
}
.map-img {
display: block;
max-width: 1000px;
width: 100%;
}
.map-footer {
display: flex;
gap: 2px;
margin-top: 6px;
margin-bottom: 30px;
}
.map-link-btn {
background: #8d1414;
color: #fff;
text-decoration: none;
font-size: 11px;
padding: 2px 10px;
font-weight: bold;
border: 1px solid #000;
}
/* Custom Scrollbar for parchment feel */
::-webkit-scrollbar {
width: 8px;
}
::-webkit-scrollbar-track {
background: var(--bg-page);
}
::-webkit-scrollbar-thumb {
background: #5d4037;
}
@media (max-width: 1200px) {
.map-canvas {
width: 960px;
height: 430px;
background-position: -200px -60px;
}
}
@media (max-width: 980px) {
body {
overflow: auto;
}
.elot-wrapper {
grid-template-columns: 1fr;
grid-template-rows: auto auto;
height: auto;
}
.elot-header {
padding-left: 0;
justify-content: center;
flex-wrap: wrap;
}
.elot-sidebar {
grid-row: auto;
border-right: none;
border-bottom: 2px solid #2b1c12;
}
.map-canvas {
width: 90vw;
height: 50vw;
background-position: -120px -40px;
}
}

9
assets/js/main.js Normal file
View File

@ -0,0 +1,9 @@
document.addEventListener('DOMContentLoaded', () => {
const shouldShowToast = document.body.dataset.showToast === '1';
const toastEl = document.getElementById('saveToast');
if (shouldShowToast && toastEl && window.bootstrap) {
const toast = new window.bootstrap.Toast(toastEl, { delay: 3500 });
toast.show();
}
});

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 MiB

267
index.php
View File

@ -1,150 +1,143 @@
<?php
declare(strict_types=1);
@ini_set('display_errors', '1');
@ini_set('display_errors', '0');
@error_reporting(E_ALL);
@date_default_timezone_set('UTC');
@date_default_timezone_set('Europe/Rome');
require_once __DIR__ . '/db/config.php';
$projectName = 'EXTREMELOT';
$view = $_GET['view'] ?? 'mappa';
// Simple healthz check
if (isset($_GET['healthz'])) {
header('Content-Type: text/plain');
echo "OK\nPHP: " . PHP_VERSION . "\nTime: " . date('Y-m-d H:i:s');
exit;
}
// Presenti mock data based on screenshot
$presenti = [
['color' => 'blue', 'name' => 'Caudex', 'action' => 'lascia Lot'],
['color' => 'red', 'name' => 'Rebo', 'action' => 'giunge a Lot'],
['color' => 'dark', 'name' => 'Xoriane', 'action' => 'giunge a Lot'],
['color' => 'steel', 'name' => 'Helle', 'action' => 'giunge a Lot'],
['color' => 'gold', 'name' => 'Samara', 'action' => 'lascia Lot'],
['color' => 'gold', 'name' => 'Eaoden', 'action' => 'lascia Lot'],
['color' => 'violet', 'name' => 'Zizka', 'action' => 'giunge a Lot'],
['color' => 'green', 'name' => 'Esma', 'action' => 'giunge a Lot'],
['color' => 'blue', 'name' => 'Caudex', 'action' => 'giunge a Lot'],
];
$phpVersion = PHP_VERSION;
$now = date('Y-m-d H:i:s');
?>
<!doctype html>
<html lang="en">
<html lang="it">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>New Style</title>
<?php
// Read project preview data from environment
$projectDescription = $_SERVER['PROJECT_DESCRIPTION'] ?? '';
$projectImageUrl = $_SERVER['PROJECT_IMAGE_URL'] ?? '';
?>
<?php if ($projectDescription): ?>
<!-- Meta description -->
<meta name="description" content='<?= htmlspecialchars($projectDescription) ?>' />
<!-- Open Graph meta tags -->
<meta property="og:description" content="<?= htmlspecialchars($projectDescription) ?>" />
<!-- Twitter meta tags -->
<meta property="twitter:description" content="<?= htmlspecialchars($projectDescription) ?>" />
<?php endif; ?>
<?php if ($projectImageUrl): ?>
<!-- Open Graph image -->
<meta property="og:image" content="<?= htmlspecialchars($projectImageUrl) ?>" />
<!-- Twitter image -->
<meta property="twitter:image" content="<?= htmlspecialchars($projectImageUrl) ?>" />
<?php endif; ?>
<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);
}
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>
<title><?= $projectName ?></title>
<link rel="stylesheet" href="assets/css/custom.css?v=<?= time() ?>">
</head>
<body>
<main>
<div class="card">
<h1>Analyzing your requirements and generating your website…</h1>
<div class="loader" role="status" aria-live="polite" aria-label="Applying initial changes">
<span class="sr-only">Loading…</span>
<div class="elot-wrapper">
<!-- SIDEBAR -->
<aside class="elot-sidebar">
<div class="sidebar-top-black"></div>
<div class="sidebar-date">
Anno XXVIII, Mese 11°, Giorno 9°<br>
<span style="font-size: 13px;">GRAN DUCATO DI PETRUS</span>
</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>
</main>
<footer>
Page updated: <?= htmlspecialchars($now) ?> (UTC)
</footer>
<div class="location-frame">
<div class="location-img" role="img" aria-label="Gran Ducato di Petrus"></div>
<div class="location-title">Via dei Mulini</div>
</div>
<div class="nav-grid">
<div class="nav-btn">Ovest</div>
<div class="nav-btn">Sud</div>
<div class="nav-btn">Est</div>
<div class="nav-btn" style="background: #f0e2b6; color: #000;">ENTRA</div>
</div>
<div class="sidebar-desc">
A OVEST la strada continua, ad EST c'e' il Pozzo del disonore. A SUD il Piazzale di LOT, entrando si accede alla Bacheca.
</div>
<div class="guardia-header">Dal Corpo di Guardia</div>
<div class="guardia-date">Anno XXVIII, Mese 11°, Giorno 9°</div>
<div class="adventure-frame">
<div class="adventure-img" role="img" aria-label="Adventurelot"></div>
<div class="adventure-caption">Il Dungeon di Vetrovania</div>
</div>
<div class="clock-area">
<div class="clock-text"><?= date('H:i') ?></div>
<div style="font-size: 20px;">🌘</div>
</div>
<div class="presenti-box">
<div class="presenti-count">
Dal Corpo di Guardia:<br>
390 persone in ExtremeLands
</div>
<?php foreach ($presenti as $p): ?>
<div class="presenti-entry">
<span class="presenti-icon is-<?= $p['color'] ?>"></span>
<a href="#" class="presenti-name"><?= $p['name'] ?></a>
<span style="color: #444; font-size: 10px;"><?= $p['action'] ?></span>
</div>
<?php endforeach; ?>
</div>
<div class="sidebar-actions">
<button class="action-btn-green">Dove vuoi andare a giocare OGGI?</button>
<button class="action-btn-green">Con chi vuoi giocare OGGI?</button>
<button class="bazar-btn">BAZAR</button>
</div>
<div class="sidebar-banner">CARNEVALOT!</div>
</aside>
<!-- TOP TABS -->
<header class="elot-header">
<a href="?view=posta" class="elot-tab <?= $view === 'posta' ? 'active' : '' ?>">Posta</a>
<a href="?view=mappa" class="elot-tab <?= $view === 'mappa' ? 'active' : '' ?>">LOT</a>
<a href="?view=scheda" class="elot-tab <?= $view === 'scheda' ? 'active' : '' ?>">Scheda</a>
<a href="?view=presenti" class="elot-tab">Presenti</a>
<a href="?view=simboli" class="elot-tab">Simboli</a>
<a href="?view=regole" class="elot-tab">Regole</a>
<a href="?view=azioni" class="elot-tab">Azioni</a>
</header>
<!-- MAIN CONTENT -->
<main class="elot-main">
<?php if ($view === 'mappa'): ?>
<div class="map-wrapper">
<div class="map-frame">
<div class="map-canvas" role="img" aria-label="Mappa del Regno"></div>
</div>
</div>
<div class="map-footer">
<a href="#" class="map-link-btn">Mappa del Regno</a>
<a href="#" class="map-link-btn">Mappa delle Isole</a>
<a href="#" class="map-link-btn">Mappa Testuale</a>
<a href="#" class="map-link-btn" style="background: #5d4037;">Esci da Lot</a>
</div>
<?php elseif ($view === 'scheda'): ?>
<div style="background: var(--parchment); border: 2px solid #5d4037; padding: 40px; max-width: 600px; width: 90%; margin-top: 20px; box-shadow: 0 0 10px rgba(0,0,0,0.3);">
<h1 style="color: var(--dark-red); text-align: center; font-variant: small-caps;">Scheda del Personaggio</h1>
<p style="text-align: center; font-style: italic;">Sotto sviluppo...</p>
</div>
<?php else: ?>
<div style="background: var(--parchment); border: 2px solid #5d4037; padding: 40px; margin-top: 20px;">
<h1 style="color: var(--dark-red);"><?= strtoupper($view) ?></h1>
<p>Area in fase di allestimento.</p>
</div>
<?php endif; ?>
</main>
</div>
</body>
</html>