feat: add custom icons and type

This commit is contained in:
Bart van der Braak 2024-01-23 15:55:17 +01:00
parent 8d07d3ec7b
commit 3f44e70fa0
2 changed files with 25 additions and 19 deletions

View file

@ -7,10 +7,21 @@
import catImg from '$lib/assets/root-cat.jpg?enhanced';
import meImg from '$lib/assets/root-me.jpg?enhanced';
import { Cat, PersonStanding } from 'lucide-svelte';
const images = [
{ src: meImg, alt: 'Portrait of Bart van der Braak', style: 'object-[50%_10%]' },
{ src: catImg, alt: 'Noire yawning cat and a bottle of whiskey with glass', style: '' }
{
src: meImg,
alt: 'Portrait of Bart van der Braak',
style: 'object-[50%_10%]',
icon: PersonStanding
},
{
src: catImg,
alt: 'Noire yawning cat and a bottle of whiskey with glass',
style: '',
icon: Cat
}
];
$: title = $page.data.title;