diff --git a/apps/desktop2/public/lock-screen.jpg b/apps/desktop2/public/lock-screen.jpg new file mode 100644 index 00000000..d65317bd Binary files /dev/null and b/apps/desktop2/public/lock-screen.jpg differ diff --git a/apps/desktop2/public/lock-screen@2x.jpg b/apps/desktop2/public/lock-screen@2x.jpg new file mode 100644 index 00000000..922f81ad Binary files /dev/null and b/apps/desktop2/public/lock-screen@2x.jpg differ diff --git a/apps/desktop2/src/routes/index.tsx b/apps/desktop2/src/routes/index.tsx index b9520020..039b4e91 100644 --- a/apps/desktop2/src/routes/index.tsx +++ b/apps/desktop2/src/routes/index.tsx @@ -1,6 +1,8 @@ import { useArk } from "@lume/ark"; +import { LoaderIcon, PlusIcon } from "@lume/icons"; import { User } from "@lume/ui"; import { createFileRoute, redirect, useNavigate } from "@tanstack/react-router"; +import { useState } from "react"; export const Route = createFileRoute("/")({ beforeLoad: async ({ location, context }) => { @@ -39,7 +41,10 @@ function Screen() { const ark = useArk(); const navigate = useNavigate(); + const [loading, setLoading] = useState(false); + const select = async (npub: string) => { + setLoading(true); const loadAccount = await ark.load_selected_account(npub); if (loadAccount) { navigate({ @@ -49,23 +54,65 @@ function Screen() { } }; + const weekday = new Date().toLocaleString("default", { weekday: "long" }); + const day = new Date().getDate(); + const month = new Date() + .toLocaleString("default", { month: "long" }) + .toString(); + return ( -
-
- {ark.accounts.map((account) => ( - - ))} +
+
+
+

{`${weekday}, ${month} ${day}`}

+

Welcome back!

+
+
+ {loading ? ( + + ) : ( + <> + {ark.accounts.map((account) => ( + + ))} + + + )} +
+
+
+
+ Lock Screen Background + + Design by NoGood +
);