initial commit

This commit is contained in:
Thies Mueller
2026-04-25 23:00:38 +02:00
commit bbcfaf32f7
21 changed files with 2695 additions and 0 deletions
+310
View File
@@ -0,0 +1,310 @@
/*! tailwindcss v4.2.4 | MIT License | https://tailwindcss.com */
@layer theme, base, components, utilities;
@layer theme {
:root, :host {
--font-sans: ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
'Noto Color Emoji';
--font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New',
monospace;
--color-red-600: oklch(57.7% 0.245 27.325);
--color-red-700: oklch(50.5% 0.213 27.518);
--color-blue-600: oklch(54.6% 0.245 262.881);
--color-gray-400: oklch(70.7% 0.022 261.325);
--color-gray-600: oklch(44.6% 0.03 256.802);
--color-gray-700: oklch(37.3% 0.034 259.733);
--color-gray-800: oklch(27.8% 0.033 256.848);
--color-gray-900: oklch(21% 0.034 264.665);
--color-white: #fff;
--spacing: 0.25rem;
--container-md: 28rem;
--container-5xl: 64rem;
--text-sm: 0.875rem;
--text-sm--line-height: calc(1.25 / 0.875);
--text-xl: 1.25rem;
--text-xl--line-height: calc(1.75 / 1.25);
--radius-xl: 0.75rem;
--default-transition-duration: 150ms;
--default-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
--default-font-family: var(--font-sans);
--default-mono-font-family: var(--font-mono);
}
}
@layer base {
*, ::after, ::before, ::backdrop, ::file-selector-button {
box-sizing: border-box;
margin: 0;
padding: 0;
border: 0 solid;
}
html, :host {
line-height: 1.5;
-webkit-text-size-adjust: 100%;
tab-size: 4;
font-family: var(--default-font-family, ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji');
font-feature-settings: var(--default-font-feature-settings, normal);
font-variation-settings: var(--default-font-variation-settings, normal);
-webkit-tap-highlight-color: transparent;
}
hr {
height: 0;
color: inherit;
border-top-width: 1px;
}
abbr:where([title]) {
-webkit-text-decoration: underline dotted;
text-decoration: underline dotted;
}
h1, h2, h3, h4, h5, h6 {
font-size: inherit;
font-weight: inherit;
}
a {
color: inherit;
-webkit-text-decoration: inherit;
text-decoration: inherit;
}
b, strong {
font-weight: bolder;
}
code, kbd, samp, pre {
font-family: var(--default-mono-font-family, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace);
font-feature-settings: var(--default-mono-font-feature-settings, normal);
font-variation-settings: var(--default-mono-font-variation-settings, normal);
font-size: 1em;
}
small {
font-size: 80%;
}
sub, sup {
font-size: 75%;
line-height: 0;
position: relative;
vertical-align: baseline;
}
sub {
bottom: -0.25em;
}
sup {
top: -0.5em;
}
table {
text-indent: 0;
border-color: inherit;
border-collapse: collapse;
}
:-moz-focusring {
outline: auto;
}
progress {
vertical-align: baseline;
}
summary {
display: list-item;
}
ol, ul, menu {
list-style: none;
}
img, svg, video, canvas, audio, iframe, embed, object {
display: block;
vertical-align: middle;
}
img, video {
max-width: 100%;
height: auto;
}
button, input, select, optgroup, textarea, ::file-selector-button {
font: inherit;
font-feature-settings: inherit;
font-variation-settings: inherit;
letter-spacing: inherit;
color: inherit;
border-radius: 0;
background-color: transparent;
opacity: 1;
}
:where(select:is([multiple], [size])) optgroup {
font-weight: bolder;
}
:where(select:is([multiple], [size])) optgroup option {
padding-inline-start: 20px;
}
::file-selector-button {
margin-inline-end: 4px;
}
::placeholder {
opacity: 1;
}
@supports (not (-webkit-appearance: -apple-pay-button)) or (contain-intrinsic-size: 1px) {
::placeholder {
color: currentcolor;
@supports (color: color-mix(in lab, red, red)) {
color: color-mix(in oklab, currentcolor 50%, transparent);
}
}
}
textarea {
resize: vertical;
}
::-webkit-search-decoration {
-webkit-appearance: none;
}
::-webkit-date-and-time-value {
min-height: 1lh;
text-align: inherit;
}
::-webkit-datetime-edit {
display: inline-flex;
}
::-webkit-datetime-edit-fields-wrapper {
padding: 0;
}
::-webkit-datetime-edit, ::-webkit-datetime-edit-year-field, ::-webkit-datetime-edit-month-field, ::-webkit-datetime-edit-day-field, ::-webkit-datetime-edit-hour-field, ::-webkit-datetime-edit-minute-field, ::-webkit-datetime-edit-second-field, ::-webkit-datetime-edit-millisecond-field, ::-webkit-datetime-edit-meridiem-field {
padding-block: 0;
}
::-webkit-calendar-picker-indicator {
line-height: 1;
}
:-moz-ui-invalid {
box-shadow: none;
}
button, input:where([type='button'], [type='reset'], [type='submit']), ::file-selector-button {
appearance: button;
}
::-webkit-inner-spin-button, ::-webkit-outer-spin-button {
height: auto;
}
[hidden]:where(:not([hidden='until-found'])) {
display: none !important;
}
}
@layer utilities {
.mx-auto {
margin-inline: auto;
}
.mt-10 {
margin-top: calc(var(--spacing) * 10);
}
.mb-4 {
margin-bottom: calc(var(--spacing) * 4);
}
.flex {
display: flex;
}
.hidden {
display: none;
}
.min-h-screen {
min-height: 100vh;
}
.w-full {
width: 100%;
}
.max-w-5xl {
max-width: var(--container-5xl);
}
.max-w-md {
max-width: var(--container-md);
}
.flex-grow {
flex-grow: 1;
}
.flex-col {
flex-direction: column;
}
.flex-wrap {
flex-wrap: wrap;
}
.items-center {
align-items: center;
}
.justify-between {
justify-content: space-between;
}
.justify-center {
justify-content: center;
}
.gap-2 {
gap: calc(var(--spacing) * 2);
}
.gap-4 {
gap: calc(var(--spacing) * 4);
}
.rounded-xl {
border-radius: var(--radius-xl);
}
.bg-blue-600 {
background-color: var(--color-blue-600);
}
.bg-gray-600 {
background-color: var(--color-gray-600);
}
.bg-gray-700 {
background-color: var(--color-gray-700);
}
.bg-gray-800 {
background-color: var(--color-gray-800);
}
.bg-gray-900 {
background-color: var(--color-gray-900);
}
.bg-red-600 {
background-color: var(--color-red-600);
}
.bg-red-700 {
background-color: var(--color-red-700);
}
.p-2 {
padding: calc(var(--spacing) * 2);
}
.p-6 {
padding: calc(var(--spacing) * 6);
}
.px-4 {
padding-inline: calc(var(--spacing) * 4);
}
.py-2 {
padding-block: calc(var(--spacing) * 2);
}
.py-6 {
padding-block: calc(var(--spacing) * 6);
}
.text-center {
text-align: center;
}
.text-sm {
font-size: var(--text-sm);
line-height: var(--tw-leading, var(--text-sm--line-height));
}
.text-xl {
font-size: var(--text-xl);
line-height: var(--tw-leading, var(--text-xl--line-height));
}
.text-gray-400 {
color: var(--color-gray-400);
}
.text-white {
color: var(--color-white);
}
.transition {
transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to, opacity, box-shadow, transform, translate, scale, rotate, filter, -webkit-backdrop-filter, backdrop-filter, display, content-visibility, overlay, pointer-events;
transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
transition-duration: var(--tw-duration, var(--default-transition-duration));
}
.hover\:text-white {
&:hover {
@media (hover: hover) {
color: var(--color-white);
}
}
}
.md\:flex-row {
@media (width >= 48rem) {
flex-direction: row;
}
}
.md\:text-left {
@media (width >= 48rem) {
text-align: left;
}
}
}
+117
View File
@@ -0,0 +1,117 @@
<?php
$id = '';
$error = '';
$step = 'input';
function sanitizeId($input) {
$input = trim($input);
if (str_ends_with($input, '.jpg')) {
$input = substr($input, 0, -4);
}
return $input;
}
if ($_SERVER['REQUEST_METHOD'] === 'POST') {
if (isset($_POST['confirm_delete_final'])) {
$id = sanitizeId($_POST['id']);
$file = __DIR__ . "/../images/$id.jpg";
if (file_exists($file)) {
rename($file, __DIR__ . "/../images/deleted_$id.jpg");
$step = 'deleted';
} else {
$error = 'Bild nicht gefunden';
$step = 'input';
}
} elseif (isset($_POST['confirm_delete'])) {
$id = sanitizeId($_POST['id']);
$step = 'confirm2';
} else {
$id = sanitizeId($_POST['id']);
if (!preg_match('/^[a-zA-Z0-9]{32}$/', $id)) {
$error = 'Ungültige ID';
} else {
$file = __DIR__ . "/../images/$id.jpg";
if (file_exists($file)) {
$step = 'confirm1';
} else {
$error = 'Bild nicht gefunden oder bereits gelöscht';
}
}
}
}
?>
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Bild löschen</title>
<link href="assets/tailwind.css" rel="stylesheet">
</head>
<body class="bg-gray-900 text-white min-h-screen flex flex-col justify-between">
<div class="flex items-center justify-center flex-grow">
<div class="bg-gray-800 p-6 rounded-xl w-full max-w-md">
<?php if ($step === 'input'): ?>
<h1 class="text-xl mb-4">Bild löschen</h1>
<p class="text-sm mb-4">Die ID ist der hintere Teil des QR-Code Links.</p>
<p class="text-sm mb-4">Wenn du sie nicht hast, schreibe an support@thiesmueller.de</p>
<?php if ($error): ?>
<div class="bg-red-600 p-2 mb-4"><?php echo $error; ?></div>
<?php endif; ?>
<form method="POST">
<input name="id" placeholder="Bild-ID" required class="w-full p-2 bg-gray-700 mb-4">
<button class="bg-blue-600 px-4 py-2 w-full">Weiter</button>
</form>
<?php elseif ($step === 'confirm1'): ?>
<h1 class="text-xl mb-4">Dieses Bild?</h1>
<img src="/images/<?php echo $id; ?>.jpg" class="mb-4">
<form method="POST" class="flex gap-2">
<input type="hidden" name="id" value="<?php echo $id; ?>">
<button name="confirm_delete" class="bg-red-600 px-4 py-2 w-full">Ja löschen</button>
<a href="" class="bg-gray-600 px-4 py-2 w-full text-center">Nein, anderes Bild</a>
</form>
<?php elseif ($step === 'confirm2'): ?>
<h1 class="text-xl mb-4">Sicher? Diese Aktion kann nicht rückgängig gemacht werden!</h1>
<form method="POST" class="flex gap-2">
<input type="hidden" name="id" value="<?php echo $id; ?>">
<button name="confirm_delete_final" class="bg-red-700 px-4 py-2 w-full">Ja, Sicher</button>
<a href="" class="bg-gray-600 px-4 py-2 w-full text-center">Abbrechen</a>
</form>
<?php elseif ($step === 'deleted'): ?>
<h1 class="text-xl">Erfolgreich gelöscht</h1>
<?php endif; ?>
</div>
</div>
<footer class="bg-gray-800 text-gray-400 py-6 mt-10">
<div class="max-w-5xl mx-auto px-4 flex flex-col md:flex-row justify-between items-center gap-4">
<div class="text-sm text-center md:text-left">
© <?php echo date("Y"); ?> Thies Mueller Service Solutions
</div>
<div class="flex flex-wrap justify-center gap-4 text-sm">
<a href="/about.html" class="hover:text-white transition">Über die Fotobox</a>
<a href="/contact.html" class="hover:text-white transition">Kontakt / Anfragen</a>
<a href="/delete/" class="hover:text-white transition">Ich möchte mein Bild löschen lassen</a>
<a href="https://legal.tservic.es" target="_blank" class="hover:text-white transition">Impressum / Datenschutz</a>
<a href="https://thiesmueller.de" target="_blank" class="hover:text-white transition">Thies Mueller Service Solutions</a>
<a href="https://regattatech.de" target="_blank" class="hover:text-white transition">RegattaTech.DE</a>
</div>
</div>
</footer>
</body>
</html>