import { css } from '@emotion/css';
import { GrafanaTheme2 } from '@grafana/data';
import { Trans } from '@grafana/i18n';
import { useStyles2 } from '@grafana/ui';
const helpOptions = [
{ value: 0, label: 'Documentation', href: 'https://grafana.com/docs/grafana/latest' },
{ value: 1, label: 'Tutorials', href: 'https://grafana.com/tutorials' },
{ value: 2, label: 'Community', href: 'https://community.grafana.com' },
{ value: 3, label: 'Public Slack', href: 'http://slack.grafana.com' },
];
export const WelcomeBanner = () => {
const styles = useStyles2(getStyles);
return (
);
};
const getStyles = (theme: GrafanaTheme2) => {
return {
container: css({
display: 'flex',
backgroundSize: 'cover',
height: '100%',
alignItems: 'center',
justifyContent: 'space-between',
padding: theme.spacing(0, 3),
[theme.breakpoints.down('lg')]: {
backgroundPosition: '0px',
flexDirection: 'column',
alignItems: 'flex-start',
justifyContent: 'center',
},
[theme.breakpoints.down('sm')]: {
padding: theme.spacing(0, 1),
},
}),
title: css({
marginBottom: 0,
[theme.breakpoints.down('lg')]: {
marginBottom: theme.spacing(1),
},
[theme.breakpoints.down('md')]: {
fontSize: theme.typography.h2.fontSize,
},
[theme.breakpoints.down('sm')]: {
fontSize: theme.typography.h3.fontSize,
},
}),
help: css({
display: 'flex',
alignItems: 'baseline',
}),
helpText: css({
marginRight: theme.spacing(2),
marginBottom: 0,
[theme.breakpoints.down('md')]: {
fontSize: theme.typography.h4.fontSize,
},
[theme.breakpoints.down('sm')]: {
display: 'none',
},
}),
helpLinks: css({
display: 'flex',
flexWrap: 'wrap',
}),
helpLink: css({
marginRight: theme.spacing(2),
textDecoration: 'underline',
textWrap: 'nowrap',
[theme.breakpoints.down('sm')]: {
marginRight: theme.spacing(1),
},
}),
};
};