diff --git a/apps/web/assets/img/bare-icon.png b/apps/web/assets/img/bare-icon.png new file mode 100644 index 000000000..d64d8e0da Binary files /dev/null and b/apps/web/assets/img/bare-icon.png differ diff --git a/apps/web/src/components/HeaderRequest.tsx b/apps/web/src/components/HeaderRequest.tsx index 2bb146e09..eae0e32fe 100644 --- a/apps/web/src/components/HeaderRequest.tsx +++ b/apps/web/src/components/HeaderRequest.tsx @@ -1,9 +1,10 @@ import { Button, ChevronDown, Image, Stack, Text } from '@walless/gui'; -const iconSize = 45; +const iconWidth = 40; +const iconHeight = iconWidth / 2; export const HeaderRequest = () => { - const iconSrc = { uri: '/img/icon-lg.png' }; + const iconSrc = { uri: '/img/bare-icon.png' }; return ( { alignItems="center" backgroundColor="#121B22" paddingHorizontal={15} - paddingVertical={5} + paddingVertical={10} > - + Zbz thic... @@ -22,7 +23,7 @@ export const HeaderRequest = () => { - + ); }; diff --git a/apps/web/src/routing.tsx b/apps/web/src/routing.tsx index 4aaa3918c..e45487558 100644 --- a/apps/web/src/routing.tsx +++ b/apps/web/src/routing.tsx @@ -2,7 +2,9 @@ import { createHashRouter } from 'react-router-dom'; import DashboardScreen from './screens/Dashboard'; import ProfileScreen from './screens/Profile'; -import RequestConnectionScreen from './screens/Request/Connection'; +import RequestConnection from './screens/Request/Connection'; +import RequestLayout from './screens/Request/Layout'; +import RequestSignature from './screens/Request/Signature'; export const router = createHashRouter([ { @@ -15,6 +17,14 @@ export const router = createHashRouter([ }, { path: '/request-connection', - element: , + element: , + }, + { + path: '/request-signature', + element: , + }, + { + path: '/request-layout', + element: , }, ]); diff --git a/apps/web/src/screens/Request/Connection/index.tsx b/apps/web/src/screens/Request/Connection/index.tsx index 832991307..dd03efb1b 100644 --- a/apps/web/src/screens/Request/Connection/index.tsx +++ b/apps/web/src/screens/Request/Connection/index.tsx @@ -3,11 +3,9 @@ import { Image } from '@walless/gui'; import { HeaderRequest } from '../../../components/HeaderRequest'; import LightText from '../../../components/LightText'; +import { logoSize, logoUri } from '../shared'; -const logoSize = 60; -const logoUri = { uri: '/img/app_logo.png' }; - -const RequestConnectionScreen = () => { +const RequestConnection = () => { return ( @@ -32,7 +30,13 @@ const RequestConnectionScreen = () => { underrealm.stormgate.io - + Under Realm would like to connect with your Walless account to: @@ -52,7 +56,7 @@ const RequestConnectionScreen = () => { - + @@ -80,4 +84,4 @@ const RequestConnectionScreen = () => { ); }; -export default RequestConnectionScreen; +export default RequestConnection; diff --git a/apps/web/src/screens/Request/Layout/index.tsx b/apps/web/src/screens/Request/Layout/index.tsx new file mode 100644 index 000000000..17de727b2 --- /dev/null +++ b/apps/web/src/screens/Request/Layout/index.tsx @@ -0,0 +1,94 @@ +import { AlertCircle, Anchor, Button, Image, Stack, Text } from '@walless/gui'; + +import { HeaderRequest } from '../../../components/HeaderRequest'; +import LightText from '../../../components/LightText'; +import { logoSize, logoUri } from '../shared'; + +export const RequestLayout = () => { + return ( + + + + + + + Layout request + + + + Under Realm + + underrealm.stormgate.io + + + + + Under Realm would like to add its custom layout appearance to your + Walless account. + + + + Learn more + + + + + + + + + + This action does not make any fund transfer. This site cannot + transfer fund without your permission. + + + + + + Only connect to websites you trust! + + + + + + + + + + + ); +}; + +export default RequestLayout; diff --git a/apps/web/src/screens/Request/Signature/index.tsx b/apps/web/src/screens/Request/Signature/index.tsx new file mode 100644 index 000000000..6b17592fb --- /dev/null +++ b/apps/web/src/screens/Request/Signature/index.tsx @@ -0,0 +1,73 @@ +import { AlertCircle, Button, Image, Stack, Text } from '@walless/gui'; + +import { HeaderRequest } from '../../../components/HeaderRequest'; +import LightText from '../../../components/LightText'; +import { logoSize, logoUri } from '../shared'; + +export const RequestSignature = () => { + return ( + + + + + + + Your signature has been requested + + + + Under Realm + + underrealm.stormgate.io + + + + + Message: + + + + [Custom message] Sign this message to prove that you have accessed + to this wallet account and we’ll log you in. This won’t cost you + anything! [Seal code: r3092850297] + + + + + + Only connect to websites you trust! + + + + + + + ); +}; + +export default RequestSignature; diff --git a/apps/web/src/screens/Request/shared.ts b/apps/web/src/screens/Request/shared.ts new file mode 100644 index 000000000..62ad1e79e --- /dev/null +++ b/apps/web/src/screens/Request/shared.ts @@ -0,0 +1,2 @@ +export const logoSize = 60; +export const logoUri = { uri: '/img/app_logo.png' };