This commit is contained in:
Flatlogic Bot 2025-10-29 13:41:34 +00:00
parent a4eae214bb
commit 85fce52d84
4 changed files with 289 additions and 145 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 242 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 52 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 52 KiB

378
index.php
View File

@ -1,150 +1,294 @@
<?php
declare(strict_types=1);
@ini_set('display_errors', '1');
@error_reporting(E_ALL);
@date_default_timezone_set('UTC');
$phpVersion = PHP_VERSION;
$now = date('Y-m-d H:i:s');
?>
<!doctype html>
<html lang="en">
<!DOCTYPE html>
<html lang="de">
<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">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Sentinel - Schadenserkennung</title>
<style>
/* Google Font: Inter */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
/* Modern German-inspired Palette */
: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);
--background-main: #f8f9fa; /* Off-white */
--background-card: #ffffff;
--text-primary: #212529; /* Near-black for high contrast */
--text-secondary: #6c757d; /* Muted grey for subtitles */
--accent-blue: #007bff; /* A strong, clear blue */
--accent-blue-darker: #0056b3;
--border-color: #dee2e6;
--border-dashed: #ced4da;
}
body {
font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
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;
background-color: var(--background-main);
color: var(--text-primary);
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
body::before {
content: '';
.container {
max-width: 1200px;
margin: 0 auto;
padding: 0 2rem;
}
header {
background-color: var(--background-card);
border-bottom: 1px solid var(--border-color);
padding: 1.5rem 0;
margin-bottom: 2rem;
}
header .container {
display: flex;
align-items: center;
justify-content: space-between;
}
header h1 {
margin: 0;
font-size: 1.75rem;
font-weight: 700;
letter-spacing: -0.5px;
}
header h1 span {
color: var(--accent-blue);
}
main .grid-container {
display: grid;
grid-template-columns: 1fr;
gap: 2rem;
}
@media (min-width: 992px) {
main .grid-container {
grid-template-columns: 400px 1fr;
}
}
.card {
background-color: var(--background-card);
border: 1px solid var(--border-color);
border-radius: 0.5rem;
padding: 2rem;
box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}
h2 {
margin-top: 0;
margin-bottom: 0.5rem;
font-size: 1.25rem;
font-weight: 600;
}
p.subtitle {
margin-top: 0;
margin-bottom: 1.5rem;
color: var(--text-secondary);
}
/* File Upload */
.file-input-wrapper {
position: relative;
display: block;
width: 100%;
border: 2px dashed var(--border-dashed);
border-radius: 0.5rem;
padding: 2rem;
box-sizing: border-box;
text-align: center;
background-color: var(--background-main);
transition: border-color 0.2s ease-in-out, background-color 0.2s ease-in-out;
}
.file-input-wrapper:hover {
border-color: var(--accent-blue);
}
.file-input {
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;
top: 0;
left: 0;
opacity: 0;
cursor: pointer;
}
@keyframes bg-pan {
0% { background-position: 0% 0%; }
100% { background-position: 100% 100%; }
.file-input-label-icon {
color: var(--accent-blue);
margin-bottom: 1rem;
transition: transform 0.2s ease-in-out;
}
main {
padding: 2rem;
.file-input-wrapper:hover .file-input-label-icon {
transform: translateY(-3px);
}
.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);
.file-input-label span {
font-weight: 500;
color: var(--text-primary);
}
.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;
.file-input-label span.highlight {
color: var(--accent-blue);
font-weight: 600;
}
@keyframes spin {
from { transform: rotate(0deg); }
to { transform: rotate(360deg); }
#file-name {
margin-top: 1rem;
font-size: 0.875rem;
color: var(--text-secondary);
min-height: 1.2em;
}
.hint {
opacity: 0.9;
.upload-button {
display: block;
width: 100%;
padding: 0.875rem;
margin-top: 1.5rem;
background-color: var(--accent-blue);
color: var(--background-card);
border: none;
border-radius: 0.375rem;
font-size: 1rem;
font-weight: 600;
cursor: pointer;
transition: background-color 0.2s ease-in-out;
text-align: center;
}
.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;
.upload-button:hover {
background-color: var(--accent-blue-darker);
}
h1 {
font-size: 3rem;
font-weight: 700;
margin: 0 0 1rem;
letter-spacing: -1px;
/* Results Table */
.results-container {
overflow-x: auto;
}
p {
margin: 0.5rem 0;
font-size: 1.1rem;
table {
width: 100%;
border-collapse: collapse;
font-size: 0.95rem;
}
code {
background: rgba(0,0,0,0.2);
padding: 2px 6px;
border-radius: 4px;
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
th, td {
padding: 1rem;
text-align: left;
border-bottom: 1px solid var(--border-color);
vertical-align: middle;
}
thead th {
background-color: var(--background-main);
color: var(--text-secondary);
font-weight: 600;
text-transform: uppercase;
font-size: 0.75rem;
letter-spacing: 0.5px;
}
tbody tr:last-child th,
tbody tr:last-child td {
border-bottom: none;
}
tbody tr:hover {
background-color: #f1f3f5;
}
.placeholder {
text-align: center;
color: var(--text-secondary);
padding: 3rem 1rem;
font-style: italic;
}
footer {
position: absolute;
bottom: 1rem;
font-size: 0.8rem;
opacity: 0.7;
text-align: center;
padding: 3rem 0;
font-size: 0.875rem;
color: var(--text-secondary);
}
</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>
<header>
<div class="container">
<h1>Sentinel<span>.</span></h1>
</div>
</header>
<main class="container">
<div class="grid-container">
<div class="upload-card card">
<h2>Fahrzeugbild hochladen</h2>
<p class="subtitle">Foto zur Analyse von Schäden hochladen.</p>
<form action="" method="post" enctype="multipart/form-data">
<div class="file-input-wrapper">
<input type="file" name="vehicleImage" id="vehicleImage" class="file-input" accept="image/*">
<label for="vehicleImage" class="file-input-label">
<div class="file-input-label-icon">
<svg width="48" height="48" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><path d="M21.2 15c.7-1.2 1-2.5.7-3.9-.6-2.4-2.4-4.2-4.8-4.8-1.4-.3-2.7 0-3.9.7L4 4 3 3"/><path d="M19 19l-1.5-1.5"/><path d="M22 22l-2-2"/><path d="M7 12a5 5 0 0 1 5-5"/><path d="M12 17a5 5 0 0 1-5-5"/></svg>
</div>
<span class="file-input-label">
<span class="highlight">Datei auswählen</span> oder hierher ziehen
</span>
</label>
</div>
<div id="file-name"></div>
<button type="submit" class="upload-button">Bild analysieren</button>
</form>
</div>
<div class="results-card card">
<h2>Analyseergebnisse</h2>
<p class="subtitle">Erkannte Schäden und geschätzte Kosten.</p>
<div class="results-container">
<table>
<thead>
<tr>
<th>#</th>
<th>Erkannter Schaden</th>
<th>Geschätzte Kosten</th>
</tr>
</thead>
<tbody>
<tr>
<td colspan="3" class="placeholder">Laden Sie ein Bild hoch, um die Analyse zu sehen.</td>
</tr>
</tbody>
</table>
</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>
</main>
<footer>
Page updated: <?= htmlspecialchars($now) ?> (UTC)
<div class="container">
<p>&copy; 2025 Sentinel. Alle Rechte vorbehalten.</p>
</div>
</footer>
<script>
const fileInput = document.getElementById('vehicleImage');
const fileNameDisplay = document.getElementById('file-name');
const fileLabel = document.querySelector('.file-input-label');
const originalLabel = fileLabel.innerHTML;
fileInput.addEventListener('change', function() {
if (this.files.length > 0) {
fileNameDisplay.textContent = `Ausgewählt: ${this.files[0].name}`;
} else {
fileNameDisplay.textContent = '';
}
});
</script>
</body>
</html>