aboutsummaryrefslogtreecommitdiff
path: root/src/App.vue
diff options
context:
space:
mode:
authorTerry Truong <terry06890@gmail.com>2022-03-02 16:49:14 +1100
committerTerry Truong <terry06890@gmail.com>2022-03-02 16:49:14 +1100
commit5a9d29a4ad6fc7a6ccc6a75fa361a20048a77552 (patch)
treeedde151a1b355702e42e2e2a4e198eb610066258 /src/App.vue
parent7a12c7ffa50d67f550592bf096e6ab4a42732983 (diff)
Install tailwindcss
Diffstat (limited to 'src/App.vue')
-rw-r--r--src/App.vue19
1 files changed, 3 insertions, 16 deletions
diff --git a/src/App.vue b/src/App.vue
index 0456388..10537d6 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -11,25 +11,12 @@ export default {
</script>
<template>
- <div id="grid">
+ <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%)'"/>
+ @click="$event.target.style.transform = 'translate(20%,30%)'"
+ class="m-1 flex-auto transition-transform duration-300"/>
</div>
</template>
<style>
-#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>