Autosave: 20260217-203644
This commit is contained in:
parent
c00dcda24c
commit
fc0fe835c8
413
assets/css/custom.css
Normal file
413
assets/css/custom.css
Normal file
@ -0,0 +1,413 @@
|
||||
:root {
|
||||
--parchment: #f4e4bc;
|
||||
--parchment-dark: #d2b48c;
|
||||
--gold: #c5a059;
|
||||
--dark-red: #5d0000;
|
||||
--text-dark: #000000;
|
||||
--border-classic: 1px solid #c5a059;
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
font-family: 'Times New Roman', Times, serif;
|
||||
background-color: #000;
|
||||
color: var(--text-dark);
|
||||
overflow: hidden;
|
||||
height: 100vh;
|
||||
}
|
||||
|
||||
.elot-wrapper {
|
||||
display: grid;
|
||||
grid-template-columns: 240px 1fr;
|
||||
grid-template-rows: 60px 1fr 25px;
|
||||
height: 100vh;
|
||||
background: #000;
|
||||
gap: 1px;
|
||||
}
|
||||
|
||||
/* Header / Tabs */
|
||||
.elot-header {
|
||||
grid-column: 1 / -1;
|
||||
background: #5d0000;
|
||||
border-bottom: 2px solid var(--gold);
|
||||
display: flex;
|
||||
padding: 0 10px;
|
||||
align-items: center;
|
||||
justify-content: flex-start;
|
||||
gap: 15px;
|
||||
}
|
||||
|
||||
.elot-tab {
|
||||
color: var(--gold);
|
||||
text-decoration: none;
|
||||
font-size: 13px;
|
||||
font-weight: bold;
|
||||
text-transform: uppercase;
|
||||
padding: 5px 8px;
|
||||
border: 1px solid transparent;
|
||||
transition: all 0.2s;
|
||||
}
|
||||
|
||||
.elot-tab:hover, .elot-tab.active {
|
||||
border: var(--border-classic);
|
||||
background: rgba(255,255,255,0.1);
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
/* Sidebar */
|
||||
.elot-sidebar {
|
||||
background: #f4e4bc url('https://www.transparenttextures.com/patterns/parchment.png');
|
||||
border-right: 2px solid var(--gold);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
padding: 8px;
|
||||
overflow-y: auto;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.sidebar-info {
|
||||
text-align: center;
|
||||
margin-bottom: 10px;
|
||||
font-weight: bold;
|
||||
color: var(--dark-red);
|
||||
border: var(--border-classic);
|
||||
padding: 5px;
|
||||
background: rgba(255,255,255,0.3);
|
||||
}
|
||||
|
||||
.location-box {
|
||||
background: #000;
|
||||
border: 2px solid var(--gold);
|
||||
margin-bottom: 10px;
|
||||
text-align: center;
|
||||
padding: 2px;
|
||||
}
|
||||
|
||||
.location-img {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.nav-compass {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
gap: 2px;
|
||||
width: 120px;
|
||||
margin: 0 auto 15px;
|
||||
}
|
||||
|
||||
.compass-btn {
|
||||
background: #5d0000;
|
||||
color: var(--gold);
|
||||
border: 1px solid var(--gold);
|
||||
text-align: center;
|
||||
padding: 5px 0;
|
||||
font-weight: bold;
|
||||
cursor: pointer;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.compass-btn.empty { background: transparent; border: none; cursor: default; }
|
||||
|
||||
.section-header {
|
||||
background: var(--gold);
|
||||
color: #5d0000;
|
||||
text-align: center;
|
||||
font-weight: bold;
|
||||
padding: 2px;
|
||||
margin: 10px 0 5px;
|
||||
border: 1px solid #5d0000;
|
||||
}
|
||||
|
||||
.presenti-list {
|
||||
background: rgba(255,255,255,0.2);
|
||||
padding: 5px;
|
||||
border: 1px solid var(--gold);
|
||||
flex-grow: 1;
|
||||
}
|
||||
|
||||
.presenti-entry {
|
||||
margin-bottom: 2px;
|
||||
border-bottom: 1px solid rgba(197, 160, 89, 0.3);
|
||||
}
|
||||
|
||||
.entry-name {
|
||||
color: #0000ff;
|
||||
text-decoration: underline;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
/* Main Content */
|
||||
.elot-main {
|
||||
background: #f4e4bc url('https://www.transparenttextures.com/patterns/parchment.png');
|
||||
position: relative;
|
||||
overflow: auto;
|
||||
padding: 15px;
|
||||
}
|
||||
|
||||
.content-frame {
|
||||
border: 3px double var(--gold);
|
||||
padding: 20px;
|
||||
background: rgba(255,255,255,0.1);
|
||||
min-height: 90%;
|
||||
}
|
||||
|
||||
.main-title {
|
||||
color: var(--dark-red);
|
||||
text-align: center;
|
||||
font-variant: small-caps;
|
||||
border-bottom: 2px solid var(--dark-red);
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
/* Footer area */
|
||||
.elot-footer {
|
||||
grid-column: 2;
|
||||
background: #5d0000;
|
||||
color: var(--gold);
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
gap: 20px;
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
.footer-link {
|
||||
color: var(--gold);
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.footer-link:hover { text-decoration: underline; }
|
||||
|
||||
/* Scheda Form */
|
||||
.scheda-table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
}
|
||||
|
||||
.scheda-table td {
|
||||
padding: 8px;
|
||||
border: var(--border-classic);
|
||||
}
|
||||
|
||||
.label-td {
|
||||
background: rgba(93, 0, 0, 0.1);
|
||||
width: 30%;
|
||||
font-weight: bold;
|
||||
color: var(--dark-red);
|
||||
}
|
||||
|
||||
input[type="text"], input[type="number"], textarea {
|
||||
width: 100%;
|
||||
border: 1px solid var(--gold);
|
||||
background: #fff;
|
||||
padding: 4px;
|
||||
font-family: serif;
|
||||
}
|
||||
|
||||
.btn-lot {
|
||||
background: #5d0000;
|
||||
color: var(--gold);
|
||||
border: 2px solid var(--gold);
|
||||
padding: 8px 25px;
|
||||
font-weight: bold;
|
||||
cursor: pointer;
|
||||
margin-top: 15px;
|
||||
}
|
||||
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
font-family: 'Georgia', 'Times New Roman', serif;
|
||||
background-color: #1a0d00;
|
||||
color: var(--text-dark);
|
||||
overflow: hidden;
|
||||
height: 100vh;
|
||||
}
|
||||
|
||||
.elot-wrapper {
|
||||
display: grid;
|
||||
grid-template-columns: 260px 1fr;
|
||||
grid-template-rows: 40px 1fr 30px;
|
||||
height: 100vh;
|
||||
background: #000;
|
||||
gap: 2px;
|
||||
}
|
||||
|
||||
/* Header / Tabs */
|
||||
.elot-header {
|
||||
grid-column: 1 / -1;
|
||||
background: #8b4513 linear-gradient(to bottom, #d2b48c, #8b4513);
|
||||
border-bottom: 2px solid var(--gold);
|
||||
display: flex;
|
||||
padding: 0 10px;
|
||||
gap: 2px;
|
||||
align-items: flex-end;
|
||||
}
|
||||
|
||||
.elot-tab {
|
||||
background: #e6ccb3;
|
||||
border: 1px solid var(--gold);
|
||||
border-bottom: none;
|
||||
padding: 5px 15px;
|
||||
font-size: 12px;
|
||||
font-weight: bold;
|
||||
cursor: pointer;
|
||||
border-radius: 5px 5px 0 0;
|
||||
text-transform: uppercase;
|
||||
color: #330000;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.elot-tab:hover {
|
||||
background: #f5f5dc;
|
||||
}
|
||||
|
||||
.elot-tab.active {
|
||||
background: var(--gold);
|
||||
color: #000;
|
||||
border-top: 1px solid #fff;
|
||||
}
|
||||
|
||||
/* Sidebar */
|
||||
.elot-sidebar {
|
||||
background: #f5e6c4;
|
||||
background-image: radial-gradient(circle, #f5e6c4 0%, #e6ccb3 100%);
|
||||
border-right: 2px solid var(--gold);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
padding: 10px;
|
||||
overflow-y: auto;
|
||||
box-shadow: inset -5px 0 10px rgba(0,0,0,0.1);
|
||||
}
|
||||
|
||||
.sidebar-header {
|
||||
background: var(--dark-red);
|
||||
color: var(--gold);
|
||||
padding: 5px;
|
||||
text-align: center;
|
||||
font-weight: bold;
|
||||
border: 1px solid var(--gold);
|
||||
margin-bottom: 10px;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.nav-buttons {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 5px;
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
|
||||
.nav-btn {
|
||||
background: #660000;
|
||||
color: var(--gold);
|
||||
border: 1px solid var(--gold);
|
||||
font-size: 11px;
|
||||
padding: 3px;
|
||||
text-align: center;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.nav-btn:hover {
|
||||
background: #800000;
|
||||
}
|
||||
|
||||
.presenti-list {
|
||||
font-size: 12px;
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
.presenti-entry {
|
||||
margin-bottom: 4px;
|
||||
border-bottom: 1px dotted #8b4513;
|
||||
padding-bottom: 2px;
|
||||
}
|
||||
|
||||
.entry-time {
|
||||
color: #8b4513;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
/* Main Content */
|
||||
.elot-main {
|
||||
background: var(--parchment);
|
||||
position: relative;
|
||||
overflow: auto;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: flex-start;
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
.map-container {
|
||||
border: 8px double var(--gold);
|
||||
background: #fff8dc;
|
||||
width: 90%;
|
||||
max-width: 900px;
|
||||
aspect-ratio: 16/10;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
position: relative;
|
||||
box-shadow: 0 0 20px rgba(0,0,0,0.3);
|
||||
background-image: url('https://www.extremelot.eu/images/mappa_regno.jpg'); /* This might not work, let's use a placeholder */
|
||||
background-size: cover;
|
||||
}
|
||||
|
||||
.map-overlay-text {
|
||||
background: rgba(0,0,0,0.5);
|
||||
color: var(--gold);
|
||||
padding: 10px 20px;
|
||||
font-size: 24px;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 2px;
|
||||
font-weight: bold;
|
||||
border: 2px solid var(--gold);
|
||||
}
|
||||
|
||||
/* Footer area */
|
||||
.elot-footer {
|
||||
grid-column: 2;
|
||||
background: var(--parchment-dark);
|
||||
border-top: 2px solid var(--gold);
|
||||
padding: 5px;
|
||||
text-align: center;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.footer-link {
|
||||
margin: 0 10px;
|
||||
color: var(--dark-red);
|
||||
text-decoration: underline;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
/* Forms (Scheda) */
|
||||
.scheda-form {
|
||||
max-width: 600px;
|
||||
width: 100%;
|
||||
background: rgba(255,255,255,0.5);
|
||||
padding: 20px;
|
||||
border: 2px solid var(--gold);
|
||||
}
|
||||
|
||||
input, select, textarea {
|
||||
background: #fff;
|
||||
border: 1px solid var(--gold);
|
||||
color: var(--text-dark);
|
||||
padding: 5px;
|
||||
}
|
||||
|
||||
.btn-submit {
|
||||
background: var(--dark-red);
|
||||
color: var(--gold);
|
||||
border: 2px solid var(--gold);
|
||||
padding: 5px 20px;
|
||||
font-weight: bold;
|
||||
cursor: pointer;
|
||||
}
|
||||
9
assets/js/main.js
Normal file
9
assets/js/main.js
Normal 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();
|
||||
}
|
||||
});
|
||||
BIN
assets/pasted-20260217-203132-ed9617b4.png
Normal file
BIN
assets/pasted-20260217-203132-ed9617b4.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.3 MiB |
338
index.php
338
index.php
@ -2,149 +2,219 @@
|
||||
declare(strict_types=1);
|
||||
@ini_set('display_errors', '1');
|
||||
@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';
|
||||
|
||||
$errors = [];
|
||||
$success = false;
|
||||
$input = [
|
||||
'name' => '',
|
||||
'role' => 'Giocatore',
|
||||
'class' => '',
|
||||
'level' => 1,
|
||||
'concept' => '',
|
||||
];
|
||||
|
||||
if ($_SERVER['REQUEST_METHOD'] === 'POST' && $view === 'scheda') {
|
||||
$input['name'] = trim((string)($_POST['name'] ?? ''));
|
||||
$input['role'] = trim((string)($_POST['role'] ?? 'Giocatore'));
|
||||
$input['class'] = trim((string)($_POST['class'] ?? ''));
|
||||
$input['level'] = (int)($_POST['level'] ?? 1);
|
||||
$input['concept'] = trim((string)($_POST['concept'] ?? ''));
|
||||
|
||||
if (mb_strlen($input['name']) < 2) {
|
||||
$errors[] = 'Inserisci un nome.';
|
||||
}
|
||||
|
||||
if (!$errors) {
|
||||
try {
|
||||
$db = db();
|
||||
$db->exec("CREATE TABLE IF NOT EXISTS characters (
|
||||
id INT UNSIGNED AUTO_INCREMENT PRIMARY KEY,
|
||||
name VARCHAR(120) NOT NULL,
|
||||
role VARCHAR(60) NOT NULL,
|
||||
class VARCHAR(120) NOT NULL,
|
||||
level TINYINT UNSIGNED NOT NULL,
|
||||
concept TEXT NULL,
|
||||
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4");
|
||||
|
||||
$stmt = $db->prepare('INSERT INTO characters (name, role, class, level, concept) VALUES (:name, :role, :class, :level, :concept)');
|
||||
$stmt->execute([
|
||||
':name' => $input['name'],
|
||||
':role' => $input['role'],
|
||||
':class' => $input['class'],
|
||||
':level' => $input['level'],
|
||||
':concept' => $input['concept']
|
||||
]);
|
||||
$success = true;
|
||||
} catch (Throwable $e) {}
|
||||
}
|
||||
}
|
||||
|
||||
// Mock Log entries
|
||||
$mockLog = [
|
||||
['time' => '21:30', 'text' => '<b>find</b> giunge a Lot'],
|
||||
['time' => '21:31', 'text' => '<b>Rhael</b> lascia Lot'],
|
||||
['time' => '21:32', 'text' => '<b>Glykeria</b> lascia Lot'],
|
||||
['time' => '21:33', 'text' => '<b>Ildiko</b> giunge a Lot'],
|
||||
['time' => '21:35', 'text' => '<b>Graviel</b> 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">
|
||||
<title><?= $projectName ?></title>
|
||||
<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;
|
||||
}
|
||||
/* Quick inline fixes to match the image precisely */
|
||||
.gold-text { color: var(--gold); }
|
||||
.dark-red-bg { background: var(--dark-red); color: var(--gold); }
|
||||
.parchment-bg { background: var(--parchment); }
|
||||
</style>
|
||||
</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">
|
||||
<!-- TOP TABS -->
|
||||
<header class="elot-header">
|
||||
<div class="elot-logo" style="width: 230px; color: var(--gold); font-family: serif; font-weight: bold; font-size: 24px; letter-spacing: 2px; text-shadow: 2px 2px #000;">
|
||||
EXTREMELOT
|
||||
</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 style="display: flex; gap: 5px; flex-wrap: wrap;">
|
||||
<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>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<!-- SIDEBAR -->
|
||||
<aside class="elot-sidebar">
|
||||
<div class="sidebar-info">
|
||||
ANNO XXVIII<br>
|
||||
11° MESE, 9° GIORNO
|
||||
</div>
|
||||
|
||||
<div class="location-box">
|
||||
<img src="https://picsum.photos/id/1015/240/120" alt="Mappa" class="location-img">
|
||||
<div style="color: var(--gold); font-size: 10px; padding: 2px;">Gran Ducato di Lot</div>
|
||||
</div>
|
||||
|
||||
<div class="nav-compass">
|
||||
<div class="compass-btn empty"></div>
|
||||
<div class="compass-btn">N</div>
|
||||
<div class="compass-btn empty"></div>
|
||||
<div class="compass-btn">O</div>
|
||||
<div class="compass-btn" style="background: #900;">IN</div>
|
||||
<div class="compass-btn">E</div>
|
||||
<div class="compass-btn empty"></div>
|
||||
<div class="compass-btn">S</div>
|
||||
<div class="compass-btn empty"></div>
|
||||
</div>
|
||||
|
||||
<div class="section-header">PRESENTE</div>
|
||||
<div class="presenti-list">
|
||||
<div style="font-size: 11px; margin-bottom: 5px; color: #5d0000; font-weight: bold;">
|
||||
388 nel Regno
|
||||
</div>
|
||||
<?php foreach ($mockLog as $entry): ?>
|
||||
<div class="presenti-entry">
|
||||
<span class="entry-name"><?= explode(' ', strip_tags($entry['text']))[0] ?></span>
|
||||
</div>
|
||||
<?php endforeach; ?>
|
||||
<div class="presenti-entry"><span class="entry-name">Arthemis</span></div>
|
||||
<div class="presenti-entry"><span class="entry-name">Boromir</span></div>
|
||||
<div class="presenti-entry"><span class="entry-name">Crysania</span></div>
|
||||
</div>
|
||||
|
||||
<div style="margin-top: 10px;">
|
||||
<button class="btn-lot" style="width: 100%; font-size: 11px; padding: 4px; margin-bottom: 2px;">Dove vuoi andare?</button>
|
||||
<button class="btn-lot" style="width: 100%; font-size: 11px; padding: 4px; margin-bottom: 2px; background: #004400;">Chi è online?</button>
|
||||
<button class="btn-lot" style="width: 100%; font-size: 11px; padding: 4px; background: #990000;">BAZAR</button>
|
||||
</div>
|
||||
</aside>
|
||||
|
||||
<!-- MAIN CONTENT -->
|
||||
<main class="elot-main">
|
||||
<div class="content-frame">
|
||||
<?php if ($view === 'mappa'): ?>
|
||||
<h1 class="main-title">Gran Ducato di Lot</h1>
|
||||
<div style="text-align: center;">
|
||||
<img src="https://picsum.photos/id/1018/800/500" alt="Mappa del Regno" style="border: 4px double var(--gold); max-width: 100%; height: auto; box-shadow: 0 0 15px rgba(0,0,0,0.5);">
|
||||
<p style="margin-top: 20px; font-style: italic; color: #5d0000;">
|
||||
Benvenuto nel Regno di Extremelot, viandante.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<!-- Chat Simulation -->
|
||||
<div style="margin-top: 30px; border-top: 2px solid var(--gold); padding-top: 20px;">
|
||||
<div style="height: 200px; overflow-y: auto; background: rgba(255,255,255,0.3); border: var(--border-classic); padding: 10px; font-size: 14px; margin-bottom: 10px;">
|
||||
<p><b>[21:40] find:</b> Ben arrivati a tutti!</p>
|
||||
<p><b>[21:42] Arthemis:</b> Grazie find, la locanda è aperta stasera?</p>
|
||||
<p><b>[21:45] find:</b> Certamente, tra poco iniziamo la mescita.</p>
|
||||
</div>
|
||||
<div style="display: flex; gap: 5px;">
|
||||
<input type="text" placeholder="Scrivi il tuo messaggio..." style="flex-grow: 1;">
|
||||
<button class="compass-btn" style="width: 80px; font-size: 12px;">Invia</button>
|
||||
<button class="compass-btn" style="width: 80px; font-size: 12px; background: #333;">Azione</button>
|
||||
</div>
|
||||
</div>
|
||||
<?php elseif ($view === 'scheda'): ?>
|
||||
<h1 class="main-title">Scheda del Personaggio</h1>
|
||||
<?php if ($success): ?>
|
||||
<div style="background: #fff8dc; color: #5d0000; padding: 10px; border: 2px solid var(--gold); margin-bottom: 20px; text-align: center; font-weight: bold;">
|
||||
LA TUA ESSENZA È STATA IMPRESSA NEI REGISTRI DI LOT.
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<form method="post">
|
||||
<table class="scheda-table">
|
||||
<tr>
|
||||
<td class="label-td">Nome</td>
|
||||
<td><input type="text" name="name" required></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="label-td">Classe</td>
|
||||
<td><input type="text" name="class" required placeholder="Es. Cavaliere, Mago..."></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="label-td">Livello</td>
|
||||
<td><input type="number" name="level" value="1"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="label-td">Concetto</td>
|
||||
<td><textarea name="concept" rows="4"></textarea></td>
|
||||
</tr>
|
||||
</table>
|
||||
<div style="text-align: center;">
|
||||
<button type="submit" class="btn-lot">IMPRIME L'ESSENZA</button>
|
||||
</div>
|
||||
</form>
|
||||
<?php else: ?>
|
||||
<h1 class="main-title"><?= strtoupper($view) ?></h1>
|
||||
<div style="text-align: center; padding: 40px;">
|
||||
<p>Questa pergamena è ancora bianca...</p>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
<!-- FOOTER LINKS -->
|
||||
<footer class="elot-footer">
|
||||
<a href="#" class="footer-link">Mappa del Regno</a>
|
||||
<a href="#" class="footer-link">Mappa delle Isole</a>
|
||||
<a href="#" class="footer-link">Mappa Testuale</a>
|
||||
<a href="#" class="footer-link" style="color: #000;">Esci da Lot</a>
|
||||
</footer>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user