mirror of
https://github.com/Arlind-dev/sulej.ch.git
synced 2026-02-06 18:55:33 +01:00
feat(init)!: create sulej.ch
This commit is contained in:
7
src/routes/+error.svelte
Normal file
7
src/routes/+error.svelte
Normal file
@@ -0,0 +1,7 @@
|
||||
<script>
|
||||
import { page } from "$app/stores";
|
||||
$: status = $page.status;
|
||||
</script>
|
||||
|
||||
<h1>{status}</h1>
|
||||
<p>{$page.error?.message}</p>
|
||||
1
src/routes/+layout.server.ts
Normal file
1
src/routes/+layout.server.ts
Normal file
@@ -0,0 +1 @@
|
||||
export const prerender = true;
|
||||
14
src/routes/+layout.svelte
Normal file
14
src/routes/+layout.svelte
Normal file
@@ -0,0 +1,14 @@
|
||||
<script>
|
||||
import '../app.css';
|
||||
</script>
|
||||
|
||||
<svelte:head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>sulej.ch</title>
|
||||
</svelte:head>
|
||||
|
||||
<div style="height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: clamp(1rem, 1.5vw, 1.5rem); padding: clamp(0.5rem, 2vw, 1.5rem); font-size: clamp(1rem, 1rem + 1vw, 1.5rem);">
|
||||
<slot />
|
||||
|
||||
</div>
|
||||
19
src/routes/+page.svelte
Normal file
19
src/routes/+page.svelte
Normal file
@@ -0,0 +1,19 @@
|
||||
<script lang="ts">
|
||||
import About from "../lib/About.svelte";
|
||||
import Footer from "../lib/Footer.svelte";
|
||||
import Header from "../lib/Header.svelte";
|
||||
import type { VersionInfo } from "../lib/version";
|
||||
|
||||
// Provide version info to footer from global defines
|
||||
const versionInfo: VersionInfo = {
|
||||
version: __APP_VERSION__,
|
||||
commit: __APP_COMMIT__
|
||||
};
|
||||
</script>
|
||||
|
||||
<Header />
|
||||
<main>
|
||||
<About />
|
||||
</main>
|
||||
|
||||
<Footer {versionInfo} />
|
||||
Reference in New Issue
Block a user