From 75d883933063753db8268abfb338e263b8dae307 Mon Sep 17 00:00:00 2001 From: daniyal Date: Thu, 15 Aug 2024 19:31:39 +0500 Subject: [PATCH] feat: add register popup --- src/layout/header.tsx | 165 +++++++++++++++++++++++++++++++++++++++--- 1 file changed, 154 insertions(+), 11 deletions(-) diff --git a/src/layout/header.tsx b/src/layout/header.tsx index 1b20fa3..324ca2e 100644 --- a/src/layout/header.tsx +++ b/src/layout/header.tsx @@ -134,17 +134,20 @@ export const Header = () => { Settings {!userState.auth && ( - - - Login - + <> + + + + Login + + )} {userState.auth && userState.user && (
@@ -420,3 +423,143 @@ const TipButtonWithDialog = React.memo(() => { ) }) + +const RegisterButtonWithDialog = () => { + const [showPopUp, setShowPopUp] = useState(false) + + return ( + <> + setShowPopUp(true)} + > + Register + + {showPopUp && ( +
+
+
+
+
+
+

Create an account via

+
+
setShowPopUp(false)} + > + + + +
+
+
+
+
+ +

+ Once you create your "account" on any of these, come + back and click login, then sign-in with extension. +

+
+ + Alby Browser Extension + + + Keys.Band Browser Extension + +
+

+ Q: Why can't I create an account normally? +
+ A: DEG Mods can't ban you or delete your content (we can + only hide you), and the consequence of that is this kind of + registration/login system. +

+
+
+

or

+
+
+
+
+ +

+ Once you create your "account" on any of these, come + back and click login, then sign-in with extension. +

+
+ + Nostore Browser Extension + +
+
+
+

or

+
+
+
+
+ +

+ Once you create your "account" on any of these, come + back and click login, then Advanced login, then sign-in + with bunker URL. +

+
+ + Amber + +
+
+
+
+
+
+ )} + + ) +}