staging #27
@@ -19,6 +19,7 @@
|
||||
import SiSignal from '~icons/simple-icons/signal';
|
||||
import SiWhatsapp from '~icons/simple-icons/whatsapp';
|
||||
import { resolve } from '$app/paths';
|
||||
import { dev } from '$app/environment';
|
||||
|
||||
let { children } = $props();
|
||||
|
||||
@@ -48,9 +49,29 @@
|
||||
];
|
||||
</script>
|
||||
|
||||
<svelte:head>
|
||||
{#if !dev}
|
||||
<script
|
||||
defer
|
||||
src="https://cloud.umami.is/script.js"
|
||||
data-website-id="47f2b385-188a-4776-a287-4889008ebac5"
|
||||
></script>
|
||||
{/if}
|
||||
</svelte:head>
|
||||
|
||||
<div class="flex flex-col min-h-screen">
|
||||
<header class="flex justify-between items-center gap-4 py-4 px-4">
|
||||
<a href={resolve('/')} class="text-2xl font-bold">Stan Runge</a>
|
||||
<a href={resolve('/')} class="text-2xl font-bold underline">Stan Runge</a>
|
||||
<div class="flex gap-8">
|
||||
<div class="text-center py-2 font-bold text-xl ">
|
||||
<a href={resolve('/blog')}>Blog</a>
|
||||
</div>
|
||||
|
||||
<div class="text-center py-2 font-bold text-xl ">
|
||||
<a href={resolve('/projects')}>Projects</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<nav class="flex flex-wrap justify-center gap-4" aria-label="Social links">
|
||||
{#each copies as c (c.label)}
|
||||
<CopyButton {...c} />
|
||||
|
||||
@@ -61,17 +61,7 @@
|
||||
|
||||
{#if createNewArticlePopup}
|
||||
<div class="fixed inset-0 flex items-center justify-center bg-black/40">
|
||||
<form
|
||||
method="POST"
|
||||
use:enhance={() => {
|
||||
return async ({ result }) => {
|
||||
if (result.type !== 'redirect') {
|
||||
createNewArticlePopup = false;
|
||||
}
|
||||
};
|
||||
}}
|
||||
class="w-80 rounded bg-white p-6 shadow-xl"
|
||||
>
|
||||
<form method="POST" use:enhance class="w-80 rounded bg-white p-6 shadow-xl">
|
||||
<h2 class="mb-4 text-lg font-bold">Create New Article</h2>
|
||||
<input
|
||||
name="title"
|
||||
|
||||
Reference in New Issue
Block a user