From 85545af678e3f95aed4925ae95fd4a000cacdfe6 Mon Sep 17 00:00:00 2001
From: Nikita Krupin <krupin.nikita0110@gmail.com>
Date: Fri, 3 Dec 2021 22:00:20 -0500
Subject: removed faq panel jank & adjusted its width, added subtle route
 transition effect

---
 Website/pages/index.vue | 7 +++++++
 1 file changed, 7 insertions(+)

(limited to 'Website/pages/index.vue')

diff --git a/Website/pages/index.vue b/Website/pages/index.vue
index 514d7fd..a1aaaca 100644
--- a/Website/pages/index.vue
+++ b/Website/pages/index.vue
@@ -56,6 +56,13 @@
 
 <script>
 export default {
+  transition(to, from) {
+    if (!from) return 'swoop-in'
+    let routes = ['index', 'install', 'faq', 'donate', 'links']
+    if (routes.indexOf(to.name) < 0) return 'swoop-out'
+    if (routes.indexOf(from.name) < 0) return 'swoop-in'
+    return routes.indexOf(to.name) > routes.indexOf(from.name) ? 'swoop-left' : 'swoop-right'
+  },
   data() {
     return {
       installLink: "/install",
-- 
cgit v1.2.3

