formatting fixes

This commit is contained in:
Ben Parsons 2020-08-20 00:05:29 +10:00
parent 871b855e41
commit b3008d9098
3 changed files with 16 additions and 9 deletions

View File

@ -1,5 +1,5 @@
<script> <script>
export let title = "Quartznet" export let title = "Quartznet";
</script> </script>
<style> <style>

View File

@ -1,6 +1,6 @@
<script> <script>
export let name; export let name;
export let thumb = "https://placehold.it/600x300"; export let src = "https://placehold.it/600x300";
export let description; export let description;
export let imgClass = "img-fluid mb-3 mb-md-0"; export let imgClass = "img-fluid mb-3 mb-md-0";
@ -67,7 +67,7 @@
<div class="row"> <div class="row">
<div class="thumb"> <div class="thumb">
<a href="{name}"> <a href="{name}">
<img class={imgClass} src={thumb} alt={name}> <img class={imgClass} {src} alt={name}>
</a> </a>
</div> </div>
<div class="blurb"> <div class="blurb">

View File

@ -5,12 +5,19 @@
export let name; export let name;
let games = [{ let games = [
name: "Sirius", {
thumb: "https://placehold.it/600x300", name: "Sirius",
description: "A 2D sci-fi game about wannabe space captain trying to find their path.", thumb: "https://placehold.it/600x300",
imgClass: "img-fluid mb-3 mb-md-0" description: "A 2D sci-fi game about wannabe space captain trying to find their path.",
}, {name: "Quartz", thumb: "https://placehold.it/600x300", description: ""}] imgClass: "img-fluid mb-3 mb-md-0"
},
{
name: "Quartz",
thumb: "https://placehold.it/600x300",
description: ""
}
]
onMount(async () => { onMount(async () => {