blob: 6c2e619bde15a3ea5d2e2490bd80e29028ffaa38 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
<script>
import tol from './tol.json';
export default {
data() {
return {
tol: tol,
tiles: tol.map(e => ({name: e.name}))
}
}
}
</script>
<template>
<div class="h-[100vh] bg-black">
<div class="flex flex-row flex-wrap gap-1 p-1">
<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="max-w-full transition-transform duration-300"/>
</div>
<!--
<div class="flex flex-row gap-1 p-1">
<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="w-full transition-transform duration-300"/>
</div>
-->
<!--
<div class="flex flex-col max-h-full gap-1 p-1">
<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="h-full mr-auto transition-transform duration-300"/>
</div>
-->
</div>
</template>
<style>
</style>
|