From 4f165b9767c2ea9c8a35f07df4ad03cf38fcc111 Mon Sep 17 00:00:00 2001
From: Giovanni Harting <539@idlegandalf.com>
Date: Thu, 25 Jan 2024 17:06:37 +0100
Subject: [PATCH] fixed mobile page design
---
frontend/src/App.vue | 14 ++---
frontend/src/components/CurrentlyBuilding.vue | 51 ++++++++++---------
frontend/src/components/MainNav.vue | 10 ++--
3 files changed, 37 insertions(+), 38 deletions(-)
diff --git a/frontend/src/App.vue b/frontend/src/App.vue
index 64697bb..f327e89 100644
--- a/frontend/src/App.vue
+++ b/frontend/src/App.vue
@@ -1,7 +1,7 @@
-
-
+
+
@@ -10,7 +10,7 @@
-
+
@@ -18,14 +18,6 @@
import MainNav from '@/components/MainNav.vue'
import BuildServerStats from '@/components/BuildServerStats.vue'
import Packages from '@/components/Packages.vue'
-import { onMounted, ref } from 'vue'
import CurrentlyBuilding from '@/components/CurrentlyBuilding.vue'
-const contentWidth = ref(1440)
-const offsetLeft = ref(0)
-
-onMounted(() => {
- const innerWidth = window.innerWidth
- offsetLeft.value = (innerWidth - contentWidth.value) / 2
-})
diff --git a/frontend/src/components/CurrentlyBuilding.vue b/frontend/src/components/CurrentlyBuilding.vue
index 75e6121..08a4677 100644
--- a/frontend/src/components/CurrentlyBuilding.vue
+++ b/frontend/src/components/CurrentlyBuilding.vue
@@ -5,35 +5,40 @@
rounded
style="border-radius: 10px; border: 2px solid grey"
variant="elevated">
-
-
-
- Building
-
-
-
- Idle
-
-
-
-
+
+
+
+
+
+ Building
+
+
+
+
+
+ Idle
+
+
+
+
+
+
Last updated
{{
lastUpdatedSeconds > 59
? rtf.format(-Math.floor(lastUpdatedSeconds / 60), 'minutes')
: rtf.format(-lastUpdatedSeconds, 'seconds')
}}
-
-
+
+
diff --git a/frontend/src/components/MainNav.vue b/frontend/src/components/MainNav.vue
index 5010afc..275baa1 100644
--- a/frontend/src/components/MainNav.vue
+++ b/frontend/src/components/MainNav.vue
@@ -4,7 +4,9 @@ import BuildStats from '@/components/BuildStats.vue'
-
+
+
+
ALHP Status
-
+
-
-
+
+