Update thumbnail component

- Pass in img size to help with load times and reduce layout shifts.
- Rename gameProjectThumb.svelte to thumbnail.svelte.
This commit is contained in:
2021-02-21 10:37:03 +00:00
parent 1bc0132a9c
commit 98c8ce2180
2 changed files with 9 additions and 7 deletions

View File

@ -1,20 +1,21 @@
<script>
import {onMount} from 'svelte';
import Thumb from '../components/gameProjectThumb.svelte'
import Thumb from '../components/thumbnail.svelte'
import Banner from '../components/banner.svelte'
let games = [
{
name: "Sirius",
link: "./sirius",
thumb: "https://placehold.it/600x300",
img: "https://placehold.it/600x300",
size: { width: 600, height: 300 },
description: "A 2D game about a wannabe space captain exploring the galaxy.",
imgClass: "img-fluid mb-3 mb-md-0"
},
{
name: "Quartz",
link: "./sirius",
thumb: "https://placehold.it/600x300",
img: "https://placehold.it/600x300",
size: { width: 600, height: 300 },
description: ""
}
]