feat: update plachta and error page

This commit is contained in:
Damillora 2024-03-20 03:03:39 +07:00
parent 11276aa373
commit f288454885
3 changed files with 39 additions and 8 deletions

25
package-lock.json generated
View File

@ -8,9 +8,10 @@
"name": "@damillora/shallie", "name": "@damillora/shallie",
"version": "1.0.0", "version": "1.0.0",
"dependencies": { "dependencies": {
"@damillora/plachta": "^4.0.0", "@damillora/plachta": "^4.3.0",
"@tryghost/content-api": "^1.11.16", "@tryghost/content-api": "^1.11.16",
"fitvids": "^2.1.1", "fitvids": "^2.1.1",
"main": "^1000.0.1",
"svelte-material-icons": "^3.0.0", "svelte-material-icons": "^3.0.0",
"svelte-themes": "^0.0.98" "svelte-themes": "^0.0.98"
}, },
@ -66,9 +67,9 @@
} }
}, },
"node_modules/@damillora/plachta": { "node_modules/@damillora/plachta": {
"version": "4.0.3", "version": "4.3.0",
"resolved": "https://registry.npmjs.org/@damillora/plachta/-/plachta-4.0.3.tgz", "resolved": "https://registry.npmjs.org/@damillora/plachta/-/plachta-4.3.0.tgz",
"integrity": "sha512-/mH7xNVgvXxksBCGs+CEFDs2xOpeMKJ8z0PhUwmkUtrWhLBMuIIp1UiSUCRcL1DU7Lxqdel8Hx6Pq1YWWPtJ7Q==", "integrity": "sha512-XW6T2yerFhP8fNzAAYgGO1rZvb+s/YmKAqOKs0Ku4HHaGwwUaSsShCRq+xMi8M1mSOGCRszFjpqHJ79LehNGKg==",
"dependencies": { "dependencies": {
"@sveltejs/package": "^2.2.0", "@sveltejs/package": "^2.2.0",
"svelte": "^4.1.2", "svelte": "^4.1.2",
@ -2686,6 +2687,11 @@
"node": ">=12" "node": ">=12"
} }
}, },
"node_modules/main": {
"version": "1000.0.1",
"resolved": "https://registry.npmjs.org/main/-/main-1000.0.1.tgz",
"integrity": "sha512-zhB0yIsogMo0xGJEusCzS4I13ejvhEJ1MOWi1OR4n77HyhlqgvNNwhOOt5moSdTYd+Vi8B4wPE/MDmhquNHxrA=="
},
"node_modules/mdn-data": { "node_modules/mdn-data": {
"version": "2.0.30", "version": "2.0.30",
"resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.0.30.tgz", "resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.0.30.tgz",
@ -4248,9 +4254,9 @@
} }
}, },
"@damillora/plachta": { "@damillora/plachta": {
"version": "4.0.3", "version": "4.3.0",
"resolved": "https://registry.npmjs.org/@damillora/plachta/-/plachta-4.0.3.tgz", "resolved": "https://registry.npmjs.org/@damillora/plachta/-/plachta-4.3.0.tgz",
"integrity": "sha512-/mH7xNVgvXxksBCGs+CEFDs2xOpeMKJ8z0PhUwmkUtrWhLBMuIIp1UiSUCRcL1DU7Lxqdel8Hx6Pq1YWWPtJ7Q==", "integrity": "sha512-XW6T2yerFhP8fNzAAYgGO1rZvb+s/YmKAqOKs0Ku4HHaGwwUaSsShCRq+xMi8M1mSOGCRszFjpqHJ79LehNGKg==",
"requires": { "requires": {
"@sveltejs/package": "^2.2.0", "@sveltejs/package": "^2.2.0",
"svelte": "^4.1.2", "svelte": "^4.1.2",
@ -6039,6 +6045,11 @@
"@jridgewell/sourcemap-codec": "^1.4.15" "@jridgewell/sourcemap-codec": "^1.4.15"
} }
}, },
"main": {
"version": "1000.0.1",
"resolved": "https://registry.npmjs.org/main/-/main-1000.0.1.tgz",
"integrity": "sha512-zhB0yIsogMo0xGJEusCzS4I13ejvhEJ1MOWi1OR4n77HyhlqgvNNwhOOt5moSdTYd+Vi8B4wPE/MDmhquNHxrA=="
},
"mdn-data": { "mdn-data": {
"version": "2.0.30", "version": "2.0.30",
"resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.0.30.tgz", "resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.0.30.tgz",

View File

@ -44,9 +44,10 @@
}, },
"type": "module", "type": "module",
"dependencies": { "dependencies": {
"@damillora/plachta": "^4.0.0", "@damillora/plachta": "^4.3.0",
"@tryghost/content-api": "^1.11.16", "@tryghost/content-api": "^1.11.16",
"fitvids": "^2.1.1", "fitvids": "^2.1.1",
"main": "^1000.0.1",
"svelte-material-icons": "^3.0.0", "svelte-material-icons": "^3.0.0",
"svelte-themes": "^0.0.98" "svelte-themes": "^0.0.98"
} }

19
src/routes/+error.svelte Normal file
View File

@ -0,0 +1,19 @@
<script>
import { page } from '$app/stores';
import { Container, Hero, Post } from '@damillora/plachta';
</script>
<svelte:head>
<title>{$page.status} - Damillora's Virtual Memoir</title>
</svelte:head>
<Hero background="/images/default-feature.jpg" />
<Container>
<Post>
<h1>{$page.status}</h1>
<p>{$page.error.message}</p>
</Post>
</Container>
<style>
</style>