Small fixes
This commit is contained in:
@@ -1,5 +1,3 @@
|
|||||||
using Microsoft.Data.Sqlite;
|
|
||||||
|
|
||||||
public static class SystemEndpoints
|
public static class SystemEndpoints
|
||||||
{
|
{
|
||||||
public static void MapSystemEndpoints(WebApplication app)
|
public static void MapSystemEndpoints(WebApplication app)
|
||||||
|
|||||||
@@ -1,15 +0,0 @@
|
|||||||
import { createSignal } from "solid-js";
|
|
||||||
import { t } from "~/i18n";
|
|
||||||
|
|
||||||
export default function Counter() {
|
|
||||||
const [count, setCount] = createSignal(0);
|
|
||||||
|
|
||||||
return (
|
|
||||||
<button
|
|
||||||
class="w-52 rounded-full bg-[#F5D1A9] border-2 border-[#C99763] text-[#4C250E] focus:border-[#A56C38] hover:bg-[#EED5B8] transition-colors py-4"
|
|
||||||
onclick={() => setCount(prev => prev + 1)}
|
|
||||||
>
|
|
||||||
{t("counter.clicks")}: {count()}
|
|
||||||
</button>
|
|
||||||
);
|
|
||||||
}
|
|
||||||
@@ -4,7 +4,7 @@ import { useAuth } from "~/components/Context";
|
|||||||
import { language, setLanguage, t } from "~/i18n";
|
import { language, setLanguage, t } from "~/i18n";
|
||||||
|
|
||||||
export default function Nav() {
|
export default function Nav() {
|
||||||
const { signedIn, logout } = useAuth();
|
const { session, signedIn, logout } = useAuth();
|
||||||
const isHome = useMatch(() => "/");
|
const isHome = useMatch(() => "/");
|
||||||
const isAbout = useMatch(() => "/about");
|
const isAbout = useMatch(() => "/about");
|
||||||
|
|
||||||
@@ -25,6 +25,7 @@ export default function Nav() {
|
|||||||
{t("nav.about")}
|
{t("nav.about")}
|
||||||
</a>
|
</a>
|
||||||
<div class="ml-auto flex items-center gap-2">
|
<div class="ml-auto flex items-center gap-2">
|
||||||
|
<b class="font-large text-[#F5D1A9]">{session()?.email}</b>
|
||||||
<div class="flex items-center gap-1 rounded-md border border-[#8E4F24] bg-[#8E4F24]/45 p-1">
|
<div class="flex items-center gap-1 rounded-md border border-[#8E4F24] bg-[#8E4F24]/45 p-1">
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
|
|||||||
@@ -10,7 +10,6 @@ export default function Home() {
|
|||||||
<Title>{t("home.title")}</Title>
|
<Title>{t("home.title")}</Title>
|
||||||
<h1 class="text-center">{t("home.heading")}</h1>
|
<h1 class="text-center">{t("home.heading")}</h1>
|
||||||
<img src="/favicon.svg" alt={t("home.logoAlt")} class="w-28" />
|
<img src="/favicon.svg" alt={t("home.logoAlt")} class="w-28" />
|
||||||
{t("home.signedInAs")} <b class="font-medium">{session()?.email}</b>
|
|
||||||
</main>
|
</main>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user