diff --git a/package.json b/package.json index a96e63e..96e1be1 100644 --- a/package.json +++ b/package.json @@ -12,43 +12,44 @@ "format": "prettier --plugin-search-dir . --write ." }, "devDependencies": { - "@iconify/json": "^2.2.174", - "@sveltejs/adapter-auto": "^3.1.1", + "@iconify/json": "^2.2.233", + "@sveltejs/adapter-auto": "^3.2.2", "@sveltejs/adapter-node": "^4.0.1", - "@sveltejs/adapter-static": "^3.0.1", - "@sveltejs/kit": "^2.4.3", - "@typescript-eslint/eslint-plugin": "^6.19.1", - "@typescript-eslint/parser": "^6.19.1", - "@unocss/extractor-svelte": "^0.58.3", - "@unocss/preset-icons": "^0.58.3", - "@unocss/preset-web-fonts": "^0.58.3", - "eslint": "^8.56.0", + "@sveltejs/adapter-static": "^3.0.2", + "@sveltejs/kit": "^2.5.19", + "@typescript-eslint/eslint-plugin": "^6.21.0", + "@typescript-eslint/parser": "^6.21.0", + "@unocss/extractor-svelte": "^0.58.9", + "@unocss/preset-icons": "^0.58.9", + "@unocss/preset-web-fonts": "^0.58.9", + "eslint": "^8.57.0", "eslint-config-prettier": "^9.1.0", - "prettier": "^3.2.4", - "prettier-plugin-svelte": "^3.1.2", - "svelte": "^4.2.9", - "svelte-check": "^3.6.3", - "svelte-time": "^0.8.2", - "tslib": "^2.6.2", - "typescript": "^5.3.3", - "unocss": "^0.58.3", - "vite": "^5.0.12" + "prettier": "^3.3.3", + "prettier-plugin-svelte": "^3.2.6", + "svelte": "^4.2.18", + "svelte-check": "^3.8.5", + "svelte-time": "^0.8.3", + "tslib": "^2.6.3", + "typescript": "^5.5.4", + "unocss": "^0.58.9", + "vite": "^5.3.5" }, "type": "module", "dependencies": { - "@sveltejs/vite-plugin-svelte": "^3.0.1", - "@unocss/reset": "^0.58.3", - "dayjs": "^1.11.10", - "eslint-plugin-svelte": "^2.35.1", - "github-markdown-css": "^5.5.0", - "katex": "^0.16.9", + "@sveltejs/vite-plugin-svelte": "^3.1.1", + "@unocss/reset": "^0.58.9", + "dayjs": "^1.11.12", + "eslint-plugin-svelte": "^2.43.0", + "github-markdown-css": "^5.6.1", + "katex": "^0.16.11", "mathjax": "^3.2.2", - "mdsvex": "^0.11.0", - "ofetch": "^1.3.3", + "mdsvex": "^0.11.2", + "ofetch": "^1.3.4", "rehype-katex": "^7.0.0", "rehype-mathjax": "^6.0.0", "remark-math": "^6.0.0", "remark-rehype": "^11.1.0", - "shiki": "^0.14.7" + "shiki": "^0.14.7", + "unocss-preset-scrollbar-hide": "^1.0.1" } } diff --git a/src/lib/banner.svelte b/src/lib/banner.svelte new file mode 100644 index 0000000..af09a9e --- /dev/null +++ b/src/lib/banner.svelte @@ -0,0 +1,26 @@ + + + +{#if show} +
+ + + +
+ + {message} + + +
+
+{/if} diff --git a/src/lib/blog/components.svelte b/src/lib/blog/components.svelte index 81b4bb0..81014db 100644 --- a/src/lib/blog/components.svelte +++ b/src/lib/blog/components.svelte @@ -1,3 +1,6 @@ + +

diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index 80d49a8..dd77e69 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -4,13 +4,13 @@ import Foote from '$lib/foote.svelte'; import '@unocss/reset/tailwind.css'; import Navi from '$lib/navi.svelte'; + import Banner from '$lib/banner.svelte'; -
+ +
- diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index a86f784..b1971d0 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -4,7 +4,7 @@ import { quintOut } from 'svelte/easing'; -
+
diff --git a/src/routes/about/+page.svelte b/src/routes/about/+page.svelte index 92ff636..fd45b26 100644 --- a/src/routes/about/+page.svelte +++ b/src/routes/about/+page.svelte @@ -8,7 +8,7 @@ import { quintOut } from 'svelte/easing'; - +