aboutsummaryrefslogtreecommitdiff
path: root/src/App.vue
diff options
context:
space:
mode:
Diffstat (limited to 'src/App.vue')
-rw-r--r--src/App.vue25
1 files changed, 20 insertions, 5 deletions
diff --git a/src/App.vue b/src/App.vue
index a8c04d7..0456388 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -1,20 +1,35 @@
<script>
+import tol from './tol.json';
export default {
data() {
return {
- greeting: 'Hello World!'
+ tol: tol,
+ tiles: tol.map(e => ({name: e.name}))
}
}
}
</script>
<template>
- <p class="greeting">{{ greeting }}</p>
+ <div id="grid">
+ <img v-for="tile in tiles" :src="'/src/assets/' + tile.name + '.jpg'" :alt="tile.name" :id="tile.name"
+ @click="$event.target.style.transform = 'translate(20%,30%)'"/>
+ </div>
</template>
<style>
-.greeting {
- color: green;
- font-weight: bold;
+#app {
+ background-color: black;
+}
+#grid {
+ display: flex;
+ flex-flow: row wrap;
+ justify-content: center;
+}
+img {
+ margin: 5px;
+ flex: auto;
+ transition: transform 1s;
+ max-width: 100%;
}
</style>