small ui improvements
This commit is contained in:
parent
2ad2f3db4a
commit
281682531a
4 changed files with 20 additions and 6 deletions
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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/>
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue