feat: add preview and side margins

This commit is contained in:
Bart van der Braak 2024-01-22 09:46:02 +01:00
parent 791d2cae8f
commit b5b12ae5d5
2 changed files with 12 additions and 8 deletions

View file

@ -1,7 +1,11 @@
<script>
import { OgImage } from '$lib/components/site';
import meInline from '$lib/assets/og/me-inline.jpg';
import fs from 'fs';
import path from 'path';
const imageData = fs.readFileSync(path.join(process.cwd(), meInline), 'base64');
</script>
<div class="h-[630px] w-[1200px]">
<OgImage />
</div>
<section class="h-[630px] w-[1200px]">
<OgImage {imageData} />
</section>