2 Commits

Author SHA1 Message Date
aac191521f 📱 Fixes responsive index
All checks were successful
Gitea Build Action / build-go (push) Successful in 1m57s
Gitea Build Action / build-nuxt (push) Successful in 11m26s
2025-07-02 10:34:13 +02:00
96fe2d04cb 💄 Adds favicon
All checks were successful
Gitea Build Action / build-go (push) Successful in 3m13s
Gitea Build Action / build-nuxt (push) Successful in 12m30s
2025-07-02 10:10:06 +02:00
2 changed files with 5 additions and 4 deletions

View File

@@ -11,5 +11,6 @@
<script lang="ts" setup> <script lang="ts" setup>
useHead({ useHead({
title: "Door alarm", title: "Door alarm",
link: [{ rel: "icon", type: "image/x-icon", href: "/favicon.ico" }],
}) })
</script> </script>

View File

@@ -1,6 +1,6 @@
<template> <template>
<main <main
class="flex items-center justify-center min-w-screen min-h-screen gap-4 flex-wrap" class="flex items-center justify-center min-w-screen min-h-screen gap-4 flex-wrap flex-col md:flex-row"
> >
<div class="flex items-center justify-center flex-col gap-y-2 w-32"> <div class="flex items-center justify-center flex-col gap-y-2 w-32">
<div <div
@@ -17,7 +17,7 @@
</div> </div>
<p <p
:class="`flex items-center justify-center text-${opened ? (locked ? 'error' : 'secondary') : 'primary'} text-xl w-full h-10`" :class="`flex items-center justify-center text-${opened ? (locked ? 'error' : 'secondary') : 'primary'} text-xl w-full h-10 border-${opened ? (locked ? 'error' : 'secondary') : 'primary'} border-solid border-2 rounded-md`"
> >
{{ opened ? "Opened" : "Closed" }} {{ opened ? "Opened" : "Closed" }}
</p> </p>
@@ -90,8 +90,8 @@ import axios from "axios"
const token = useToken() const token = useToken()
const opened = ref(true) const opened = ref(false)
const locked = ref(true) const locked = ref(false)
const alerts = ref(false) const alerts = ref(false)
const toast = useToast() const toast = useToast()