commit
Update code
diff --git a/deno.lock b/deno.lock
index 59b628a..651a01f 100644
--- a/deno.lock
+++ b/deno.lock
@@ -1,26 +1,26 @@
{
"version": "5",
"specifiers": {
- "npm:@eslint/js@^10.0.1": "[email protected]",
- "npm:@giscus/svelte@^3.1.0": "[email protected]",
+ "npm:@eslint/js@^10.0.1": "[email protected]",
+ "npm:@giscus/svelte@^3.1.0": "[email protected]",
"npm:@iconify-json/ic@^1.2.4": "1.2.4",
- "npm:@icons-pack/svelte-simple-icons@^7.2.0": "7.2.0_@[email protected][email protected]_@[email protected]_@[email protected][email protected][email protected][email protected]",
- "npm:@sveltejs/adapter-node@6": "6.0.0_@[email protected]_@[email protected]_@[email protected][email protected][email protected][email protected][email protected]",
- "npm:@sveltejs/kit@^3.1.0": "3.1.0_@[email protected][email protected][email protected][email protected]_@[email protected][email protected]",
- "npm:@sveltejs/vite-plugin-svelte@^7.3.1": "[email protected][email protected]_@[email protected][email protected]",
+ "npm:@iconify-json/simple-icons@^1.2.101": "1.2.101",
+ "npm:@sveltejs/adapter-node@^6.0.1": "6.0.1_@[email protected]_@[email protected]_@[email protected][email protected][email protected][email protected][email protected]",
+ "npm:@sveltejs/kit@^3.1.1": "3.1.1_@[email protected][email protected][email protected][email protected]_@[email protected][email protected]",
+ "npm:@sveltejs/vite-plugin-svelte@^7.3.1": "[email protected][email protected]_@[email protected][email protected]",
"npm:@types/node@^24.19.2": "24.19.2",
- "npm:eslint-config-prettier@^10.1.8": "[email protected]",
- "npm:eslint-plugin-svelte@^3.23.1": "[email protected][email protected]",
- "npm:eslint@^10.13.0": "10.13.0",
- "npm:globals@^17.13.0": "17.13.0",
- "npm:prettier-plugin-svelte@^4.1.1": "[email protected][email protected]",
+ "npm:eslint-config-prettier@^10.1.8": "[email protected]",
+ "npm:eslint-plugin-svelte@^3.24.0": "[email protected][email protected]",
+ "npm:eslint@^10.14.0": "10.14.0",
+ "npm:globals@^17.14.0": "17.14.0",
+ "npm:prettier-plugin-svelte@^4.1.1": "[email protected][email protected]",
"npm:prettier@^3.9.10": "3.9.10",
- "npm:svelte-check@^4.7.7": "[email protected][email protected]",
- "npm:svelte@^5.57.2": "5.57.2",
- "npm:typescript-eslint@^8.72.0": "[email protected][email protected]",
+ "npm:svelte-check@^4.7.8": "[email protected][email protected]",
+ "npm:svelte@^5.57.3": "5.57.3",
+ "npm:typescript-eslint@^8.72.1": "[email protected][email protected]",
"npm:typescript@^6.0.3": "6.0.3",
- "npm:unplugin-icons@24": "[email protected]_@[email protected][email protected][email protected]",
- "npm:vite@^8.3.5": "8.3.5_@[email protected][email protected]",
+ "npm:unplugin-icons@24": "[email protected]_@[email protected][email protected][email protected]",
+ "npm:vite@^8.3.6": "8.3.6_@[email protected][email protected]",
"npm:yaml@^2.9.1": "2.9.1"
},
"npm": {
@@ -54,7 +54,7 @@
"keyv"
]
},
- "@eslint-community/[email protected][email protected]": {
+ "@eslint-community/[email protected][email protected]": {
"integrity": "sha512-cuadcxVFE8sDK6iWJbs8Sn0av2Nrh2QSGQhVlBW9AaAHqHwjWsZHT8LJ4hFGPh7ASBV2deFdM7H/DPjulmh8rg==",
"dependencies": [
"eslint",
@@ -84,7 +84,7 @@
"@types/json-schema"
]
},
- "@eslint/[email protected][email protected]": {
+ "@eslint/[email protected][email protected]": {
"integrity": "sha512-zeR9k5pd4gxjZ0abRoIaxdc7I3nDktoXZk2qOv9gCNWx3mVwEn32VRhyLaRsDiJjTs0xq/T8mfPtyuXu7GWBcA==",
"dependencies": [
"eslint"
@@ -103,7 +103,7 @@
"levn"
]
},
- "@giscus/[email protected][email protected]": {
+ "@giscus/[email protected][email protected]": {
"integrity": "sha512-87AhkRvT5mUzGFbbv5RX1+DiC8RsRVZPzyGDNyshNUlezlTjnLB7cXf7ySqEKu6KlRTP41c1XGUufoKhoaQjqg==",
"dependencies": [
"giscus",
@@ -139,6 +139,12 @@
"@iconify/types"
]
},
+ "@iconify-json/[email protected]": {
+ "integrity": "sha512-MXJkMZDancJ/9I+Bgdthi9kXvn3AwWStxoTHwEPwAFQ9kMLBASO1BSstg52fNtjXeizm1Wi91R+QnWxNGkWHPQ==",
+ "dependencies": [
+ "@iconify/types"
+ ]
+ },
"@iconify/[email protected]": {
"integrity": "sha512-+wluvCrRhXrhyOmRDJ3q8mux9JkKy5SJ/v8ol2tu4FVjyYvtEzkc/3pK15ET6RKg4b4w4BmTk1+gsCUhf21Ykg=="
},
@@ -150,13 +156,6 @@
"import-meta-resolve"
]
},
- "@icons-pack/[email protected]_@[email protected][email protected]_@[email protected]_@[email protected][email protected][email protected][email protected]": {
- "integrity": "sha512-zH4YByltlMBipdijJ1ZN4YGmxn2LKLCt+wCDC1rF0+3yor95Df090lZ5wfsN/UN4JsLjr7e6nxp6MOsEfYv/cQ==",
- "dependencies": [
- "@sveltejs/kit",
- "svelte"
- ]
- },
"@jridgewell/[email protected]": {
"integrity": "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==",
"dependencies": [
@@ -204,84 +203,84 @@
"@lit-labs/ssr-dom-shim"
]
},
- "@oxc-project/[email protected]": {
- "integrity": "sha512-SeE8JPwW1xs1tHeNycjUtUBdhorRa8o4jlvjwk49R7/Z291i+4DQa7JJIgOm/TaYQZx+QrPQbVJ/9c8dMIZN8Q=="
+ "@oxc-project/[email protected]": {
+ "integrity": "sha512-1Duyg48TdJNdyhEB8Xn1L36bT9Pv6GUtlKjHxOys8xkaF/rQq3XJE+bAurSK/AgIz5mGFsb77cn9Pb20+WCScw=="
},
"@polka/[email protected]": {
"integrity": "sha512-wwQAWhWSuHaag8c4q/KN/vCoeOJYshAIvMQwD4GpSb3OiZklFfvAgmj0VCBBImRpuF/aFgIRzllXlVX93Jevww=="
},
- "@rolldown/[email protected]": {
- "integrity": "sha512-aLcgK9gIJ3YRvrrtfSBbRa27F5WrpiTaPulnFpsHPxpUHgFlSgnU4854MHwoRGEBhfRJDWCS2WQ7lIjskE9Olw==",
+ "@rolldown/[email protected]": {
+ "integrity": "sha512-ia3DwAs0OsMGS7+IConptSiyk9pEXkOx/AbJ2n/lAGxH3QkWQus1t8d7gnAT38FCU2sQu8lUbeR6AiZFv4JxaA==",
"os": ["android"],
"cpu": ["arm"]
},
- "@rolldown/[email protected]": {
- "integrity": "sha512-xD7DdZCrbThKuxNg7ooQmvp07ys4J/pnSEMTG3/OdOWl6daC67m/Q4fL78sRHMxTH/N4fGUbYhcPM0MF5WFHkg==",
+ "@rolldown/[email protected]": {
+ "integrity": "sha512-kx5wBiMB6E7TEvpl2B9gjLU004BkvEm2Dr941BFjx/SontPwSzNuQUIoVKxHHoSjpFIfHMmcguyLOtyn0hObRg==",
"os": ["android"],
"cpu": ["arm64"]
},
- "@rolldown/[email protected]": {
- "integrity": "sha512-m2WuQ6r0B4OTYxyPpNLtXaMRbRDUbG8YQV2Q3KTdSSK8Th6KHCnC8jVCJt8bvYeSB5WivkkNbc85mKadaSdOxA==",
+ "@rolldown/[email protected]": {
+ "integrity": "sha512-qslZrXnKJU4cUpjoAmtAo/KQM9e2IRMlmpig6Zpwj+8KWxW8v+nkAf9216Bsek9lOC1jvg2yCjygCFo2f83msQ==",
"os": ["darwin"],
"cpu": ["arm64"]
},
- "@rolldown/[email protected]": {
- "integrity": "sha512-5RtnsHM36nodM9WbMy+zip0LGS/G+y5wro5RHrpOlr4ac24+1zSi9kiV2MP1myZeZ/ifEHfulQcWjnAXzc2C2A==",
+ "@rolldown/[email protected]": {
+ "integrity": "sha512-FdF+y48ND13eAyM2mQn+85kvAqNlvRWROy2rhgA463X/0Gv4vGtazZtfaF1mRBLscYvtOlh4QnLjOWiFzX69OQ==",
"os": ["darwin"],
"cpu": ["x64"]
},
- "@rolldown/[email protected]": {
- "integrity": "sha512-g3l09pyFqhu+135JKkbkwiKGQmwU5hUMUPJ4VdBADvuqR8d33L6H578rh8m7rtxbdp+VmX/+nzI7nvhSZlzpUQ==",
+ "@rolldown/[email protected]": {
+ "integrity": "sha512-ddjqFM5e95AgLbUPtKIS7V1KTVlA0RUgCVr5mn+/IEhsdy3pr+Vuj/HZ7nlMN2FyxIwUktOH1LEPIQXO1v9y1Q==",
"os": ["freebsd"],
"cpu": ["x64"]
},
- "@rolldown/[email protected]": {
- "integrity": "sha512-nIe3VugI97nGQtspPxDqA4sXMUpeiocKIP/CqpY/u/vgbT+alX+cVxu1C/oVBPKg4feNTmYovE91v4DgXvXNwQ==",
+ "@rolldown/[email protected]": {
+ "integrity": "sha512-tHdKWbFkFBI687iim3LIyIvyL7j66VvQYkDPss5Stn/qyE2tWkR1YD0dXmXPFKKqT/o5ZEJVsaRsWS2meQwGOA==",
"os": ["linux"],
"cpu": ["arm"]
},
- "@rolldown/[email protected]": {
- "integrity": "sha512-iTBjXx+B5QSvgI89lJfmqh4wTh8NabR1YZIIN3hNx4zSG0EVfVqkOvLulNpG4251pbd6/IAmZ/LefVk1Y4rPhw==",
+ "@rolldown/[email protected]": {
+ "integrity": "sha512-FJiLGAblPBMlBEdbOqw6kW6QcXDWAf/oJu7gYs9ZJZwmg+K+/zjFLxPTIY9izJUzxzc24FHvmseyA0IvJSl17w==",
"os": ["linux"],
"cpu": ["arm64"]
},
- "@rolldown/[email protected]": {
- "integrity": "sha512-uN26XOnVR7rqQupG3V9oAG2EGGatWjcJHOeDOHUFCh4TBWmP2tHTFoVN13aYbwfm0aHqJAEmcwhAu6sooIjfqQ==",
+ "@rolldown/[email protected]": {
+ "integrity": "sha512-hrJpblMsrQ58U9veWpbXzkhV5zStunds6HWLprqq1qauvgBr1E6P+24kLj6lSLI9vjRn/RYpjprhkHQPKGWpNg==",
"os": ["linux"],
"cpu": ["arm64"]
},
- "@rolldown/[email protected]": {
- "integrity": "sha512-9nWkcdd+H+XhaA3fQIwpHnKIrfx/PQ6rO0pivr78Og07tXlUlctBBJoEYLPfhTmCR/QxEVdn6uPjHV5SymPhdw==",
+ "@rolldown/[email protected]": {
+ "integrity": "sha512-qJd/dC6j6CwLG9/s/RP2nb1RZ0GIgj7Ioj7x/SYa3RzjVrlzrmH0fhIOpfvqQDeIsdP0loi+kHaMhJzY1PBIaA==",
"os": ["linux"],
"cpu": ["ppc64"]
},
- "@rolldown/[email protected]": {
- "integrity": "sha512-Ggh0ciFjLwIusLSLz7LZYEaGdxOAUJXI+Qu5JCbhPJJHEt8vP+IjRATTJheiJsdzzTYgUiHUiw3X1Ea3ZpMBdA==",
+ "@rolldown/[email protected]": {
+ "integrity": "sha512-Vx7Xg5uUJuNcujJjI70OICaH0EYj80BtOLZTSN7uOYg8QOLlyKnaG0IW7Fn/J0IpJsaKzmDKMhOQv1JBM9m9vg==",
"os": ["linux"],
"cpu": ["s390x"]
},
- "@rolldown/[email protected]": {
- "integrity": "sha512-FHg60rS6DBePAYZ9X9F67x+JObFdmgn6tupA1C/a3B+CufFmTD4mX+e8M75tCiAO3foR/6xwVBI0KQiI7sn/rw==",
+ "@rolldown/[email protected]": {
+ "integrity": "sha512-TNKhgE3uJTsTzatUSSYt0Kgo+Oa2uSlSjz4r1aEIea7HX6ULBym4fAlYUhG1i6pjNf2njfCUAfKwr6C3E9Xg1w==",
"os": ["linux"],
"cpu": ["x64"]
},
- "@rolldown/[email protected]": {
- "integrity": "sha512-/cvV/7v5VGz/moiz0XKRj2dE8DzsKyhIu1KpOvJGPjRywg3yscON889UGvAe8zfiJLHup7VLjBduoGWi3HusWQ==",
+ "@rolldown/[email protected]": {
+ "integrity": "sha512-7chXdpjXZ8qG0+mIxECN3cT9kvhZ3/oZhMX6Pp876P7CDrIy8nJswva6Mq357JR7eYXfuskwZxMeV1SzoZdHrA==",
"os": ["linux"],
"cpu": ["x64"]
},
- "@rolldown/[email protected]": {
- "integrity": "sha512-MyzC5Hrv/sm+Z7TSGKP/j8001RO2xQm1zOpCNVL4j0cY/VhBZviludA2YFQ7i4lH6ZAXxQm0lcMdBzM+99mE7w==",
+ "@rolldown/[email protected]": {
+ "integrity": "sha512-Kwjt+7uNTJK5/MDkGWGVO2KQPnj8yAV75dMpfwyHZrJSXWHrniOB0aUEWlVYf3H1hOqFLIStLdM5QXq6bnKmOQ==",
"os": ["openharmony"],
"cpu": ["arm64"]
},
- "@rolldown/[email protected]": {
- "integrity": "sha512-+PgYiS+AH5omy6L45ZLxybasauJaj3M8buoT83D+nzPmCayXlxUV9hydhciCKVyIg0B/v0BtXPDE1uGqNwCPpg==",
+ "@rolldown/[email protected]": {
+ "integrity": "sha512-/LH6WfjDRXXJz/p5xl4TmU+jpcnwcxbKEQBW/GZE0JHfN0lGIyTtsUEGaQ/q/GikkGJ2yLKe6pwm7AnEWO8pdw==",
"os": ["win32"],
"cpu": ["arm64"]
},
- "@rolldown/[email protected]": {
- "integrity": "sha512-HFZd2QNQYn1JbIi+Hpd7H+r/lkWxcfIu28nirZ6eCn2LafuvmExMlb/P96Sfx5tf7pPArw39IdhmCF8vmV+NhQ==",
+ "@rolldown/[email protected]": {
+ "integrity": "sha512-1lv1KvX0Z871zfk7vw+dnXMMnHNyDwMzWG8Kv3HxDXMOhzCX4SHc7HK319fInP0i+0p9D8brkfzL7pJOaGl+tw==",
"os": ["win32"],
"cpu": ["x64"]
},
@@ -297,14 +296,14 @@
"acorn"
]
},
- "@sveltejs/[email protected]_@[email protected]_@[email protected]_@[email protected][email protected][email protected][email protected][email protected]": {
- "integrity": "sha512-s7muM4JmJ75OZ8o0G4VRhrEKdi8twuEm3t2o/qQsdlm12hKaX7S/CuUBuw3n983wB/IFBSpzG2ugX0xdGzbKwg==",
+ "@sveltejs/[email protected]_@[email protected]_@[email protected]_@[email protected][email protected][email protected][email protected][email protected]": {
+ "integrity": "sha512-Pt/YcMakEkTjdQXaAvxrjrDnoGX4zU7pAZICnoLfpI+CawLGigq5upjFW9rVK2QY7yfpR1xeRG/kgI+syzPB3w==",
"dependencies": [
"@sveltejs/kit"
]
},
- "@sveltejs/[email protected]_@[email protected][email protected][email protected][email protected]_@[email protected][email protected]": {
- "integrity": "sha512-JTWlq2HQlkqx6vIoxhC0R6sc4WVqbQoRyEmr5YlqKmiYbzY1U3awtSWTmjMLlS056a49AmkQR6rnNANXIE8B0Q==",
+ "@sveltejs/[email protected]_@[email protected][email protected][email protected][email protected]_@[email protected][email protected]": {
+ "integrity": "sha512-BiEMvekYXE9Gu/YhWJ/yJ0WDLH1PX/dmjuAeFp5rrtdmgdzkjt7DvimlSP+/U4tgposl7pkE20luHpcnc6BgRw==",
"dependencies": [
"@rolldown/pluginutils",
"@standard-schema/spec",
@@ -327,7 +326,7 @@
"@sveltejs/[email protected]": {
"integrity": "sha512-VT3qmUb8pRV2QrZjd8iAmtg8lf4W0TIjZbvXtz5MKei/q96teWZgGJyyidJzOjzZzvdq616eSRVeMYIQChUTAQ=="
},
- "@sveltejs/[email protected][email protected][email protected]_@[email protected][email protected]": {
+ "@sveltejs/[email protected][email protected][email protected]_@[email protected][email protected]": {
"integrity": "sha512-ZPsLN8B1e/En+Ak5s4V7srFDT532oS0qieLsQwu63NGKsS+iAjoO2Js1BochlHlglcU+Pt7WAO3C5Ee+4f6gVA==",
"dependencies": [
"deepmerge",
@@ -356,8 +355,8 @@
"@types/[email protected]": {
"integrity": "sha512-ScaPdn1dQczgbl0QFTeTOmVHFULt394XJgOQNoyVhZ6r2vLnMLJfBPd53SB52T/3G36VI1/g2MZaX0cwDuXsfw=="
},
- "@typescript-eslint/[email protected]_@[email protected][email protected][email protected]": {
- "integrity": "sha512-aysKgysPX9XOv/dk95UkvUDe++Q3n3dJPG9CEWT3RUccxfkPJ+Qn6nhKPDhZXU6Ofo9kgwGWwKyQCnZIXTgngg==",
+ "@typescript-eslint/[email protected]_@[email protected][email protected][email protected]": {
+ "integrity": "sha512-5CokTWXpmbylfFabsbvHC0CAw3XLaGnoa+nFJX5FR592h/LoZsENUE6p/rg5xvkKrFEXz6pYmgI29AgXc2N3BQ==",
"dependencies": [
"@eslint-community/regexpp",
"@typescript-eslint/parser",
@@ -372,8 +371,8 @@
"typescript"
]
},
- "@typescript-eslint/[email protected][email protected][email protected]": {
- "integrity": "sha512-0O+x3ynciD6zuXb1CKSu165haQV6ey53DKhHHUnujP7U+XlltJG+/keT0Xhd1HXCze+IHf7Tvt39ovyepX/LNw==",
+ "@typescript-eslint/[email protected][email protected][email protected]": {
+ "integrity": "sha512-ZGwZP4OCfyA0AQTpEAMWz+rtX01DRhQWW5hB0ucKDEIX5U7jdmPSaMx94rQfaPAQzIYz2BimOgKOJtjfpRFQ9g==",
"dependencies": [
"@typescript-eslint/scope-manager",
"@typescript-eslint/types",
@@ -384,8 +383,8 @@
"typescript"
]
},
- "@typescript-eslint/[email protected][email protected]": {
- "integrity": "sha512-bzHngBbmIgzj6TsTjVUCntGx6FFLgE7mPjpO0PzHycOaZHXqS43XnrkFIHRS16LLr/xO6FHSXG3GJFo/F4bSBQ==",
+ "@typescript-eslint/[email protected][email protected]": {
+ "integrity": "sha512-fAuVMkwdO/huI8nyo/WKnNKf6Gag93S56Rh3Ts5mGcavwSdaN8tRg1gCeIGX8PF+nzp1BjGfO4gHhGzW1J6jTg==",
"dependencies": [
"@typescript-eslint/tsconfig-utils",
"@typescript-eslint/types",
@@ -393,21 +392,21 @@
"typescript"
]
},
- "@typescript-eslint/[email protected]": {
- "integrity": "sha512-JewPyJOYcXBSAS7PIgufscHOwZqhTGyBRiQJhhuDln66tMchxvvt7nJ90JKKIoOelmdHA3kAQbm9cEUHc4JSEA==",
+ "@typescript-eslint/[email protected]": {
+ "integrity": "sha512-lC/t6eMCZZQAAKZEYGL6RDVSuFehpdmMT6h+nJIjIa6oylN/PwDgDVtEIbB7O9xFfZYtZAYLoLlDNWKJhtF+uQ==",
"dependencies": [
"@typescript-eslint/types",
"@typescript-eslint/visitor-keys"
]
},
- "@typescript-eslint/[email protected][email protected]": {
- "integrity": "sha512-0vbxCf7xLVPSjcOdm6eQbgViH8EDJ8xnl1laLT9yoqSz2YmcSfSg5Vdl0JUvZf6rcuJ0ZivJIuMD4edTg8obaA==",
+ "@typescript-eslint/[email protected][email protected]": {
+ "integrity": "sha512-e4D5R5vpeAEPBxT2BAzsFQL3sbwyeeeo5+aczgNSRK1V734jE7pTqaGFU+fXapWEQwnZbpFaTn32+Z8DwS6OTg==",
"dependencies": [
"typescript"
]
},
- "@typescript-eslint/[email protected][email protected][email protected]": {
- "integrity": "sha512-gEXxmmbSTSOVTC37IYYvremOM31v+UN2W772bJxmVYPhAOPSUxtacyb7wkm1EhkYKU6KzFJsdU44DCV4to0LWw==",
+ "@typescript-eslint/[email protected][email protected][email protected]": {
+ "integrity": "sha512-iY2wlmyrXJmx4yxUGP3aYCFF3cA/6ShddOKmLU2dx7LnEykbAM8WThlxZEfd1NddqceF6eJmZUayxx9oKIYNlg==",
"dependencies": [
"@typescript-eslint/types",
"@typescript-eslint/typescript-estree",
@@ -418,11 +417,11 @@
"typescript"
]
},
- "@typescript-eslint/[email protected]": {
- "integrity": "sha512-Adfoy59kxNEjT5E5fnyrp7GpHYuWs8ONbdohu4ez6IU46qDq8LltG90tLmkucZB2uhYL8mqBjtXqGd8yhfjXqQ=="
+ "@typescript-eslint/[email protected]": {
+ "integrity": "sha512-LmE5IhQet1BWOWEXqBrVtBPsMAOQ6Nzk35d+WLh3mk4EUF33sqlfxjio1MdYeSvKSG5skactKKuixBIKXhL4Rw=="
},
- "@typescript-eslint/[email protected][email protected]": {
- "integrity": "sha512-gwLfFgWcw15tN2KXDCJvxEOQjPn+P3j/n3eSqkZ5sX4VpW9Cosodr+tWwBZRvJT3TcKx6HnPRGZMCNAiP1Xhug==",
+ "@typescript-eslint/[email protected][email protected]": {
+ "integrity": "sha512-DAlUoUV93hIvrtIQLwCbmZQYVZwOMhiHJrOVUUIWicFZaIYjTRqlY3I/NZevfkLmSqkNHRu2qYDcq9lrn16oOQ==",
"dependencies": [
"@typescript-eslint/project-service",
"@typescript-eslint/tsconfig-utils",
@@ -436,8 +435,8 @@
"typescript"
]
},
- "@typescript-eslint/[email protected][email protected][email protected]": {
- "integrity": "sha512-0up3oArJZBYnzOaEXKo8DmI43QvMZyPoFEt9LWzRJcyl/RcJjfKKPebknN1VbTgXBf3M/KggUh5uUMdURLnseg==",
+ "@typescript-eslint/[email protected][email protected][email protected]": {
+ "integrity": "sha512-5v5liypurJBFHCBNqh/RjsymAD+VWcE0djuGY/BUqp5fC3Qn+luWDEksjuTtWjPn6i5zQlUtkZCRG/CYG0yCkA==",
"dependencies": [
"@eslint-community/eslint-utils",
"@typescript-eslint/scope-manager",
@@ -447,8 +446,8 @@
"typescript"
]
},
- "@typescript-eslint/[email protected]": {
- "integrity": "sha512-E2mroviasaWecDzTGiGMtuEguuLVOeRggnrIn93CJuxYJzQBHbyymlT08aVQydbBal5538o+JkBKXh2sRuCyIA==",
+ "@typescript-eslint/[email protected]": {
+ "integrity": "sha512-SB8xqipSzZHUePCCLNeYxqnxq83X61/qzNhjQGbTfjxGZIeOEP7tBgWYX05Tcd6CgE02WdTJnh5b8kMZJ/+bnQ==",
"dependencies": [
"@typescript-eslint/types",
"[email protected]"
@@ -549,15 +548,15 @@
"[email protected]": {
"integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA=="
},
- "[email protected][email protected]": {
+ "[email protected][email protected]": {
"integrity": "sha512-82GZUjRS0p/jganf6q1rEO25VSoHH0hKPCTrgillPjdI/3bgBhAE1QzHrHTizjpRvy6pGAvKjDJtk2pF9NDq8w==",
"dependencies": [
"eslint"
],
"bin": true
},
- "[email protected][email protected][email protected]": {
- "integrity": "sha512-+w86Jlx4IRUuuvtqD6j4njql+akx+81JnpvbN5de3AV5iq2SexvST/Jr51CiTlKeY0i+vhoKjPO/ywFKIP75sA==",
+ "[email protected][email protected][email protected]": {
+ "integrity": "sha512-nppLmSSkWFs4JmPfcXJTFXsGILlYQhVSbJiP803kyMF0d9VxEJ5UIF5QjdbVx0U4bV6g8qkuvZUqkhsusrOzXA==",
"dependencies": [
"@eslint-community/eslint-utils",
"@jridgewell/sourcemap-codec",
@@ -601,8 +600,8 @@
"[email protected]": {
"integrity": "sha512-tD40eHxA35h0PEIZNeIjkHoDR4YjjJp34biM0mDvplBe//mB+IHCqHDGV7pxF+7MklTvighcCPPZC7ynWyjdTA=="
},
- "[email protected]": {
- "integrity": "sha512-UohDjD4zSzEwhf58M3O7vc/ycc8O1I7dNlhtD0WxE8Px8EHNJKtUwzBqrzeGhisRuv2ag4sAYswszCJRgKXYUg==",
+ "[email protected]": {
+ "integrity": "sha512-T0pNsxkb9IKmtQjhpK3d7nWOpFv+YHuMbTJnSVMoQblF0onvXfErrtp4V1jHtsQPan7dKaGVD0q1WCXnzMF31A==",
"dependencies": [
"@eslint-community/eslint-utils",
"@eslint-community/regexpp",
@@ -745,8 +744,8 @@
"[email protected]": {
"integrity": "sha512-c/c15i26VrJ4IRt5Z89DnIzCGDn9EcebibhAOjw5ibqEHsE1wLUgkPn9RDmNcUKyU87GeaL633nyJ+pplFR2ZQ=="
},
- "[email protected]": {
- "integrity": "sha512-RwMTC61u7hrG3ZJMkZQOK4JLJrKS8QtoTii63EmWvFXHqycY9FObBJQCbsLxSO8kjKhWE5kV1GC+Vb1g3RI0Zg=="
+ "[email protected]": {
+ "integrity": "sha512-UtdkTVyAJePQv0J2M9Xe4L0ruNSDV314XiIJsADI2Zf40bcdAonE/D/OhAU8AT99oij9mhLByb+NvA3QWZYgCg=="
},
"[email protected]": {
"integrity": "sha512-iZyKG96/JwPz1N55vj2Ie2vXbhu440zfUfJvSwEqEbeLluk7NnapfGqa7LH0mOsnDxTF85Mx8/dyR6HfqcbmbQ==",
@@ -1031,7 +1030,7 @@
"pathe"
]
},
- "[email protected][email protected]": {
+ "[email protected][email protected]": {
"integrity": "sha512-6DiM4E7v4coTE4uzA8U//WhtPwyhiim3eyjEMFCnUpzbrkK9wJHgKDT2mR+HbtSrd/NubVaYTOpSpjUl8NQeRg==",
"dependencies": [
"lilconfig",
@@ -1042,13 +1041,13 @@
"postcss"
]
},
- "[email protected][email protected]": {
+ "[email protected][email protected]": {
"integrity": "sha512-1WzZxRLaAFwEh6Do+zyGpjWV3nGJNxxhuh7Ubu/q1ICImMgZJnLwhoaEpRbG4pJppp2Y1ncL9ffA2f+LhrefQg==",
"dependencies": [
"postcss"
]
},
- "[email protected][email protected]": {
+ "[email protected][email protected]": {
"integrity": "sha512-AjKOeiwAitL/MXxQW2DliT28EKukvvbEWx3LBmJIRN8KfBGZbRTxNYW0kSqi1COiTZ57nZ9NW06S6ux//N1c9A==",
"dependencies": [
"postcss"
@@ -1061,8 +1060,8 @@
"util-deprecate"
]
},
- "[email protected]": {
- "integrity": "sha512-YUbWYCgErwnMAVkjUnYa+KlMBzGpHwiIt/DE7f0G33AuX2LH9UcTk6KgWxd3zRU+pN3u/C+Xl3EnMLM4Hea7Sg==",
+ "[email protected]": {
+ "integrity": "sha512-LJlKCCAUFKOuZxipUdYw1NzIITEsPcgyOG9LkvRJvuKj/bRzbuRY0ARXvL0pWGpsZvn8jku+LMep2eU0seHp8g==",
"dependencies": [
"nanoid",
"picocolors",
@@ -1072,7 +1071,7 @@
"[email protected]": {
"integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g=="
},
- "[email protected][email protected][email protected]": {
+ "[email protected][email protected][email protected]": {
"integrity": "sha512-wXvbXMjSvb4C9ENWTHXyd+ihakKCsJ6rJhLP6/8HFNj4GkZr48jqL9PoKsl2sk7SyCZRTnJ7O2TTowUpOxP/KA==",
"dependencies": [
"prettier",
@@ -1098,8 +1097,8 @@
"[email protected]": {
"integrity": "sha512-GDhwkLfywWL2s6vEjyhri+eXmfH6j1L7JE27WhqLeYzoh/A3DBaYGEj2H/HFZCn/kMfim73FXxEJTw06WtxQwg=="
},
- "[email protected]": {
- "integrity": "sha512-6odND+fel5zVw3I4Yc2e69gvguDnX0CAAGiNDZSq4ik5WUcaLrkD2GLuog0XcODbor31hZ5ayEMgVDno+KPV5g==",
+ "[email protected]": {
+ "integrity": "sha512-bWvlMpFKiTfDKfnK7FC2MPgPeWCf/Kpwsq49ApdW+FQaBZb6O6dZ4MAPbPUjp7hYQrw/RobqCzn64BRrQecGHw==",
"dependencies": [
"@oxc-project/types",
"@rolldown/pluginutils"
@@ -1129,8 +1128,8 @@
"mri"
]
},
- "[email protected]": {
- "integrity": "sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA==",
+ "[email protected]": {
+ "integrity": "sha512-9lpSSU4Mly3mrtruwLs1eLK6+gzbzqeBFwRNjIjE+9LuDpWdYctrQlQ3ej1Ilgi7gknpsTRnPoLP8DpCHqHIJw==",
"bin": true
},
"[email protected]": {
@@ -1153,8 +1152,8 @@
"[email protected]": {
"integrity": "sha512-KGj/8Y43x35aZVDtt+J4mK1hoLGHULMYfSkODJNQjNDC3oW1PqPoxMwo0pLUsWM/UEGzON/NxeHywEfNXNP3Vw=="
},
- "[email protected][email protected][email protected]": {
- "integrity": "sha512-Ge2IMdeTpbJuzNFGRiiMg0RWgbScysKQu7xwcyFJ22+DU9F5nPX51+Q3gHmGqRxYQMx2knreVWt5oCtfe0vf2g==",
+ "[email protected][email protected][email protected]": {
+ "integrity": "sha512-laZ49GFHZ3b0z2PWinJWL0syehc/PTR8aHaUaTiBkWJ+4Y38nhxjmXsSz7CbGa3VdKopViVbrBH3bGNqIAI0bQ==",
"dependencies": [
"@jridgewell/trace-mapping",
"@sveltejs/load-config",
@@ -1167,8 +1166,8 @@
],
"bin": true
},
- "[email protected][email protected]": {
- "integrity": "sha512-1bNtsoGwEx/J1qNz1xa5dSt/Ue5+C7+WpV92cCPZDbF6dx/YXHKzC9yTP25vFvAK40yd/mHXi1WACZO7FGf0Bw==",
+ "[email protected][email protected]": {
+ "integrity": "sha512-owYBhrNRp/m+hDaQCH0S683kc0TMFy2bB+qvsMQQZRsjSFD9xp/3FYgI8FZoOKA3xk62gwkUj1HpVek0p6WgNw==",
"dependencies": [
"[email protected]",
"[email protected]",
@@ -1183,8 +1182,8 @@
"svelte"
]
},
- "[email protected]": {
- "integrity": "sha512-1YiPCAXT0Ct6g1vOMmSLa0Nsc3QRMvtDF32ihgglGVrugIuIK38RyDiFNXVDhtQ81TJjSO57NdMw6DyYLqSGDQ==",
+ "[email protected]": {
+ "integrity": "sha512-5mAftM3SoDV9X0zdF386F9p2pv8iKOwi/KfBS1XnBAkVCKFzVOLHUoa8iGWAt4buoicLmyWVRpuuD5wplXOQsg==",
"dependencies": [
"@jridgewell/remapping",
"@jridgewell/sourcemap-codec",
@@ -1228,8 +1227,8 @@
"prelude-ls"
]
},
- "[email protected][email protected][email protected]": {
- "integrity": "sha512-r26Fkc8As+mZvqp7SLsMmNFyYUup/6CjK7/eHBHmhOw6GH6n6YFxHVFrG0jN1c5CMpDzelLPxvgeCOzx7BjN+A==",
+ "[email protected][email protected][email protected]": {
+ "integrity": "sha512-3Li9FfPmQp45nxEtFD1ZCrYFI3cYK5kpyNtmm1H7lMagm8u9sy6PTjy3ytwQZs7KNukOyKFHAZ6z6GjYFeaeXw==",
"dependencies": [
"@typescript-eslint/eslint-plugin",
"@typescript-eslint/parser",
@@ -1249,7 +1248,7 @@
"[email protected]": {
"integrity": "sha512-WRNW+sJgj5OBN4/0JpHFqtqzhpbnV0GuB+OozA9gCL7a993SmU+1JBZCzLNxYsbMfIeDL+lTsphD5jN5N+n0zg=="
},
- "[email protected][email protected]_@[email protected][email protected][email protected]": {
+ "[email protected][email protected]_@[email protected][email protected][email protected]": {
"integrity": "sha512-wV6c7I0PtiIP8KIU7Z1Ukyc2uzgY9ind3RXNu7j63L9qTWDn7CzLnW9FD57DKbfGpWKQv3qyV2PCtBG8Y5Llcg==",
"dependencies": [
"@antfu/[email protected]",
@@ -1263,7 +1262,7 @@
"svelte"
]
},
- "[email protected][email protected]_@[email protected][email protected]": {
+ "[email protected][email protected]_@[email protected][email protected]": {
"integrity": "sha512-GrM2uq3DQo3hvLU2FjeYhooJ8BY9N6j1Fbzgx7Pta3VVJevsD3VP4dPjZkZOS0mLvN8w9zzr9OlP+31bSMyuLw==",
"dependencies": [
"@jridgewell/remapping",
@@ -1285,8 +1284,8 @@
"[email protected]": {
"integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw=="
},
- "[email protected]_@[email protected][email protected]": {
- "integrity": "sha512-z1YpjieJ9g0ebTmQpLBv/oq9E3F9EIlOe+7LahW8SrE3LTiG3udBRUXQOlYXP9b+IC2q2phHeVxj9xGlw34OEQ==",
+ "[email protected]_@[email protected][email protected]": {
+ "integrity": "sha512-UI7dK29NnS54Fk+mmo7o+jI6U8Fp7hDl+X5Q1k45WH+d4dSlbLVUETGQ+hfkNgvLQGyoElPj837nZyv4MBc0VA==",
"dependencies": [
"@types/node",
"lightningcss",
@@ -1305,7 +1304,7 @@
],
"bin": true
},
- "[email protected][email protected]_@[email protected][email protected]": {
+ "[email protected][email protected]_@[email protected][email protected]": {
"integrity": "sha512-ub4okH7Z5KLjb6hDyjqrGXqWtWvoYdU3IGm/NorpgHncKoLTCfRIbvlhBm7r0YstIaQRYlp4yEbFqDcKSzXSSg==",
"dependencies": [
"vite"
@@ -1347,23 +1346,23 @@
"npm:@eslint/js@^10.0.1",
"npm:@giscus/svelte@^3.1.0",
"npm:@iconify-json/ic@^1.2.4",
- "npm:@icons-pack/svelte-simple-icons@^7.2.0",
- "npm:@sveltejs/adapter-node@6",
- "npm:@sveltejs/kit@^3.1.0",
+ "npm:@iconify-json/simple-icons@^1.2.101",
+ "npm:@sveltejs/adapter-node@^6.0.1",
+ "npm:@sveltejs/kit@^3.1.1",
"npm:@sveltejs/vite-plugin-svelte@^7.3.1",
"npm:@types/node@^24.19.2",
"npm:eslint-config-prettier@^10.1.8",
- "npm:eslint-plugin-svelte@^3.23.1",
- "npm:eslint@^10.13.0",
- "npm:globals@^17.13.0",
+ "npm:eslint-plugin-svelte@^3.24.0",
+ "npm:eslint@^10.14.0",
+ "npm:globals@^17.14.0",
"npm:prettier-plugin-svelte@^4.1.1",
"npm:prettier@^3.9.10",
- "npm:svelte-check@^4.7.7",
- "npm:svelte@^5.57.2",
- "npm:typescript-eslint@^8.72.0",
+ "npm:svelte-check@^4.7.8",
+ "npm:svelte@^5.57.3",
+ "npm:typescript-eslint@^8.72.1",
"npm:typescript@^6.0.3",
"npm:unplugin-icons@24",
- "npm:vite@^8.3.5",
+ "npm:vite@^8.3.6",
"npm:yaml@^2.9.1"
]
}
diff --git a/package.json b/package.json
index 90901e1..acb35a5 100644
--- a/package.json
+++ b/package.json
@@ -16,22 +16,23 @@
"devDependencies": {
"@eslint/js": "^10.0.1",
"@iconify-json/ic": "^1.2.4",
- "@sveltejs/adapter-node": "^6.0.0",
- "@sveltejs/kit": "^3.1.0",
+ "@iconify-json/simple-icons": "^1.2.101",
+ "@sveltejs/adapter-node": "^6.0.1",
+ "@sveltejs/kit": "^3.1.1",
"@sveltejs/vite-plugin-svelte": "^7.3.1",
"@types/node": "^24.19.2",
- "eslint": "^10.13.0",
+ "eslint": "^10.14.0",
"eslint-config-prettier": "^10.1.8",
- "eslint-plugin-svelte": "^3.23.1",
- "globals": "^17.13.0",
+ "eslint-plugin-svelte": "^3.24.0",
+ "globals": "^17.14.0",
"prettier": "^3.9.10",
"prettier-plugin-svelte": "^4.1.1",
- "svelte": "^5.57.2",
- "svelte-check": "^4.7.7",
+ "svelte": "^5.57.3",
+ "svelte-check": "^4.7.8",
"typescript": "^6.0.3",
- "typescript-eslint": "^8.72.0",
+ "typescript-eslint": "^8.72.1",
"unplugin-icons": "^24.0.0",
- "vite": "^8.3.5"
+ "vite": "^8.3.6"
},
"imports": {
"#lib": "./src/lib/index.js",
@@ -39,7 +40,6 @@
},
"dependencies": {
"@giscus/svelte": "^3.1.0",
- "simple-icons": "npm:@icons-pack/svelte-simple-icons@^7.2.0",
"yaml": "^2.9.1"
}
}
diff --git a/src/lib/components/Footer.svelte b/src/lib/components/Footer.svelte
index a5e3e55..e820b58 100644
--- a/src/lib/components/Footer.svelte
+++ b/src/lib/components/Footer.svelte
@@ -6,6 +6,7 @@
import '#lib/styles/footer.css';
import { websiteDomain } from '#lib';
import IcFavorite from '~icons/ic/outline-favorite';
+ import VisitorCounter from '#lib/components/VisitorCounter.svelte';
</script>
<footer>
@@ -23,6 +24,8 @@
<span>Clove Twilight © 2026</span>
</p>
+ <VisitorCounter />
+
<a class="no-ai" href="/ai" title="Read my AI statement">
<img src="/no-ai.svg" alt="Developed by a human, not by AI" width="131" height="42" />
</a>
diff --git a/src/lib/components/Header.svelte b/src/lib/components/Header.svelte
index d5d86fc..45108e0 100644
--- a/src/lib/components/Header.svelte
+++ b/src/lib/components/Header.svelte
@@ -7,7 +7,9 @@
import IcCall from '~icons/ic/outline-call';
import IcKey from '~icons/ic/outline-key';
import Hamburger from '#lib/components/Hamburger.svelte';
- import { SiGithub, SiDiscord } from 'simple-icons';
+ import NowPlaying from '#lib/components/NowPlaying.svelte';
+ import SiGithub from '~icons/simple-icons/github';
+ import SiDiscord from '~icons/simple-icons/discord';
import '#lib/styles/header.css';
import { authUrl, githubUrl, websiteDomain } from '#lib';
</script>
@@ -18,14 +20,25 @@
<header>
<a class="brand" href="/">
<img src="/favicon.svg" alt="Site Favicon" width="32" height="32" />
- <span>{websiteDomain}</span>
+ <span class="brand-name">{websiteDomain}</span>
</a>
<nav>
- <a href={authUrl} target="_blank"><IcKey class="nav-icon" />Apps</a>
- <a href={githubUrl} target="_blank"><SiGithub class="nav-icon" />GitHub</a>
- <a href="/contact"><IcCall class="nav-icon" />Contact</a>
- <a href="/invite"> <SiDiscord class="nav-icon" />Discord Server</a>
- <a href="/blog"><IcArticle class="nav-icon" />Blog</a>
+ <a href={authUrl} target="_blank" title="Apps"
+ ><IcKey class="nav-icon" /><span class="nav-label">Apps</span></a
+ >
+ <a href={githubUrl} target="_blank" title="GitHub"
+ ><SiGithub class="nav-icon" /><span class="nav-label">GitHub</span></a
+ >
+ <a href="/contact" title="Contact"
+ ><IcCall class="nav-icon" /><span class="nav-label">Contact</span></a
+ >
+ <a href="/invite" title="Discord Server"
+ ><SiDiscord class="nav-icon" /><span class="nav-label">Discord Server</span></a
+ >
+ <a href="/blog" title="Blog"
+ ><IcArticle class="nav-icon" /><span class="nav-label">Blog</span></a
+ >
<Hamburger />
</nav>
+ <NowPlaying />
</header>
diff --git a/src/lib/components/ListeningIcon.svelte b/src/lib/components/ListeningIcon.svelte
index a1e4b31..10d2e61 100644
--- a/src/lib/components/ListeningIcon.svelte
+++ b/src/lib/components/ListeningIcon.svelte
@@ -4,7 +4,7 @@
<script lang="ts">
import IcSportsEsports from '~icons/ic/outline-sports-esports';
- import { SiSpotify } from 'simple-icons';
+ import SiSpotify from '~icons/simple-icons/spotify';
// Decorative: the text next to it always names the app
let { source }: { source: 'doughmination' | 'spotify' } = $props();
@@ -12,7 +12,7 @@
<span class="listening-icon" aria-hidden="true">
{#if source === 'spotify'}
- <SiSpotify color="#1db954" title="Spotify" />
+ <SiSpotify style="color: #1db954" />
{:else}
<IcSportsEsports />
{/if}
diff --git a/src/lib/components/NowPlaying.svelte b/src/lib/components/NowPlaying.svelte
new file mode 100644
index 0000000..aea3022
--- /dev/null
+++ b/src/lib/components/NowPlaying.svelte
@@ -0,0 +1,78 @@
+<!-- src/lib/components/NowPlaying.svelte
+ DASL-1.2 — (c) Clove Twilight
+-->
+
+<script lang="ts">
+ import '#lib/styles/nowplaying.css';
+ import { page } from '$app/state';
+ import { resolve } from '$app/paths';
+ import { fly } from 'svelte/transition';
+ import { STATUS_LABEL, clamp, subscribePresence, type Presence } from '#lib/scripts/discord.ts';
+ import { trackFromPresence } from '#lib/scripts/music.ts';
+ import { discordId } from '#lib';
+
+ // These pages already show all of this in full
+ const HIDDEN_ON = ['/', '/music', '/discord'];
+
+ let presence = $state<Presence | null>(null);
+ let now = $state(Date.now());
+ let reduceMotion = $state(false);
+
+ // The socket is already open for the whole visit (hooks.client.ts)
+ $effect(() => {
+ reduceMotion = matchMedia('(prefers-reduced-motion: reduce)').matches;
+ return subscribePresence([discordId], (p) => (presence = p));
+ });
+
+ const track = $derived(trackFromPresence(presence));
+ const status = $derived(presence ? (presence.streaming ? 'streaming' : presence.status) : null);
+ const customStatus = $derived(presence?.custom_status?.text ?? '');
+
+ // Only tick while there's a progress bar to move
+ $effect(() => {
+ if (!track?.duration) return;
+ const tick = setInterval(() => (now = Date.now()), 1000);
+ return () => clearInterval(tick);
+ });
+
+ const progress = $derived(
+ track?.start && track.duration ? clamp((now - track.start) / track.duration, 0, 1) : 0
+ );
+ const hidden = $derived(HIDDEN_ON.includes(page.url.pathname));
+ const flyIn = $derived({ y: -8, duration: reduceMotion ? 0 : 250 });
+</script>
+
+{#if !hidden && track}
+ <a
+ class="now-playing"
+ href={resolve('/music')}
+ title="Listening to {track.song}{track.artist ? ` by ${track.artist}` : ''}"
+ transition:fly={flyIn}
+ >
+ {#if track.art}
+ <img class="np-art" src={track.art} alt="" width="28" height="28" />
+ {/if}
+ <span class="np-text">
+ <strong>{track.song}</strong>{#if track.artist}<span class="np-muted"
+ > — {track.artist}</span
+ >{/if}
+ </span>
+ <span class="np-eq" aria-hidden="true"><i></i><i></i><i></i></span>
+ {#if track.duration}
+ <span class="np-progress" style:--progress={progress} aria-hidden="true"></span>
+ {/if}
+ </a>
+{:else if !hidden && status}
+ <a
+ class="now-playing"
+ href={resolve('/discord')}
+ data-status={status}
+ title="{STATUS_LABEL[status]} on Discord"
+ transition:fly={flyIn}
+ >
+ <span class="np-dot" aria-hidden="true"></span>
+ <span class="np-text">
+ {STATUS_LABEL[status]}{#if customStatus}<span class="np-muted"> · {customStatus}</span>{/if}
+ </span>
+ </a>
+{/if}
diff --git a/src/lib/components/SiJavaOracle.svelte b/src/lib/components/SiJavaOracle.svelte
index 87dc3a4..6ff8fd2 100644
--- a/src/lib/components/SiJavaOracle.svelte
+++ b/src/lib/components/SiJavaOracle.svelte
@@ -3,20 +3,21 @@
-->
<script lang="ts">
+ import type { SVGAttributes } from 'svelte/elements';
+
// Simple Icons dropped Java over Oracle's trademark rules, so this mirrors
- // the package's icon components with the old coffee cup path
- let { color = 'currentColor', size = 24, title = 'Java', ...rest } = $props();
+ // the `~icons/simple-icons/*` components with the old coffee cup path
+ let props: SVGAttributes<SVGSVGElement> = $props();
</script>
<svg
xmlns="http://www.w3.org/2000/svg"
- width={size}
- height={size}
- fill={color}
+ width="1em"
+ height="1em"
+ fill="currentColor"
viewBox="0 0 502.632 502.632"
- {...rest}
+ {...props}
>
- <title>{title}</title>
<path
d="M240.864,269.894c0,0-28.02-53.992-26.985-93.445c0.755-28.193,64.324-56.062,89.281-96.529 C328.074,39.431,300.054,0,300.054,0s6.234,29.077-10.376,59.147c-16.609,30.113-77.914,47.779-101.749,99.679 S240.864,269.894,240.864,269.894z"
/>
diff --git a/src/lib/components/VisitorCounter.svelte b/src/lib/components/VisitorCounter.svelte
new file mode 100644
index 0000000..7781b60
--- /dev/null
+++ b/src/lib/components/VisitorCounter.svelte
@@ -0,0 +1,34 @@
+<!-- src/lib/components/VisitorCounter.svelte
+ DASL-1.2 — (c) Clove Twilight
+-->
+
+<script lang="ts">
+ import { subscribeVisitors } from '#lib/scripts/visitors.ts';
+
+ // Digit images live in static/counter as 0.png to 9.png: the 'rule34' theme
+ // from Moe-Counter (https://github.com/journey-ad/Moe-Counter, MIT), turned
+ // from GIFs into looping APNGs
+ const DIGIT_SRC = (d: string) => `/counter/${d}.png`;
+ // Old-school hit counters always show leading zeroes
+ const MIN_DIGITS = 4;
+
+ let count = $state<number | null>(null);
+
+ $effect(() => subscribeVisitors((n) => (count = n)));
+
+ const digits = $derived(count === null ? [] : [...String(count).padStart(MIN_DIGITS, '0')]);
+ const label = $derived(
+ count === 1 ? 'Just you here right now' : `${count} people here right now`
+ );
+</script>
+
+{#if count !== null}
+ <span class="visitors" title={label}>
+ <span class="visitor-digits" role="img" aria-label={label}>
+ {#each digits as digit, i (i)}
+ <img src={DIGIT_SRC(digit)} alt="" width="45" height="100" />
+ {/each}
+ </span>
+ <span class="visitor-label" aria-hidden="true">{count === 1 ? 'just you' : 'here now'}</span>
+ </span>
+{/if}
diff --git a/src/lib/scripts/visitors.ts b/src/lib/scripts/visitors.ts
new file mode 100644
index 0000000..bb6e7f6
--- /dev/null
+++ b/src/lib/scripts/visitors.ts
@@ -0,0 +1,45 @@
+/* src/lib/scripts/visitors.ts
+ * DASL-1.2 — (c) Clove Twilight
+ */
+
+// Live visitor count, streamed from routes/api/visitors. Like the Discord
+// socket, one stream stays open for the whole visit; EventSource reconnects by
+// itself if it drops.
+
+const listeners = new Set<(count: number) => void>();
+let source: EventSource | null = null;
+let latest: number | null = null;
+
+// Kept in localStorage so all of one person's tabs count once. Private windows
+// or blocked storage just get a fresh id per tab
+function visitorId(): string {
+ try {
+ let id = localStorage.getItem('visitor-id');
+ if (!id) {
+ id = crypto.randomUUID();
+ localStorage.setItem('visitor-id', id);
+ }
+ return id;
+ } catch {
+ return crypto.randomUUID();
+ }
+}
+
+function connect() {
+ source = new EventSource(`/api/visitors?id=${encodeURIComponent(visitorId())}`);
+ source.onmessage = (event) => {
+ const n = Number(event.data);
+ if (!Number.isInteger(n) || n < 0) return;
+ latest = n;
+ for (const l of listeners) l(n);
+ };
+}
+
+// Calls onCount with the latest count right away if there is one, then on every
+// change. Returns a function that stops listening; the stream stays open.
+export function subscribeVisitors(onCount: (count: number) => void): () => void {
+ listeners.add(onCount);
+ if (latest !== null) onCount(latest);
+ if (!source && typeof EventSource !== 'undefined') connect();
+ return () => listeners.delete(onCount);
+}
diff --git a/src/lib/server/visitors.ts b/src/lib/server/visitors.ts
new file mode 100644
index 0000000..b7c5023
--- /dev/null
+++ b/src/lib/server/visitors.ts
@@ -0,0 +1,45 @@
+/* src/lib/server/visitors.ts
+ * DASL-1.2 — (c) Clove Twilight
+ */
+
+// Live visitor count: every open tab holds an event stream (routes/api/visitors),
+// and tabs sharing a visitor id count once, so one person with five tabs is one
+// visitor. It's all in memory, which is fine for a single server process; the
+// count just starts again from whoever reconnects after a restart.
+
+type Send = (count: number) => void;
+
+// Hard cap on open streams, so nobody can run the server out of connections
+export const MAX_TABS = 500;
+
+const tabs = new Map<Send, string>();
+let last = 0;
+
+function count(): number {
+ return new Set(tabs.values()).size;
+}
+
+// Tell every tab, but only when the number actually moved. Returns whether it did
+function broadcast(): boolean {
+ const n = count();
+ if (n === last) return false;
+ last = n;
+ for (const send of tabs.keys()) send(n);
+ return true;
+}
+
+export function isFull(): boolean {
+ return tabs.size >= MAX_TABS;
+}
+
+// Adds a tab and sends it the current count straight away; returns the function
+// that removes it again (safe to call more than once)
+export function join(visitorId: string, send: Send): () => void {
+ tabs.set(send, visitorId);
+ // Another tab of someone already here doesn't change the count, but the new
+ // tab still needs to hear it
+ if (!broadcast()) send(last);
+ return () => {
+ if (tabs.delete(send)) broadcast();
+ };
+}
diff --git a/src/lib/styles/footer.css b/src/lib/styles/footer.css
index 12d10cc..f0a0641 100644
--- a/src/lib/styles/footer.css
+++ b/src/lib/styles/footer.css
@@ -120,3 +120,27 @@ footer {
display: none;
}
}
+
+/* Live visitor counter, drawn with digit images like an old hit counter */
+
+.visitors {
+ display: inline-flex;
+ gap: 0.5rem;
+ align-items: center;
+}
+
+.visitor-digits {
+ display: inline-flex;
+ line-height: 0;
+}
+
+/* Half the images' 45x100, so on 2x screens every image pixel still gets its
+ own screen pixel and stays sharp */
+.visitor-digits img {
+ width: auto;
+ height: 50px;
+}
+
+.visitor-label {
+ font-size: 0.75rem;
+}
diff --git a/src/lib/styles/global.css b/src/lib/styles/global.css
index 4f0d6e4..86e1203 100644
--- a/src/lib/styles/global.css
+++ b/src/lib/styles/global.css
@@ -113,3 +113,39 @@ br {
display: none;
}
}
+
+/* Page transitions (started in +layout.svelte): the header and footer stay put
+ while the page content fades out and the new one rises in */
+
+main {
+ view-transition-name: main;
+}
+
+::view-transition-old(main) {
+ animation: page-out 0.15s ease-in both;
+}
+
+::view-transition-new(main) {
+ animation: page-in 0.3s ease-out both;
+}
+
+@keyframes page-out {
+ to {
+ opacity: 0;
+ }
+}
+
+@keyframes page-in {
+ from {
+ opacity: 0;
+ transform: translateY(0.75rem);
+ }
+}
+
+@media (prefers-reduced-motion: reduce) {
+ ::view-transition-group(*),
+ ::view-transition-old(*),
+ ::view-transition-new(*) {
+ animation: none !important;
+ }
+}
diff --git a/src/lib/styles/header.css b/src/lib/styles/header.css
index b6ee999..30faaa9 100644
--- a/src/lib/styles/header.css
+++ b/src/lib/styles/header.css
@@ -36,7 +36,9 @@
header {
position: relative;
- z-index: 2;
+ /* The hamburger drawer lives in here, so the whole header has to stack above
+ page content (e.g. the z-index 10 tooltips and the homepage status badge) */
+ z-index: 20;
display: flex;
flex-wrap: wrap;
gap: 1rem 1.5rem;
@@ -87,6 +89,59 @@ header nav a:hover {
flex-shrink: 0;
}
+/* Narrow screens: the nav goes icon-only (labels stay for screen readers and
+ the hover title), then the domain name goes too, so the hamburger never
+ gets pushed off the edge */
+
+.nav-label,
+.brand-name {
+ white-space: nowrap;
+}
+
+@media (max-width: 52rem) {
+ header nav {
+ gap: 1.1rem;
+ align-items: center;
+ }
+
+ header nav a {
+ font-size: 1.05rem;
+ }
+
+ .nav-label {
+ position: absolute;
+ width: 1px;
+ height: 1px;
+ overflow: hidden;
+ clip-path: inset(50%);
+ }
+}
+
+@media (max-width: 30rem) {
+ header {
+ flex-wrap: nowrap;
+ column-gap: 1rem;
+ padding-inline: 1rem;
+ }
+
+ header nav {
+ gap: 0.85rem;
+ }
+
+ .brand-name {
+ position: absolute;
+ width: 1px;
+ height: 1px;
+ overflow: hidden;
+ clip-path: inset(50%);
+ }
+
+ header .now-playing {
+ right: 1rem;
+ max-width: calc(100% - 2rem);
+ }
+}
+
@media print {
header {
display: none;
diff --git a/src/lib/styles/index.css b/src/lib/styles/index.css
index e34b2f1..db7cab9 100644
--- a/src/lib/styles/index.css
+++ b/src/lib/styles/index.css
@@ -307,3 +307,38 @@
.now-battery-low {
color: #ed4245;
}
+
+/* The badge breathes while I'm around: a ring ripples out when online, and a
+ soft glow pulses while streaming */
+
+@media (prefers-reduced-motion: no-preference) {
+ .selfie-status[data-status='online']::after {
+ content: '';
+ position: absolute;
+ inset: -0.35rem;
+ border-radius: 50%;
+ box-shadow: 0 0 0 0 var(--status);
+ animation: status-ripple 2.4s ease-out infinite;
+ pointer-events: none;
+ }
+
+ .selfie-status[data-status='streaming'] {
+ animation: status-glow 2s ease-in-out infinite;
+ }
+}
+
+@keyframes status-ripple {
+ 0% {
+ box-shadow: 0 0 0 0 color-mix(in srgb, var(--status) 70%, transparent);
+ }
+ 70%,
+ 100% {
+ box-shadow: 0 0 0 0.6rem transparent;
+ }
+}
+
+@keyframes status-glow {
+ 50% {
+ box-shadow: 0 0 1.1rem 0.2rem color-mix(in srgb, var(--status) 60%, transparent);
+ }
+}
diff --git a/src/lib/styles/nowplaying.css b/src/lib/styles/nowplaying.css
new file mode 100644
index 0000000..eebf879
--- /dev/null
+++ b/src/lib/styles/nowplaying.css
@@ -0,0 +1,145 @@
+/* src/lib/styles/nowplaying.css
+ * DASL-1.2 — (c) Clove Twilight
+ */
+
+/* Now playing / status pill, hanging just under the hamburger. It's absolutely
+ placed so it never pushes the page down when it appears or goes away */
+
+.now-playing {
+ position: absolute;
+ top: calc(100% - 0.4rem);
+ right: 1.5rem;
+ display: flex;
+ gap: 0.55rem;
+ align-items: center;
+ max-width: min(22rem, calc(100% - 3rem));
+ min-height: 2.25rem;
+ padding: 0.25rem 0.85rem 0.25rem 0.3rem;
+ overflow: hidden;
+ border: 1px solid var(--line);
+ border-radius: 999px;
+ background: rgb(11 10 13 / 72%);
+ backdrop-filter: blur(10px);
+ color: var(--muted);
+ font-size: 0.8rem;
+ line-height: 1.3;
+ text-decoration: none;
+ transition:
+ border-color 0.2s ease,
+ color 0.2s ease;
+}
+
+.now-playing:hover {
+ border-color: rgb(235 69 158 / 45%);
+ color: var(--text);
+}
+
+.np-art {
+ flex: none;
+ border-radius: 50%;
+ object-fit: cover;
+}
+
+.np-text {
+ min-width: 0;
+ overflow: hidden;
+ white-space: nowrap;
+ text-overflow: ellipsis;
+}
+
+.np-text strong {
+ color: var(--text);
+ font-weight: 600;
+}
+
+.np-muted {
+ color: var(--muted);
+}
+
+/* Status-only version: just a dot, so leave the art's padding to it */
+
+.now-playing[data-status] {
+ padding-left: 0.8rem;
+}
+
+.np-dot {
+ flex: none;
+ width: 0.55rem;
+ height: 0.55rem;
+ border-radius: 50%;
+ background: var(--status);
+ box-shadow: 0 0 0.5rem var(--status);
+}
+
+/* Little bouncing equaliser */
+
+.np-eq {
+ display: inline-flex;
+ flex: none;
+ gap: 2px;
+ align-items: flex-end;
+ height: 0.8rem;
+}
+
+.np-eq i {
+ width: 3px;
+ height: 100%;
+ border-radius: 1px;
+ background: var(--accent);
+ transform-origin: bottom;
+ animation: eq 0.9s ease-in-out infinite alternate;
+}
+
+.np-eq i:nth-child(2) {
+ animation-duration: 0.7s;
+ animation-delay: -0.3s;
+}
+
+.np-eq i:nth-child(3) {
+ animation-duration: 1.1s;
+ animation-delay: -0.6s;
+}
+
+@keyframes eq {
+ from {
+ transform: scaleY(0.25);
+ }
+ to {
+ transform: scaleY(1);
+ }
+}
+
+/* Song progress, as a thin line along the bottom edge */
+
+.np-progress {
+ position: absolute;
+ right: 0;
+ bottom: 0;
+ left: 0;
+ height: 2px;
+ background: var(--accent);
+ transform: scaleX(var(--progress));
+ transform-origin: left;
+ transition: transform 1s linear;
+}
+
+@media (prefers-reduced-motion: reduce) {
+ .np-eq i {
+ animation: none;
+ transform: scaleY(0.6);
+ }
+
+ .np-eq i:nth-child(2) {
+ transform: scaleY(1);
+ }
+
+ .np-progress {
+ transition: none;
+ }
+}
+
+@media print {
+ .now-playing {
+ display: none;
+ }
+}
diff --git a/src/lib/styles/presence.css b/src/lib/styles/presence.css
index adaa7c4..7d8828f 100644
--- a/src/lib/styles/presence.css
+++ b/src/lib/styles/presence.css
@@ -4,21 +4,7 @@
/* Presence: shared by the Discord and Friends pages */
-[data-status='online'] {
- --status: #3ba55d;
-}
-[data-status='idle'] {
- --status: #faa81a;
-}
-[data-status='dnd'] {
- --status: #ed4245;
-}
-[data-status='offline'] {
- --status: #80848e;
-}
-[data-status='streaming'] {
- --status: #9b59b6;
-}
+/* Status colours ([data-status]) live in theme.css, since the header uses them too */
.chip {
display: inline-flex;
diff --git a/src/lib/styles/theme.css b/src/lib/styles/theme.css
index 791aabd..8a2f220 100644
--- a/src/lib/styles/theme.css
+++ b/src/lib/styles/theme.css
@@ -16,3 +16,21 @@
background: var(--bg);
color: var(--text);
}
+
+/* Discord status colours, for anything with a data-status attribute */
+
+[data-status='online'] {
+ --status: #3ba55d;
+}
+[data-status='idle'] {
+ --status: #faa81a;
+}
+[data-status='dnd'] {
+ --status: #ed4245;
+}
+[data-status='offline'] {
+ --status: #80848e;
+}
+[data-status='streaming'] {
+ --status: #9b59b6;
+}
diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte
index db63112..8b0e743 100644
--- a/src/routes/+layout.svelte
+++ b/src/routes/+layout.svelte
@@ -2,7 +2,7 @@
DASL-1.2 — (c) Clove Twilight
-->
-<script lang='ts'>
+<script lang="ts">
import '#lib/styles/global.css';
import '#lib/styles/fonts.css';
import '#lib/styles/theme.css';
@@ -10,22 +10,35 @@
import Header from '#lib/components/Header.svelte';
import Footer from '#lib/components/Footer.svelte';
import { websiteUrl } from '#lib';
+ import { onNavigate } from '$app/navigation';
+
+ // Cross-fade between pages where the browser supports view transitions;
+ // the animation itself lives in global.css
+ onNavigate((navigation) => {
+ if (!document.startViewTransition) return;
+ return new Promise((resolve) => {
+ document.startViewTransition(async () => {
+ resolve();
+ await navigation.complete;
+ });
+ });
+ });
</script>
<svelte:head>
- <link rel='icon' href='/favicon.ico' sizes='32x32' />
- <link rel='icon' href='/favicon.svg' type='image/svg+xml' />
- <link rel='apple-touch-icon' href='/favicon.png' />
+ <link rel="icon" href="/favicon.ico" sizes="32x32" />
+ <link rel="icon" href="/favicon.svg" type="image/svg+xml" />
+ <link rel="apple-touch-icon" href="/favicon.png" />
- <meta property='og:site_name' content='Clove Twilight' />
- <meta property='og:type' content='website' />
- <meta property='og:locale' content='en_GB' />
- <meta property='og:image' content='{websiteUrl}/favicon.png' />
- <meta property='og:image:width' content='512' />
- <meta property='og:image:height' content='512' />
- <meta property='og:image:alt' content='Clove Twilight's site icon' />
- <meta name='twitter:card' content='summary' />
- <meta name='twitter:site' content='@DoughminCEO' />
+ <meta property="og:site_name" content="Clove Twilight" />
+ <meta property="og:type" content="website" />
+ <meta property="og:locale" content="en_GB" />
+ <meta property="og:image" content="{websiteUrl}/favicon.png" />
+ <meta property="og:image:width" content="512" />
+ <meta property="og:image:height" content="512" />
+ <meta property="og:image:alt" content="Clove Twilight's site icon" />
+ <meta name="twitter:card" content="summary" />
+ <meta name="twitter:site" content="@DoughminCEO" />
</svelte:head>
<Header />
diff --git a/src/routes/contact/+page.svelte b/src/routes/contact/+page.svelte
index 192dd5d..9a6002a 100644
--- a/src/routes/contact/+page.svelte
+++ b/src/routes/contact/+page.svelte
@@ -7,17 +7,15 @@
import IcEmail from '~icons/ic/outline-email';
import IcWork from '~icons/ic/outline-work';
import Meta from '#lib/components/Meta.svelte';
- import {
- SiX,
- SiDiscord,
- SiTwitch,
- SiTiktok,
- SiYoutube,
- SiBluesky,
- SiInstagram,
- SiReddit,
- SiTumblr
- } from 'simple-icons';
+ import SiX from '~icons/simple-icons/x';
+ import SiDiscord from '~icons/simple-icons/discord';
+ import SiTwitch from '~icons/simple-icons/twitch';
+ import SiTiktok from '~icons/simple-icons/tiktok';
+ import SiYoutube from '~icons/simple-icons/youtube';
+ import SiBluesky from '~icons/simple-icons/bluesky';
+ import SiInstagram from '~icons/simple-icons/instagram';
+ import SiReddit from '~icons/simple-icons/reddit';
+ import SiTumblr from '~icons/simple-icons/tumblr';
import '#lib/styles/contact.css';
import {
discordId,
diff --git a/src/routes/stack/+page.svelte b/src/routes/stack/+page.svelte
index 66b1aa4..f4ca75b 100644
--- a/src/routes/stack/+page.svelte
+++ b/src/routes/stack/+page.svelte
@@ -6,62 +6,65 @@
import Meta from '#lib/components/Meta.svelte';
import '#lib/styles/stack.css';
import { apiBase } from '#lib';
- import {
- SiArchlinux,
- SiArduino,
- SiBootstrap,
- SiBun,
- SiCloudflare,
- SiCloudflarepages,
- SiCss,
- SiDocker,
- SiEjs,
- SiElectron,
- SiEslint,
- SiExpress,
- SiFastapi,
- SiFfmpeg,
- SiGit,
- SiGitea,
- SiGithub,
- SiGithubactions,
- SiGnubash,
- SiGo,
- SiGradle,
- SiHtml5,
- SiInkscape,
- SiInsomnia,
- SiJavascript,
- SiJsonwebtokens,
- SiKotlin,
- SiLatex,
- SiLucide,
- SiMarkdown,
- SiMysql,
- SiNextdotjs,
- SiNginx,
- SiNodedotjs,
- SiNodemon,
- SiNpm,
- SiPnpm,
- SiPostgresql,
- SiPrettier,
- SiPython,
- SiRaspberrypi,
- SiReact,
- SiRedis,
- SiSimpleicons,
- SiSqlite,
- SiSvelte,
- SiTailwindcss,
- SiTypescript,
- SiVercel,
- SiVite,
- SiVscodium,
- SiVuedotjs,
- SiWordpress
- } from 'simple-icons';
+ import SiArchlinux from '~icons/simple-icons/archlinux';
+ import SiArduino from '~icons/simple-icons/arduino';
+ import SiBootstrap from '~icons/simple-icons/bootstrap';
+ import SiBun from '~icons/simple-icons/bun';
+ import SiClaude from '~icons/simple-icons/claude';
+ import SiCloudflare from '~icons/simple-icons/cloudflare';
+ import SiCloudflarepages from '~icons/simple-icons/cloudflarepages';
+ import SiCss from '~icons/simple-icons/css';
+ import SiDeno from '~icons/simple-icons/deno';
+ import SiDocker from '~icons/simple-icons/docker';
+ import SiEjs from '~icons/simple-icons/ejs';
+ import SiElectron from '~icons/simple-icons/electron';
+ import SiEslint from '~icons/simple-icons/eslint';
+ import SiExpress from '~icons/simple-icons/express';
+ import SiFastapi from '~icons/simple-icons/fastapi';
+ import SiFfmpeg from '~icons/simple-icons/ffmpeg';
+ import SiGit from '~icons/simple-icons/git';
+ import SiGitea from '~icons/simple-icons/gitea';
+ import SiGithub from '~icons/simple-icons/github';
+ import SiGithubactions from '~icons/simple-icons/githubactions';
+ import SiGnubash from '~icons/simple-icons/gnubash';
+ import SiGo from '~icons/simple-icons/go';
+ import SiGradle from '~icons/simple-icons/gradle';
+ import SiHtml5 from '~icons/simple-icons/html5';
+ import SiInkscape from '~icons/simple-icons/inkscape';
+ import SiInsomnia from '~icons/simple-icons/insomnia';
+ import SiJavascript from '~icons/simple-icons/javascript';
+ import SiJsonwebtokens from '~icons/simple-icons/jsonwebtokens';
+ import SiKotlin from '~icons/simple-icons/kotlin';
+ import SiLatex from '~icons/simple-icons/latex';
+ import SiLucide from '~icons/simple-icons/lucide';
+ import SiMarkdown from '~icons/simple-icons/markdown';
+ import SiMysql from '~icons/simple-icons/mysql';
+ import SiNextdotjs from '~icons/simple-icons/nextdotjs';
+ import SiNginx from '~icons/simple-icons/nginx';
+ import SiNodedotjs from '~icons/simple-icons/nodedotjs';
+ import SiNodemon from '~icons/simple-icons/nodemon';
+ import SiNpm from '~icons/simple-icons/npm';
+ import SiOpenai from '~icons/simple-icons/openai';
+ import SiPnpm from '~icons/simple-icons/pnpm';
+ import SiPostgresql from '~icons/simple-icons/postgresql';
+ import SiPrettier from '~icons/simple-icons/prettier';
+ import SiPython from '~icons/simple-icons/python';
+ import SiRaspberrypi from '~icons/simple-icons/raspberrypi';
+ import SiReact from '~icons/simple-icons/react';
+ import SiRedis from '~icons/simple-icons/redis';
+ import SiSimpleicons from '~icons/simple-icons/simpleicons';
+ import SiSqlite from '~icons/simple-icons/sqlite';
+ import SiSvelte from '~icons/simple-icons/svelte';
+ import SiTailwindcss from '~icons/simple-icons/tailwindcss';
+ import SiTypescript from '~icons/simple-icons/typescript';
+ import SiVercel from '~icons/simple-icons/vercel';
+ import SiVite from '~icons/simple-icons/vite';
+ import SiVscodium from '~icons/simple-icons/vscodium';
+ import SiVuedotjs from '~icons/simple-icons/vuedotjs';
+ import SiWordpress from '~icons/simple-icons/wordpress';
import SiJavaOracle from '#lib/components/SiJavaOracle.svelte';
+ import type { Component } from 'svelte';
+ import type { SVGAttributes } from 'svelte/elements';
import {
fetchContributions,
level,
@@ -71,10 +74,10 @@
type Contributions
} from '#lib/scripts/heatmap.ts';
- // Any icon from https://simpleicons.org works: import it as Si + the slug in
- // PascalCase (e.g. 'nodedotjs' -> SiNodedotjs), and copy its brand hex from
+ // Any icon from https://simpleicons.org works: import it from
+ // '~icons/simple-icons/<slug>' (e.g. 'nodedotjs'), and copy its brand hex from
// the same page into `color`
- type Tool = { name: string; icon: typeof SiGit; color: string };
+ type Tool = { name: string; icon: Component<SVGAttributes<SVGSVGElement>>; color: string };
type Group = { name: string; tools: Tool[] };
// What this website itself is built with, shown above everything else
@@ -84,7 +87,7 @@
{ name: 'Svelte', icon: SiSvelte, color: '#FF3E00' },
{ name: 'TypeScript', icon: SiTypescript, color: '#3178C6' },
{ name: 'Vite', icon: SiVite, color: '#9135FF' },
- { name: 'Bun', icon: SiBun, color: '#FBF0DF' },
+ { name: 'Deno', icon: SiDeno, color: '#ffffff' },
{ name: 'Lucide', icon: SiLucide, color: '#F56565' },
{ name: 'Simple Icons', icon: SiSimpleicons, color: '#EEEEEE' },
{ name: 'Cloudflare Pages', icon: SiCloudflarepages, color: '#F38020' },
@@ -123,11 +126,19 @@
{ name: 'Bootstrap', icon: SiBootstrap, color: '#7952B3' }
]
},
+ {
+ name: 'Aritificial Intelligence',
+ tools: [
+ { name: 'Claude', icon: SiClaude, color: '#D97757' },
+ { name: 'ChatGPT', icon: SiOpenai, color: '#ffffff' }
+ ]
+ },
{
name: 'Backend & Data',
tools: [
{ name: 'Node.js', icon: SiNodedotjs, color: '#5FA04E' },
{ name: 'Bun', icon: SiBun, color: '#FBF0DF' },
+ { name: 'Deno', icon: SiDeno, color: '#ffffff' },
{ name: 'Express', icon: SiExpress, color: '#ffffff' },
{ name: 'FastAPI', icon: SiFastapi, color: '#009688' },
{ name: 'JWT', icon: SiJsonwebtokens, color: '#ffffff' },
@@ -219,7 +230,7 @@
<ul class="stack-grid">
{#each group.tools as tool (tool.name)}
<li class="stack-tool" style:--brand={tool.color}>
- <tool.icon class="stack-icon" title={tool.name} aria-hidden="true" />
+ <tool.icon class="stack-icon" aria-hidden="true" />
<span>{tool.name}</span>
</li>
{/each}
diff --git a/static/counter/0.png b/static/counter/0.png
new file mode 100644
index 0000000..64ad629
Binary files /dev/null and b/static/counter/0.png differ
diff --git a/static/counter/1.png b/static/counter/1.png
new file mode 100644
index 0000000..6cbc49a
Binary files /dev/null and b/static/counter/1.png differ
diff --git a/static/counter/2.png b/static/counter/2.png
new file mode 100644
index 0000000..a1fe3d3
Binary files /dev/null and b/static/counter/2.png differ
diff --git a/static/counter/3.png b/static/counter/3.png
new file mode 100644
index 0000000..9baee4c
Binary files /dev/null and b/static/counter/3.png differ
diff --git a/static/counter/4.png b/static/counter/4.png
new file mode 100644
index 0000000..5f975e2
Binary files /dev/null and b/static/counter/4.png differ
diff --git a/static/counter/5.png b/static/counter/5.png
new file mode 100644
index 0000000..75f7be1
Binary files /dev/null and b/static/counter/5.png differ
diff --git a/static/counter/6.png b/static/counter/6.png
new file mode 100644
index 0000000..1fd4025
Binary files /dev/null and b/static/counter/6.png differ
diff --git a/static/counter/7.png b/static/counter/7.png
new file mode 100644
index 0000000..aa15628
Binary files /dev/null and b/static/counter/7.png differ
diff --git a/static/counter/8.png b/static/counter/8.png
new file mode 100644
index 0000000..a6a3ad5
Binary files /dev/null and b/static/counter/8.png differ
diff --git a/static/counter/9.png b/static/counter/9.png
new file mode 100644
index 0000000..bbc72af
Binary files /dev/null and b/static/counter/9.png differ