From 4a469f8f6fab97d591929933b8cc73085955ab25 Mon Sep 17 00:00:00 2001
From: Terry Truong <terry06890@gmail.com>
Date: Sun, 27 Mar 2022 08:30:45 +1100
Subject: Move svg details to index.html

---
 src/components/TileTree.vue | 45 ++++++++++-----------------------------------
 1 file changed, 10 insertions(+), 35 deletions(-)

(limited to 'src/components/TileTree.vue')

diff --git a/src/components/TileTree.vue b/src/components/TileTree.vue
index b6daadf..9f64252 100644
--- a/src/components/TileTree.vue
+++ b/src/components/TileTree.vue
@@ -479,48 +479,23 @@ export default defineComponent({
 			<div v-else class="absolute bottom-0 right-0 w-[100px] h-[100px]">
 				<div class="absolute bottom-[-50px] right-[-50px] w-[100px] h-[100px] visible -rotate-45
 					bg-black text-white hover:cursor-pointer" @click="onSettingsIconClick">
-					<svg class="w-6 h-6 mx-auto mt-2"
-						xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none"
-						stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
-						<circle cx="12" cy="12" r="3"/>
-						<path d="M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0
-							0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2
-							2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0
-							0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65
-							1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1
-							2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2
-							0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65
-							1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0
-							1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0
-							2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2
-							2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z"/>
-					</svg>
+					<svg class="w-6 h-6 mx-auto mt-2"><use href="#svg-settings"/></svg>
 				</div>
 			</div>
 		</transition>
 	</div>
 	<!-- Icons -->
-	<svg @click="onSearchIconClick"
-		class="absolute top-[6px] right-[54px] w-[18px] h-[18px] text-white/40 hover:text-white hover:cursor-pointer"
-		xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none"
-		stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
-	  <circle cx="11" cy="11" r="8"/>
-	  <line x1="21" y1="21" x2="16.65" y2="16.65"/>
+	<svg class="absolute top-[6px] right-[54px] w-[18px] h-[18px] text-white/40 hover:text-white hover:cursor-pointer"
+		@click="onSearchIconClick">
+		<use href="#svg-search"/>
 	</svg>
-	<svg @click="onPlayIconClick"
-		class="absolute top-[6px] right-[30px] w-[18px] h-[18px] text-white/40 hover:text-white hover:cursor-pointer"
-		xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none"
-		stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
-		<circle cx="12" cy="12" r="10"/>
-		<polygon points="10 8 16 12 10 16 10 8"/>
+	<svg class="absolute top-[6px] right-[30px] w-[18px] h-[18px] text-white/40 hover:text-white hover:cursor-pointer"
+		@click="onPlayIconClick">
+		<use href="#svg-play"/>
 	</svg>
-	<svg @click="onHelpIconClick"
-		class="absolute top-[6px] right-[6px] w-[18px] h-[18px] text-white/40 hover:text-white hover:cursor-pointer"
-		xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none"
-		stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
-		<circle cx="12" cy="12" r="10"/>
-		<path d="M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"/>
-		<line x1="12" y1="17" x2="12.01" y2="17"/>
+	<svg class="absolute top-[6px] right-[6px] w-[18px] h-[18px] text-white/40 hover:text-white hover:cursor-pointer"
+		@click="onHelpIconClick">
+		<use href="#svg-help"/>
 	</svg>
 	<!-- Modals -->
 	<transition name="fade">
-- 
cgit v1.2.3

