mirror of
https://github.com/Unleash/unleash.git
synced 2024-12-22 19:07:54 +01:00
feat: improve demo welcome screen options (#4132)
https://linear.app/unleash/issue/2-1166/demo-welcome-screen-improvement Improves UI/UX of the demo welcome screen dialog by adding the "Explore on my own" button and renaming the "Try Unleash demo" button to "Go for a guided tour". This also adds UTM links to both the demo website URL and QR code. ![image](https://github.com/Unleash/unleash/assets/14320932/982063e8-b818-44a2-a867-046c6ce96a42)
This commit is contained in:
parent
ce900830cb
commit
6a3965f57a
Binary file not shown.
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 29 KiB |
@ -42,7 +42,15 @@ const StyledLink = styled('a')(({ theme }) => ({
|
||||
},
|
||||
}));
|
||||
|
||||
const StyledStartButton = styled(Button)(({ theme }) => ({
|
||||
const StyledButtons = styled('div')(({ theme }) => ({
|
||||
display: 'flex',
|
||||
flexDirection: 'row',
|
||||
justifyContent: 'space-between',
|
||||
gap: theme.spacing(4),
|
||||
}));
|
||||
|
||||
const StyledButton = styled(Button)(({ theme }) => ({
|
||||
flex: 1,
|
||||
height: theme.spacing(7),
|
||||
}));
|
||||
|
||||
@ -79,7 +87,7 @@ export const DemoDialogWelcome = ({
|
||||
<Typography>
|
||||
Open demo website in another tab:{' '}
|
||||
<StyledLink
|
||||
href="https://hello.unleash.run/"
|
||||
href="https://hello.unleash.run/?utm_source=Demo_instance&utm_medium=OpenLink&utm_campaign=Unleash"
|
||||
target="_blank"
|
||||
rel="noreferrer"
|
||||
onClick={() => {
|
||||
@ -93,14 +101,23 @@ export const DemoDialogWelcome = ({
|
||||
(we recommend you keep the pages open side by side)
|
||||
</Typography>
|
||||
</StyledDemoPane>
|
||||
<StyledStartButton
|
||||
variant="contained"
|
||||
color="primary"
|
||||
onClick={onStart}
|
||||
data-testid="DEMO_START_BUTTON"
|
||||
>
|
||||
Try Unleash demo
|
||||
</StyledStartButton>
|
||||
<StyledButtons>
|
||||
<StyledButton
|
||||
variant="outlined"
|
||||
color="primary"
|
||||
onClick={onClose}
|
||||
>
|
||||
Explore on your own
|
||||
</StyledButton>
|
||||
<StyledButton
|
||||
variant="contained"
|
||||
color="primary"
|
||||
onClick={onStart}
|
||||
data-testid="DEMO_START_BUTTON"
|
||||
>
|
||||
Go for a guided tour
|
||||
</StyledButton>
|
||||
</StyledButtons>
|
||||
</DemoDialog>
|
||||
);
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user