diff --git a/JoyboyCommunity/src/assets/icons.tsx b/JoyboyCommunity/src/assets/icons.tsx index 39ebbaf5..3e915049 100644 --- a/JoyboyCommunity/src/assets/icons.tsx +++ b/JoyboyCommunity/src/assets/icons.tsx @@ -189,3 +189,39 @@ export const SendIcon: React.FC = (props) => { ); }; + +export const CopyIconStack: React.FC = (props: SvgProps) => ( + + + + +); + +export const InfoIcon = (props: SvgProps) => ( + + + +); + +export const LockIcon = (props: SvgProps) => ( + + + +); diff --git a/JoyboyCommunity/src/screens/Auth/CreateAccount.tsx b/JoyboyCommunity/src/screens/Auth/CreateAccount.tsx new file mode 100644 index 00000000..9292dbbf --- /dev/null +++ b/JoyboyCommunity/src/screens/Auth/CreateAccount.tsx @@ -0,0 +1,28 @@ +import {useState} from 'react'; + +import {Button, Input, TextButton} from '../../components'; +import {Auth} from '../../modules/auth'; + +export const CreateAccount: React.FC = () => { + const [username, setUsername] = useState(null); + const [displayname, setDisplayname] = useState(null); + + return ( + + + + + {username && displayname ? ( + + ) : ( + + )} + + Login + + ); +}; diff --git a/JoyboyCommunity/src/screens/Auth/Login.tsx b/JoyboyCommunity/src/screens/Auth/Login.tsx index ff21d14f..f1dd5fb1 100644 --- a/JoyboyCommunity/src/screens/Auth/Login.tsx +++ b/JoyboyCommunity/src/screens/Auth/Login.tsx @@ -1,12 +1,22 @@ +import {useState} from 'react'; + +import {LockIcon} from '../../assets/icons'; import {Button, Input, TextButton} from '../../components'; import {Auth} from '../../modules/auth'; export const Login: React.FC = () => { + const [loginKey, setLoginKey] = useState(null); + return ( - + } + placeholder="Enter your login key" + value={loginKey} + onChangeText={setLoginKey} + /> - diff --git a/JoyboyCommunity/src/screens/Auth/SaveKeys.tsx b/JoyboyCommunity/src/screens/Auth/SaveKeys.tsx new file mode 100644 index 00000000..8f287391 --- /dev/null +++ b/JoyboyCommunity/src/screens/Auth/SaveKeys.tsx @@ -0,0 +1,88 @@ +import {useState} from 'react'; +import {View} from 'react-native'; +import {TouchableOpacity} from 'react-native-gesture-handler'; + +import {CopyIconStack} from '../../assets/icons'; +import {InfoIcon} from '../../assets/icons'; +import {Button, Input} from '../../components'; +import {Auth} from '../../modules/auth'; +import {Text} from '../../modules/login/styled'; + +export const SaveKeys: React.FC = () => { + const [secretKey, setSecretKey] = useState('nsec65fefewfweehfhewbhvbwehbewhfbewbfhewbfhew'); + const [publicKey, setPublicKey] = useState('nsec65fefewfweehfhewbhvbwehbewhfbewbfhewbfhew'); + + const handleCopy = () => { + // Add your copy functionality here + console.log('Copied to clipboard:', 'Copied value'); + }; + + return ( + + + Your secret key + + + + + } + /> + + + Your public key + + + + + } + /> + + + + + Your private key is your password, if you lose this key, you will lose access to your + account. + + + + + + ); +};