|
|
@ -8,8 +8,6 @@ import { contextSrv } from 'app/core/core'; |
|
|
|
import { backendSrv } from 'app/core/services/backend_srv'; |
|
|
|
import { backendSrv } from 'app/core/services/backend_srv'; |
|
|
|
import { getDashboardSrv } from 'app/features/dashboard/services/DashboardSrv'; |
|
|
|
import { getDashboardSrv } from 'app/features/dashboard/services/DashboardSrv'; |
|
|
|
import { Step } from './components/Step'; |
|
|
|
import { Step } from './components/Step'; |
|
|
|
import imageDark from './img/Onboarding_Panel_dark.svg'; |
|
|
|
|
|
|
|
import imageLight from './img/Onboarding_Panel_light.svg'; |
|
|
|
|
|
|
|
import { getSteps } from './steps'; |
|
|
|
import { getSteps } from './steps'; |
|
|
|
import { Card, SetupStep } from './types'; |
|
|
|
import { Card, SetupStep } from './types'; |
|
|
|
|
|
|
|
|
|
|
@ -121,13 +119,12 @@ export class GettingStarted extends PureComponent<PanelProps, State> { |
|
|
|
|
|
|
|
|
|
|
|
const getStyles = stylesFactory(() => { |
|
|
|
const getStyles = stylesFactory(() => { |
|
|
|
const { theme } = config; |
|
|
|
const { theme } = config; |
|
|
|
const backgroundImage = theme.isDark ? imageDark : imageLight; |
|
|
|
|
|
|
|
return { |
|
|
|
return { |
|
|
|
container: css` |
|
|
|
container: css` |
|
|
|
display: flex; |
|
|
|
display: flex; |
|
|
|
flex-direction: column; |
|
|
|
flex-direction: column; |
|
|
|
height: 100%; |
|
|
|
height: 100%; |
|
|
|
background: url(${backgroundImage}) no-repeat; |
|
|
|
background: url(public/img/getting_started_bg_${theme.type}.svg) no-repeat; |
|
|
|
background-size: cover; |
|
|
|
background-size: cover; |
|
|
|
padding: ${theme.spacing.xl} ${theme.spacing.md} 0; |
|
|
|
padding: ${theme.spacing.xl} ${theme.spacing.md} 0; |
|
|
|
`,
|
|
|
|
`,
|
|
|
|