Gate debug guide and disclaimer by cookie

This commit is contained in:
lucast committed 2026-09-30 05:18:25 +02:00
1 parent bfaa4acb25
commit e2c47e6d0f
2 files changed
+36

No files matched your search

+18
View File
@@ -1,5 +1,7 @@
<script setup lang="ts">
const { currentSong, isPlaying } = usePlayer()
const debugView = useCookie("DEBUG_VIEW")
const debugViewEnabled = computed(() => String(debugView.value ?? "") === "1")
useHead({
titleTemplate: (titleChunk) =>
@@ -15,8 +17,24 @@ useHead({
<NuxtPage />
<Player />
</NuxtLayout>
<div v-if="debugViewEnabled" class="debug-view-disclaimer">
Debug view: everything may not align correctly on different screens.
It's made for 1920x1080
</div>
</template>
<style lang="scss">
@use "styles/global.scss";
.debug-view-disclaimer {
position: fixed;
right: 1rem;
bottom: 1rem;
z-index: 200;
padding: 0.5rem 0.75rem;
border-radius: 0.25rem;
background: rgba(0, 0, 0, 0.7);
color: white;
font-size: 0.875rem;
}
</style>