mirror of
https://github.com/bartvdbraak/hellob.art.git
synced 2025-06-29 07:49:10 +00:00
refacotr: move fs to server-side code
This commit is contained in:
parent
a6c7c09ede
commit
d94e6d1fc3
2 changed files with 7 additions and 5 deletions
|
@ -1,13 +1,10 @@
|
|||
<script lang="ts">
|
||||
import fs from 'fs';
|
||||
import { Icons } from '.';
|
||||
|
||||
export let title: string = 'I made this for you';
|
||||
export let subTitle: string =
|
||||
'Featuring current work and studies in a SvelteKit-based portfolio.';
|
||||
|
||||
const buffer = fs.readFileSync('src/lib/assets/og/me.jpg');
|
||||
const imageData = buffer.toString('base64');
|
||||
export let imageData: string = '';
|
||||
</script>
|
||||
|
||||
<div class="flex h-full w-full items-center justify-center bg-black">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue