Add Chat feature #1

Merged
june merged 9 commits from chat into main 2026-05-18 18:33:15 +02:00
4 changed files with 20 additions and 6 deletions
Showing only changes of commit 9c973c6b91 - Show all commits

small ui improvements

kritzl 2026-05-15 11:43:45 +02:00
Signed by: kritzl
SSH key fingerprint: SHA256:5BmINP9VjZWaUk5Z+2CTut1KFhwLtd0ZynMekKbtViM

View file

@ -14,16 +14,16 @@ export const ui = {
"unauthenticated.title": "Unauthenticated",
"unauthenticated.description": `To use the locks you have to log in with your CCCHH ID and have the "intern@" status.<br>
More infos: <a class='underline' href='https://wiki.hamburg.ccc.de/club:prozesse:aufnahmeprozesse-fuer-berechtigungsgruppen'>CCCHH Wiki</a>`,
"state.unlocked": "Open",
"state.locked": "Closed",
"state.unlocked": "Unlocked",
"state.locked": "Locked",
"state.unknown": "Unknown",
"state.unlocking": "Unlocking",
"state.locking": "Locking",
"lock.batteryLow": "Battery low",
"lock.unreachable": "Unreachable",
"lock.jammed": "Lock jammed",
"button.open": "Open",
"button.close": "Close",
"button.open": "Unlock",
"button.close": "Lock",
"login": "Login",
"loggedOut.title": "Signed out",
"loggedOut.description": `Your session has expired and you have been logged out.<br>

View file

@ -20,7 +20,7 @@ const t = useTranslations(lang)
</head>
<body class="min-h-screen">
<header class="p-2">
<div class="navbar bg-base-300 text-neutral-content flex w-full justify-between items-center rounded-xl px-4">
<div class="navbar bg-base-300 flex w-full justify-between items-center rounded-xl px-4">
<h1 class="text-xl font-semibold flex gap-1 items-center">
<DoorOpen/>

View file

@ -10,6 +10,7 @@ export async function getStaticPaths() {
return [
{params: {lang: "en"}},
{params: {lang: "de"}},
{params: {lang: "uwu"}},
]
}
@ -35,7 +36,7 @@ const t = useTranslations(lang)
description={t("loggedOut.description")}
>
<div class="flex justify-end">
<a href="/auth/login" class="btn btn-sm btn-warning">
<a href={`/auth/login?next=/${lang}`} class="btn btn-sm btn-warning">
<LogIn/>
{t("login")}
</a>

View file

@ -1,6 +1,19 @@
@import "tailwindcss";
@plugin "@tailwindcss/typography";
@plugin "daisyui" {
themes: light --default, dark --prefersdark;
}
.shimmer {
background-image: linear-gradient(60deg, transparent 30%, rgba(100%,100%,100%,0.2) 50%, transparent 70%);
background-size: 300%;
background-position-x: 100%;
animation: shimmer 2s infinite linear;
}
@keyframes shimmer {
to {
background-position-x: 0;
}
}