blob: 10537d6bf1110d58a8e30e0396a26a49487398ce (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
<script>
import tol from './tol.json';
export default {
data() {
return {
tol: tol,
tiles: tol.map(e => ({name: e.name}))
}
}
}
</script>
<template>
<div class="bg-black flex flex-row flex-wrap justify-center">
<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%)'"
class="m-1 flex-auto transition-transform duration-300"/>
</div>
</template>
<style>
</style>
|