diff --git a/frontend/src/components/login/WelcomeModal.tsx b/frontend/src/components/login/WelcomeModal.tsx
new file mode 100644
index 0000000..47c4369
--- /dev/null
+++ b/frontend/src/components/login/WelcomeModal.tsx
@@ -0,0 +1,85 @@
+import {
+ HandPalmIcon,
+ ShieldCheckIcon,
+ WarningIcon,
+} from "@phosphor-icons/react";
+import Logo from "../Logo.tsx";
+import { Modal } from "../ui/Modal";
+import Saajan from "../ui/Saajan.tsx";
+
+export default function WelcomeModal({
+ setShowWelcome,
+}: {
+ setShowWelcome: (show: boolean) => void;
+}) {
+ return (
+ <>
+
+ Before we begin, let me make a small promise.
+
+ If you ever happen to forget your password, your letters are lost
+ to time, forever.
+
+ Welcome to
+
+
+ Everything you write here is sealed with your password,{" "}
+ cryptographically
+ , before it leaves your hands.
+
A fancy way of saying, I couldn't if I tried.
+
+
+
+
+ I highly, highly recommend storing this password in your{" "}
+
+ password manager
+ {" "}
+ or somewhere safe to remember it.
+
+
- {String(log)}
-
-
+ {String(log)}
+
+
- Before we begin, let me make a small promise.
-
- If you ever happen to forget your password, your letters are lost
- to time, forever.
-
-
- I highly, highly recommend storing this password in your{" "}
-
- password manager
- {" "}
- or somewhere safe to remember it.
-
-
diff --git a/frontend/src/utils/keystore.ts b/frontend/src/utils/keystore.ts index 30b3b46..3d6189d 100644 --- a/frontend/src/utils/keystore.ts +++ b/frontend/src/utils/keystore.ts @@ -1,6 +1,6 @@ import { openDB } from "idb"; -// we use this to store master key in browser - secure and good UX +// we use indexedDB to securely store master key for easier access across tabs (better UX than having to store in session) const db = openDB("piku-keys", 1, { upgrade(db) { db.createObjectStore("master-key");