Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update demo bar copy #1371

Merged
merged 4 commits into from
Nov 22, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions packages/toolpad-app/src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,5 @@ export const LANDING_PAGE_URL = 'https://mui.com/toolpad/';
export const DOCUMENTATION_URL = 'https://mui.com/toolpad/getting-started/overview/';
export const DOCUMENTATION_INSTALLATION_URL =
'https://mui.com/toolpad/getting-started/installation/';
export const ROADMAP_URL = 'https://github.com/orgs/mui/projects/9';
export const SCHEDULE_DEMO_URL = 'https://calendly.com/prakhar-mui/toolpad';
32 changes: 17 additions & 15 deletions packages/toolpad-app/src/toolpad/ToolpadShell/DemoBar.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import * as React from 'react';
import { Box, Button, Link, styled, Typography } from '@mui/material';
import { Box, Button, Link, styled, SxProps, Typography } from '@mui/material';
import KeyboardArrowRightRounded from '@mui/icons-material/KeyboardArrowRightRounded';
import { blueDark, grey } from '../../theme';
import { DOCUMENTATION_INSTALLATION_URL, LANDING_PAGE_URL } from '../../constants';
import { DOCUMENTATION_INSTALLATION_URL, ROADMAP_URL, SCHEDULE_DEMO_URL } from '../../constants';

const DemoBarContainer = styled(Box)({
alignItems: 'center',
Expand All @@ -18,26 +18,28 @@ const DemoBarContainer = styled(Box)({
});

export default function DemoBar() {
const linkStyles: SxProps = {
color: grey[700],
fontWeight: 'normal',
textDecorationColor: grey[700],
'&:hover': { color: grey[700] },
};

return (
<DemoBarContainer>
<Typography variant="subtitle1" sx={{ fontWeight: 700 }}>
Demo version
</Typography>
<Typography variant="body2">
Stay updated with our progress at{' '}
<Link
href={LANDING_PAGE_URL}
target="_blank"
underline="always"
sx={{
color: grey[700],
fontWeight: 'normal',
textDecorationColor: grey[700],
'&:hover': { color: grey[700] },
}}
>
mui.com/toolpad
Check out our{' '}
<Link href={ROADMAP_URL} target="_blank" underline="always" sx={linkStyles}>
roadmap
</Link>{' '}
to stay up to date, or{' '}
<Link href={SCHEDULE_DEMO_URL} target="_blank" underline="always" sx={linkStyles}>
schedule a demo
</Link>
.
</Typography>
<Link href={DOCUMENTATION_INSTALLATION_URL} target="_blank">
<Button size="medium" variant="contained" endIcon={<KeyboardArrowRightRounded />}>
Expand Down