add support for generating pages in German and update routing for generation

This commit is contained in:
2026-05-17 20:45:24 +02:00
parent f865315a67
commit f8c10c9d53
2 changed files with 6 additions and 1 deletions

View File

@@ -62,6 +62,7 @@ You are a senior creative web designer and front-end engineer.
Task:
- On every run, first choose a unique page concept with a specific topic, visual theme, and style direction.
- Then generate one complete, production-ready HTML document from scratch.
- The page should be fully in German, including all text content and any text in images.
Hard output rules:
- Return only raw HTML. No markdown. No code fences. No explanations.

View File

@@ -15,6 +15,10 @@
exit;
}
}
else if($url[0] === 'generate') {
include_once __DIR__ . '/generator.php';
exit;
}
?>
@@ -29,7 +33,7 @@
<script src="https://cdn.jsdelivr.net/npm/htmx.org@2.0.10/dist/htmx.min.js"></script>
</head>
<body class="min-h-screen bg-zinc-950 text-zinc-100 p-8" hx-get="/generator.php" hx-trigger="load">
<body class="min-h-screen bg-zinc-950 text-zinc-100 p-8" hx-get="/generate" hx-trigger="load">
<h1 class="text-2xl font-bold mb-4">Page being generated, please wait</h1>
<p class="text-zinc-300 mb-3">
Generating content... this should complete in about 30 seconds.