From 7a12c7ffa50d67f550592bf096e6ab4a42732983 Mon Sep 17 00:00:00 2001
From: Terry Truong <terry06890@gmail.com>
Date: Wed, 2 Mar 2022 15:05:19 +1100
Subject: Add test data and images

---
 src/App.vue | 25 ++++++++++++++++++++-----
 1 file changed, 20 insertions(+), 5 deletions(-)

(limited to 'src/App.vue')

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>
-- 
cgit v1.2.3

