Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import tokens from '@contentful/forma-36-tokens';
import { css } from 'emotion';
export const styles = {
body: css({
height: 'auto',
minHeight: '65vh',
margin: '0 auto',
marginTop: tokens.spacingXl,
padding: `${tokens.spacingXl} ${tokens.spacing2Xl}`,
maxWidth: tokens.contentWidthText,
backgroundColor: tokens.colorWhite,
zIndex: '2',
boxShadow: '0px 0px 20px rgba(0, 0, 0, 0.1)',
borderRadius: '2px'
}),
background: css({
display: 'block',
position: 'absolute',
zIndex: '-1',
top: '0',
width: '100%',
height: '300px',
backgroundColor: '#599ded' // corresponds to logo
}),
featuresListItem: css({
listStyleType: 'disc',
interface State {
contentTypes: ContentType[];
compatibleFields: CompatibleFields;
selectedFields: SelectedFields;
parameters: Hash;
}
const styles = {
body: css({
height: 'auto',
minHeight: '65vh',
margin: '0 auto',
marginTop: tokens.spacingXl,
padding: `${tokens.spacingXl} ${tokens.spacing2Xl}`,
maxWidth: tokens.contentWidthText,
backgroundColor: tokens.colorWhite,
zIndex: 2,
boxShadow: '0px 0px 20px rgba(0, 0, 0, 0.1)',
borderRadius: '2px'
}),
background: (color: string) =>
css({
display: 'block',
position: 'absolute',
zIndex: -1,
top: 0,
width: '100%',
height: '300px',
backgroundColor: color
}),
section: css({
import { Heading, Typography, Paragraph } from '@contentful/forma-36-react-components';
import Connect from './Connect';
import Config from './Config';
import OptimizelyLogo from './OptimizelyLogo';
import SectionSplitter from '../EditorPage/subcomponents/section-splitter';
import { VARIATION_CONTAINER_ID } from './constants';
const styles = {
body: css({
height: 'auto',
minHeight: '65vh',
margin: '0 auto',
marginTop: tokens.spacingXl,
padding: `${tokens.spacingXl} ${tokens.spacing2Xl}`,
maxWidth: tokens.contentWidthText,
backgroundColor: tokens.colorWhite,
zIndex: '2',
boxShadow: '0px 0px 20px rgba(0, 0, 0, 0.1)',
borderRadius: '2px'
}),
background: css({
display: 'block',
position: 'absolute',
zIndex: '-1',
top: '0',
width: '100%',
height: '300px',
backgroundColor: '#bcc3ca'
}),
featuresListItem: css({
listStyleType: 'disc',
import { css } from 'emotion';
import tokens from '@contentful/forma-36-tokens';
export default {
body: css({
height: 'auto',
minHeight: '65vh',
margin: '0 auto',
marginTop: tokens.spacingXl,
padding: `${tokens.spacingXl} ${tokens.spacing2Xl}`,
maxWidth: tokens.contentWidthText,
backgroundColor: tokens.colorWhite,
zIndex: '2',
boxShadow: '0px 0px 20px rgba(0, 0, 0, 0.1)',
borderRadius: '2px'
}),
splitter: css({
marginTop: tokens.spacingL,
marginBottom: tokens.spacingL,
border: 0,
height: '1px',
backgroundColor: tokens.colorElementMid
}),
background: css({
display: 'block',
position: 'absolute',
zIndex: '-1',
import { css } from 'emotion';
import tokens from '@contentful/forma-36-tokens';
export default {
body: css({
height: 'auto',
minHeight: '65vh',
margin: '0 auto',
marginTop: tokens.spacingXl,
padding: `${tokens.spacingXl} ${tokens.spacing2Xl}`,
maxWidth: tokens.contentWidthText,
backgroundColor: tokens.colorWhite,
zIndex: '2',
boxShadow: '0px 0px 20px rgba(0, 0, 0, 0.1)',
borderRadius: '2px'
}),
background: css({
display: 'block',
position: 'absolute',
zIndex: '-1',
top: '0',
width: '100%',
height: '300px',
backgroundColor: 'rgb(23,64,121)',
background: 'linear-gradient(90deg, rgba(23,64,121,1) 0%, rgba(27,158,156,1) 100%)'
}),
section: css({