From 407b19321d8126365be3c99d6a97da8f2c396bb9 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Fri, 16 Feb 2024 20:04:25 -0600 Subject: [PATCH] NostrSigninModal: add EmojiGraphic, use an emoji on each step --- .../components/emoji-graphic.tsx | 20 +++++++++++++++++++ .../steps/extension-step.tsx | 4 ++++ .../steps/identity-step.tsx | 3 +++ .../nostr-signin-modal/steps/key-step.tsx | 3 +++ 4 files changed, 30 insertions(+) create mode 100644 src/features/ui/components/modals/nostr-signin-modal/components/emoji-graphic.tsx diff --git a/src/features/ui/components/modals/nostr-signin-modal/components/emoji-graphic.tsx b/src/features/ui/components/modals/nostr-signin-modal/components/emoji-graphic.tsx new file mode 100644 index 0000000000..5d340f8a54 --- /dev/null +++ b/src/features/ui/components/modals/nostr-signin-modal/components/emoji-graphic.tsx @@ -0,0 +1,20 @@ +import React from 'react'; + +import Emoji from 'soapbox/components/ui/emoji/emoji'; + +interface IEmojiGraphic { + emoji: string; +} + +/** Large emoji with a background for display purposes (eg breaking up a page). */ +const EmojiGraphic: React.FC = ({ emoji }) => { + return ( +
+
+ +
+
+ ); +}; + +export default EmojiGraphic; \ No newline at end of file diff --git a/src/features/ui/components/modals/nostr-signin-modal/steps/extension-step.tsx b/src/features/ui/components/modals/nostr-signin-modal/steps/extension-step.tsx index 58c079f3ef..b7fa74ae4d 100644 --- a/src/features/ui/components/modals/nostr-signin-modal/steps/extension-step.tsx +++ b/src/features/ui/components/modals/nostr-signin-modal/steps/extension-step.tsx @@ -6,6 +6,8 @@ import Button from 'soapbox/components/ui/button/button'; import Stack from 'soapbox/components/ui/stack/stack'; import { useAppDispatch } from 'soapbox/hooks'; +import EmojiGraphic from '../components/emoji-graphic'; + interface IExtensionStep { setStep: (step: number) => void; } @@ -18,6 +20,8 @@ const ExtensionStep: React.FC = ({ setStep }) => { return ( + + diff --git a/src/features/ui/components/modals/nostr-signin-modal/steps/identity-step.tsx b/src/features/ui/components/modals/nostr-signin-modal/steps/identity-step.tsx index 373b8cfcfc..a0a5b67297 100644 --- a/src/features/ui/components/modals/nostr-signin-modal/steps/identity-step.tsx +++ b/src/features/ui/components/modals/nostr-signin-modal/steps/identity-step.tsx @@ -6,6 +6,7 @@ import HStack from 'soapbox/components/ui/hstack/hstack'; import Input from 'soapbox/components/ui/input/input'; import Stack from 'soapbox/components/ui/stack/stack'; +import EmojiGraphic from '../components/emoji-graphic'; import NostrExtensionIndicator from '../nostr-extension-indicator'; interface IIdentityStep { @@ -19,6 +20,8 @@ const IdentityStep: React.FC = ({ username, setUsername, setStep + + = ({ setStep }) => { + +