mirror of
https://github.com/bartvdbraak/hellob.art.git
synced 2025-06-29 07:49:10 +00:00
feat: add preview and side margins
This commit is contained in:
parent
791d2cae8f
commit
b5b12ae5d5
2 changed files with 12 additions and 8 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue