Add base template for website preview route

This commit is contained in:
Thilo Hohlt
2024-08-03 18:07:27 +02:00
parent 0b2a9f2383
commit dfcb129e69
10 changed files with 85 additions and 22 deletions

View File

@@ -0,0 +1,27 @@
<script lang="ts">
import { enhance } from "$app/forms";
import WebsiteEditor from "$lib/components/WebsiteEditor.svelte";
const { data } = $props();
</script>
<WebsiteEditor
id={data.website.id}
title={data.website.title}
previewContent="https://aurora.thilohohlt.com"
fullPreview={true}
>
<section>
<h2>Publish website</h2>
<p>
The preview area on this page allows you to see exactly how your website will look when it is
is published. If you are happy with the results, click the button below and your website will
be published on the Internet.
</p>
<form method="POST" action="?/publishWebsite" use:enhance>
<button type="submit">Publish</button>
</form>
</section>
</WebsiteEditor>