diff --git a/frontend/src/basic/RobotPage/Welcome.tsx b/frontend/src/basic/RobotPage/Welcome.tsx
index c0b97d83..948664bf 100644
--- a/frontend/src/basic/RobotPage/Welcome.tsx
+++ b/frontend/src/basic/RobotPage/Welcome.tsx
@@ -1,8 +1,8 @@
import React from 'react';
import { useTranslation } from 'react-i18next';
-import { Box, Button, Grid, Typography, useTheme } from '@mui/material';
+import { Box, Button, Typography, styled, useTheme } from '@mui/material';
+import ArrowForwardIcon from '@mui/icons-material/ArrowForward';
import { RoboSatsTextIcon } from '../../components/Icons';
-import { FastForward, RocketLaunch, Key } from '@mui/icons-material';
import { genBase62Token } from '../../utils';
interface WelcomeProps {
@@ -11,113 +11,167 @@ interface WelcomeProps {
width: number;
}
-const Welcome = ({ setView, width, getGenerateRobot }: WelcomeProps): JSX.Element => {
+const BUTTON_COLORS = {
+ primary: '#2196f3',
+ secondary: '#9c27b0',
+ text: '#ffffff',
+};
+
+const Welcome = ({ setView, getGenerateRobot, width }: WelcomeProps): JSX.Element => {
const { t } = useTranslation();
const theme = useTheme();
+ const COLORS = {
+ background: theme.palette.background.paper,
+ textPrimary: theme.palette.text.primary,
+ shadow: theme.palette.mode === 'dark' ? '#ffffff' : '#000000',
+ };
+
+ const StyledButton = styled(Button)(({ theme }) => ({
+ justifyContent: 'space-between',
+ textAlign: 'left',
+ padding: theme.spacing(2),
+ height: '100%',
+ borderRadius: 0,
+ border: `2px solid ${theme.palette.mode === 'dark' ? '#ffffff' : '#000000'}`,
+ boxShadow: `8px 8px 0px 0px ${COLORS.shadow}`,
+ '&:not(:last-child)': {
+ borderBottom: 'none',
+ },
+ '&:hover': {
+ boxShadow: `12px 12px 0px 0px ${COLORS.shadow}`,
+ },
+ }));
+
return (
-
-
+
-
-
- {t('A Simple and Private LN P2P Exchange')}
+
+
+
+
+ A Simple and Private ⚡ Lightning P2P Exchange
-
-
-
-
+
+ }
+ onClick={() => {
+ setView('onboarding');
+ }}
>
-
-
-
- {t('Create a new robot and learn to use RoboSats')}
-
-
-
-
-
-
-
-
- {t('Recover an existing robot using your token')}
-
-
-
-
-
-
-
-
-
-
-
-
+
+ ▶ Fast Generate Robot
+
+
+
+
);
};
diff --git a/frontend/src/basic/RobotPage/index.tsx b/frontend/src/basic/RobotPage/index.tsx
index 0902c2aa..9bd1f64d 100644
--- a/frontend/src/basic/RobotPage/index.tsx
+++ b/frontend/src/basic/RobotPage/index.tsx
@@ -85,11 +85,10 @@ const RobotPage = (): JSX.Element => {
if (settings.useProxy && !(window.NativeRobosats === undefined) && !(torStatus === 'ON')) {
return (
-
@@ -129,54 +128,70 @@ const RobotPage = (): JSX.Element => {
-
+
);
} else {
return (
-
- {view === 'welcome' ? (
-
- ) : null}
+
+ {view === 'welcome' ? (
+
+ ) : null}
- {view === 'onboarding' ? (
-
- ) : null}
+ {view === 'onboarding' ? (
+
+ ) : null}
- {view === 'profile' ? (
-
- ) : null}
+ {view === 'profile' ? (
+
+ ) : null}
- {view === 'recovery' ? (
-
- ) : null}
-
+ {view === 'recovery' ? (
+
+ ) : null}
+
+
);
}
};