UI
This commit is contained in:
parent
a4eae214bb
commit
85fce52d84
BIN
assets/pasted-20251029-133234-2fa6d40e.png
Normal file
BIN
assets/pasted-20251029-133234-2fa6d40e.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 242 KiB |
BIN
assets/pasted-20251029-133415-c8f54cfd.jpg
Normal file
BIN
assets/pasted-20251029-133415-c8f54cfd.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 52 KiB |
BIN
assets/vm-shot-2025-10-29T13-34-03-332Z.jpg
Normal file
BIN
assets/vm-shot-2025-10-29T13-34-03-332Z.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 52 KiB |
434
index.php
434
index.php
@ -1,150 +1,294 @@
|
|||||||
<?php
|
<!DOCTYPE html>
|
||||||
declare(strict_types=1);
|
<html lang="de">
|
||||||
@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">
|
|
||||||
<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.0">
|
||||||
<title>New Style</title>
|
<title>Sentinel - Schadenserkennung</title>
|
||||||
<?php
|
<style>
|
||||||
// Read project preview data from environment
|
/* Google Font: Inter */
|
||||||
$projectDescription = $_SERVER['PROJECT_DESCRIPTION'] ?? '';
|
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
|
||||||
$projectImageUrl = $_SERVER['PROJECT_IMAGE_URL'] ?? '';
|
|
||||||
?>
|
/* Modern German-inspired Palette */
|
||||||
<?php if ($projectDescription): ?>
|
:root {
|
||||||
<!-- Meta description -->
|
--background-main: #f8f9fa; /* Off-white */
|
||||||
<meta name="description" content='<?= htmlspecialchars($projectDescription) ?>' />
|
--background-card: #ffffff;
|
||||||
<!-- Open Graph meta tags -->
|
--text-primary: #212529; /* Near-black for high contrast */
|
||||||
<meta property="og:description" content="<?= htmlspecialchars($projectDescription) ?>" />
|
--text-secondary: #6c757d; /* Muted grey for subtitles */
|
||||||
<!-- Twitter meta tags -->
|
--accent-blue: #007bff; /* A strong, clear blue */
|
||||||
<meta property="twitter:description" content="<?= htmlspecialchars($projectDescription) ?>" />
|
--accent-blue-darker: #0056b3;
|
||||||
<?php endif; ?>
|
--border-color: #dee2e6;
|
||||||
<?php if ($projectImageUrl): ?>
|
--border-dashed: #ced4da;
|
||||||
<!-- Open Graph image -->
|
}
|
||||||
<meta property="og:image" content="<?= htmlspecialchars($projectImageUrl) ?>" />
|
|
||||||
<!-- Twitter image -->
|
body {
|
||||||
<meta property="twitter:image" content="<?= htmlspecialchars($projectImageUrl) ?>" />
|
font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
||||||
<?php endif; ?>
|
margin: 0;
|
||||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
background-color: var(--background-main);
|
||||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
color: var(--text-primary);
|
||||||
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap" rel="stylesheet">
|
-webkit-font-smoothing: antialiased;
|
||||||
<style>
|
-moz-osx-font-smoothing: grayscale;
|
||||||
:root {
|
}
|
||||||
--bg-color-start: #6a11cb;
|
|
||||||
--bg-color-end: #2575fc;
|
.container {
|
||||||
--text-color: #ffffff;
|
max-width: 1200px;
|
||||||
--card-bg-color: rgba(255, 255, 255, 0.01);
|
margin: 0 auto;
|
||||||
--card-border-color: rgba(255, 255, 255, 0.1);
|
padding: 0 2rem;
|
||||||
}
|
}
|
||||||
body {
|
|
||||||
margin: 0;
|
header {
|
||||||
font-family: 'Inter', sans-serif;
|
background-color: var(--background-card);
|
||||||
background: linear-gradient(45deg, var(--bg-color-start), var(--bg-color-end));
|
border-bottom: 1px solid var(--border-color);
|
||||||
color: var(--text-color);
|
padding: 1.5rem 0;
|
||||||
display: flex;
|
margin-bottom: 2rem;
|
||||||
justify-content: center;
|
}
|
||||||
align-items: center;
|
|
||||||
min-height: 100vh;
|
header .container {
|
||||||
text-align: center;
|
display: flex;
|
||||||
overflow: hidden;
|
align-items: center;
|
||||||
position: relative;
|
justify-content: space-between;
|
||||||
}
|
}
|
||||||
body::before {
|
|
||||||
content: '';
|
header h1 {
|
||||||
position: absolute;
|
margin: 0;
|
||||||
top: 0;
|
font-size: 1.75rem;
|
||||||
left: 0;
|
font-weight: 700;
|
||||||
width: 100%;
|
letter-spacing: -0.5px;
|
||||||
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;
|
header h1 span {
|
||||||
z-index: -1;
|
color: var(--accent-blue);
|
||||||
}
|
}
|
||||||
@keyframes bg-pan {
|
|
||||||
0% { background-position: 0% 0%; }
|
main .grid-container {
|
||||||
100% { background-position: 100% 100%; }
|
display: grid;
|
||||||
}
|
grid-template-columns: 1fr;
|
||||||
main {
|
gap: 2rem;
|
||||||
padding: 2rem;
|
}
|
||||||
}
|
|
||||||
.card {
|
@media (min-width: 992px) {
|
||||||
background: var(--card-bg-color);
|
main .grid-container {
|
||||||
border: 1px solid var(--card-border-color);
|
grid-template-columns: 400px 1fr;
|
||||||
border-radius: 16px;
|
}
|
||||||
padding: 2rem;
|
}
|
||||||
backdrop-filter: blur(20px);
|
|
||||||
-webkit-backdrop-filter: blur(20px);
|
.card {
|
||||||
box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
|
background-color: var(--background-card);
|
||||||
}
|
border: 1px solid var(--border-color);
|
||||||
.loader {
|
border-radius: 0.5rem;
|
||||||
margin: 1.25rem auto 1.25rem;
|
padding: 2rem;
|
||||||
width: 48px;
|
box-shadow: 0 4px 6px rgba(0,0,0,0.02);
|
||||||
height: 48px;
|
}
|
||||||
border: 3px solid rgba(255, 255, 255, 0.25);
|
|
||||||
border-top-color: #fff;
|
h2 {
|
||||||
border-radius: 50%;
|
margin-top: 0;
|
||||||
animation: spin 1s linear infinite;
|
margin-bottom: 0.5rem;
|
||||||
}
|
font-size: 1.25rem;
|
||||||
@keyframes spin {
|
font-weight: 600;
|
||||||
from { transform: rotate(0deg); }
|
}
|
||||||
to { transform: rotate(360deg); }
|
|
||||||
}
|
p.subtitle {
|
||||||
.hint {
|
margin-top: 0;
|
||||||
opacity: 0.9;
|
margin-bottom: 1.5rem;
|
||||||
}
|
color: var(--text-secondary);
|
||||||
.sr-only {
|
}
|
||||||
position: absolute;
|
|
||||||
width: 1px; height: 1px;
|
/* File Upload */
|
||||||
padding: 0; margin: -1px;
|
.file-input-wrapper {
|
||||||
overflow: hidden;
|
position: relative;
|
||||||
clip: rect(0, 0, 0, 0);
|
display: block;
|
||||||
white-space: nowrap; border: 0;
|
width: 100%;
|
||||||
}
|
border: 2px dashed var(--border-dashed);
|
||||||
h1 {
|
border-radius: 0.5rem;
|
||||||
font-size: 3rem;
|
padding: 2rem;
|
||||||
font-weight: 700;
|
box-sizing: border-box;
|
||||||
margin: 0 0 1rem;
|
text-align: center;
|
||||||
letter-spacing: -1px;
|
background-color: var(--background-main);
|
||||||
}
|
transition: border-color 0.2s ease-in-out, background-color 0.2s ease-in-out;
|
||||||
p {
|
}
|
||||||
margin: 0.5rem 0;
|
|
||||||
font-size: 1.1rem;
|
.file-input-wrapper:hover {
|
||||||
}
|
border-color: var(--accent-blue);
|
||||||
code {
|
}
|
||||||
background: rgba(0,0,0,0.2);
|
|
||||||
padding: 2px 6px;
|
.file-input {
|
||||||
border-radius: 4px;
|
position: absolute;
|
||||||
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
|
width: 100%;
|
||||||
}
|
height: 100%;
|
||||||
footer {
|
top: 0;
|
||||||
position: absolute;
|
left: 0;
|
||||||
bottom: 1rem;
|
opacity: 0;
|
||||||
font-size: 0.8rem;
|
cursor: pointer;
|
||||||
opacity: 0.7;
|
}
|
||||||
}
|
|
||||||
</style>
|
.file-input-label-icon {
|
||||||
|
color: var(--accent-blue);
|
||||||
|
margin-bottom: 1rem;
|
||||||
|
transition: transform 0.2s ease-in-out;
|
||||||
|
}
|
||||||
|
|
||||||
|
.file-input-wrapper:hover .file-input-label-icon {
|
||||||
|
transform: translateY(-3px);
|
||||||
|
}
|
||||||
|
|
||||||
|
.file-input-label span {
|
||||||
|
font-weight: 500;
|
||||||
|
color: var(--text-primary);
|
||||||
|
}
|
||||||
|
|
||||||
|
.file-input-label span.highlight {
|
||||||
|
color: var(--accent-blue);
|
||||||
|
font-weight: 600;
|
||||||
|
}
|
||||||
|
|
||||||
|
#file-name {
|
||||||
|
margin-top: 1rem;
|
||||||
|
font-size: 0.875rem;
|
||||||
|
color: var(--text-secondary);
|
||||||
|
min-height: 1.2em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.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;
|
||||||
|
}
|
||||||
|
|
||||||
|
.upload-button:hover {
|
||||||
|
background-color: var(--accent-blue-darker);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Results Table */
|
||||||
|
.results-container {
|
||||||
|
overflow-x: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
table {
|
||||||
|
width: 100%;
|
||||||
|
border-collapse: collapse;
|
||||||
|
font-size: 0.95rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
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 {
|
||||||
|
text-align: center;
|
||||||
|
padding: 3rem 0;
|
||||||
|
font-size: 0.875rem;
|
||||||
|
color: var(--text-secondary);
|
||||||
|
}
|
||||||
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<main>
|
<header>
|
||||||
<div class="card">
|
<div class="container">
|
||||||
<h1>Analyzing your requirements and generating your website…</h1>
|
<h1>Sentinel<span>.</span></h1>
|
||||||
<div class="loader" role="status" aria-live="polite" aria-label="Applying initial changes">
|
</div>
|
||||||
<span class="sr-only">Loading…</span>
|
</header>
|
||||||
</div>
|
|
||||||
<p class="hint"><?= ($_SERVER['HTTP_HOST'] ?? '') === 'appwizzy.com' ? 'AppWizzy' : 'Flatlogic' ?> AI is collecting your requirements and applying the first changes.</p>
|
<main class="container">
|
||||||
<p class="hint">This page will update automatically as the plan is implemented.</p>
|
<div class="grid-container">
|
||||||
<p>Runtime: PHP <code><?= htmlspecialchars($phpVersion) ?></code> — UTC <code><?= htmlspecialchars($now) ?></code></p>
|
<div class="upload-card card">
|
||||||
</div>
|
<h2>Fahrzeugbild hochladen</h2>
|
||||||
</main>
|
<p class="subtitle">Foto zur Analyse von Schäden hochladen.</p>
|
||||||
<footer>
|
<form action="" method="post" enctype="multipart/form-data">
|
||||||
Page updated: <?= htmlspecialchars($now) ?> (UTC)
|
<div class="file-input-wrapper">
|
||||||
</footer>
|
<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>
|
||||||
|
</div>
|
||||||
|
</main>
|
||||||
|
|
||||||
|
<footer>
|
||||||
|
<div class="container">
|
||||||
|
<p>© 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>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user