vuetify-rework (#2)

See #2.

Co-authored-by: vikingowl <christian@nachtigall.dev>
Reviewed-on: #2
Reviewed-by: anonfunc <539@idlegandalf.com>
Co-authored-by: vikingowl <vikingowl@noreply.somegit.dev>
Co-committed-by: vikingowl <vikingowl@noreply.somegit.dev>
This commit was merged in pull request #2.
This commit is contained in:
2024-01-24 16:11:55 +01:00
committed by anonfunc
parent 92d9d478b5
commit db80961ea4
28 changed files with 2135 additions and 430 deletions

31
frontend/src/App.vue Normal file
View File

@@ -0,0 +1,31 @@
<template>
<v-app>
<v-sheet :style="`width: ${contentWidth}px; margin-left: ${offsetLeft}px;`" color="transparent">
<main-nav :style="`padding-left: ${offsetLeft}px; padding-right: ${offsetLeft}px;`" />
<v-main>
<build-server-stats />
<currently-building />
<packages />
</v-main>
</v-sheet>
</v-app>
</template>
<script lang="ts" setup>
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
})
</script>