From 93f92efefcec63e3d799f93926fb31582b46de30 Mon Sep 17 00:00:00 2001 From: Anatoly Kopyl Date: Tue, 8 Oct 2024 02:15:02 +0300 Subject: [PATCH] New article --- shikiHighlighter.js | 4 +- src/lib/components/Tooltip.svelte | 45 +++ src/routes/blog/+layout.svelte | 39 +- src/routes/blog/+page.server.ts | 5 + src/routes/blog/shorts/+page.svx | 361 ++++++++++++++++++ src/routes/blog/this-blog/+page.svx | 2 +- static/game/game.data | Bin 0 -> 654049 bytes static/game/game.js | 289 ++++++++++++++ static/game/index.html | 108 ++++++ static/game/love.js | 22 ++ static/game/love.wasm | Bin 0 -> 4720726 bytes static/game/theme/bg.png | Bin 0 -> 7161 bytes static/game/theme/love.css | 50 +++ static/images/blog/shorts/ball-escape.avif | Bin 0 -> 216331 bytes .../blog/shorts/bouncing-ball-short.png | Bin 0 -> 464593 bytes static/images/blog/shorts/garage-band.avif | Bin 0 -> 203170 bytes static/images/blog/shorts/tetris.webm | Bin 0 -> 4970025 bytes 17 files changed, 914 insertions(+), 11 deletions(-) create mode 100644 src/lib/components/Tooltip.svelte create mode 100644 src/routes/blog/shorts/+page.svx create mode 100644 static/game/game.data create mode 100644 static/game/game.js create mode 100644 static/game/index.html create mode 100644 static/game/love.js create mode 100644 static/game/love.wasm create mode 100644 static/game/theme/bg.png create mode 100644 static/game/theme/love.css create mode 100644 static/images/blog/shorts/ball-escape.avif create mode 100644 static/images/blog/shorts/bouncing-ball-short.png create mode 100644 static/images/blog/shorts/garage-band.avif create mode 100644 static/images/blog/shorts/tetris.webm diff --git a/shikiHighlighter.js b/shikiHighlighter.js index f325079..1c9c3b4 100644 --- a/shikiHighlighter.js +++ b/shikiHighlighter.js @@ -17,7 +17,9 @@ export const highlighter = await createHighlighter({ 'mdx', 'bash', 'svelte', - 'yaml' + 'yaml', + 'lua', + 'python' ] }); diff --git a/src/lib/components/Tooltip.svelte b/src/lib/components/Tooltip.svelte new file mode 100644 index 0000000..896f3ca --- /dev/null +++ b/src/lib/components/Tooltip.svelte @@ -0,0 +1,45 @@ + + + + + + +{#if isHovered} +
+ +
+{/if} + + diff --git a/src/routes/blog/+layout.svelte b/src/routes/blog/+layout.svelte index 94b0ffc..627d8a4 100644 --- a/src/routes/blog/+layout.svelte +++ b/src/routes/blog/+layout.svelte @@ -13,28 +13,49 @@ import Navbar from "$lib/components/Navbar.svelte";