12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- import styled from '@emotion/styled';
- import {Panel} from 'sentry/components/panels';
- import space from 'sentry/styles/space';
- type Props = {
- children: React.ReactNode;
- image: React.ReactNode;
- className?: string;
- };
- function OnboardingPanel({className, image, children}: Props) {
- return (
- <Panel className={className}>
- <Container>
- <IlloBox>{image}</IlloBox>
- <StyledBox>{children}</StyledBox>
- </Container>
- </Panel>
- );
- }
- const Container = styled('div')`
- padding: ${space(3)};
- position: relative;
- @media (min-width: ${p => p.theme.breakpoints.small}) {
- display: flex;
- align-items: center;
- flex-direction: row;
- justify-content: center;
- flex-wrap: wrap;
- min-height: 300px;
- max-width: 1000px;
- margin: 0 auto;
- }
- @media (min-width: ${p => p.theme.breakpoints.medium}) {
- min-height: 350px;
- }
- `;
- const StyledBox = styled('div')`
- z-index: 1;
- @media (min-width: ${p => p.theme.breakpoints.small}) {
- flex: 2;
- }
- `;
- const IlloBox = styled(StyledBox)`
- position: relative;
- min-height: 100px;
- max-width: 300px;
- margin: ${space(2)} auto;
- @media (min-width: ${p => p.theme.breakpoints.small}) {
- flex: 1;
- margin: ${space(3)};
- max-width: auto;
- }
- `;
- export default OnboardingPanel;
|