Skip to content

Commit eb47610

Browse files
committed
chore: switch to Satori
1 parent ec18615 commit eb47610

6 files changed

Lines changed: 293 additions & 125 deletions

File tree

apps/frontend/package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"@regle/core": "^1.19.13",
1818
"@regle/nuxt": "^1.19.13",
1919
"@regle/rules": "^1.19.13",
20-
"@takumi-rs/core": "^0.69.2",
20+
"@resvg/resvg-js": "^2.6.2",
2121
"@vueuse/integrations": "^14.2.1",
2222
"arktype": "^2.1.29",
2323
"dayjs": "^1.11.19",
@@ -30,13 +30,14 @@
3030
},
3131
"devDependencies": {
3232
"@iconify-json/tabler": "^1.2.27",
33-
"@takumi-rs/wasm": "^0.69.2",
33+
"@resvg/resvg-wasm": "^2.6.2",
3434
"@unocss/nuxt": "^66.6.0",
3535
"@vueuse/core": "^14.2.1",
3636
"@vueuse/nuxt": "^14.2.1",
37-
"nuxt-og-image": "6.0.0-beta.41",
37+
"nuxt-og-image": "6.0.0-beta.42",
3838
"oxlint": "^1.50.0",
3939
"oxlint-tsgolint": "^0.14.2",
40+
"satori": "^0.19.2",
4041
"unocss": "^66.6.0",
4142
"wrangler": "^4.69.0"
4243
}

apps/frontend/src/app/components/OgImage/Basic.takumi.vue renamed to apps/frontend/src/app/components/OgImage/Basic.satori.vue

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,12 @@ defineProps<Props>();
99

1010
<template>
1111
<div class="relative h-full w-full overflow-hidden">
12-
<img src="/og_template.png" alt="og" class="absolute z-1" width="1200px" height="630px" />
12+
<img src="/og_template.png" alt="og" class="absolute" width="1200px" height="630px" />
1313

14-
<div class="relative flex flex-col justify-between my-12 mx-20 z-10">
15-
<h1
16-
class="text-7xl text-[#EDEDED]"
17-
style="font-family: 'Orbitron', sans-serif">
18-
Solitar
19-
</h1>
14+
<div class="relative my-12 mx-20">
15+
<h1 class="text-7xl text-[#EDEDED]" style="font-family: Orbitron">Solitar</h1>
2016

21-
<div class="flex flex-col" style="font-family: 'Geist Mono', monospace">
17+
<div class="mt-58" style="font-family: Geist Mono">
2218
<h2 class="text-5xl text-[#EDEDED]" v-if="subtitle">{{ subtitle }}</h2>
2319
<h3 v-if="description" class="text-[#A0A0A0] text-3xl">
2420
{{ description }}

apps/frontend/src/app/pages/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script setup lang="ts">
2-
defineOgImage("Basic.takumi");
2+
defineOgImage("Basic.satori");
33
</script>
44

55
<template>

apps/frontend/src/app/pages/qr.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import { useQRCode } from "@vueuse/integrations/useQRCode";
33
import { type } from "arktype";
44
5-
defineOgImage("Basic.takumi", { subtitle: "./qr", description: "Generate QR code for url" });
5+
defineOgImage("Basic.satori", { subtitle: "./qr", description: "Generate QR code for url" });
66
77
const permission = usePermission("clipboard-read");
88
const inputUrl = ref();

apps/frontend/src/app/pages/settings.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script setup lang="ts">
2-
defineOgImage("Basic.takumi", {
2+
defineOgImage("Basic.satori", {
33
subtitle: "./settings",
44
description: "customize your solitar experience",
55
});

0 commit comments

Comments
 (0)