Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
margin: '0 auto'
}
});
const Aside = styled.aside({
display: 'flex',
flexDirection: 'column',
flexShrink: 0,
width: 240,
maxHeight: `calc(100vh - ${HEADER_HEIGHT}px)`,
marginTop: -36,
padding: '40px 0',
marginLeft: 40,
position: 'sticky',
top: HEADER_HEIGHT,
[breakpoints.lg]: {
display: 'none'
},
[breakpoints.md]: {
display: 'block'
},
[breakpoints.sm]: {
display: 'none'
}
});
const AsideHeading = styled.h4({
fontWeight: 600
});
const AsideLinkWrapper = styled.h5({
display: 'flex',
import React from 'react';
import styled from '@emotion/styled';
import {IconProceed} from '@apollo/space-kit/icons/IconProceed';
import {breakpoints} from 'gatsby-theme-apollo-core';
import {colors} from '@apollo/space-kit/colors';
const Container = styled.div({
display: 'flex',
flexShrink: 0,
width: 240,
[breakpoints.lg]: {
width: 'auto',
marginRight: 0
},
[breakpoints.md]: {
display: 'none'
}
});
const StyledLink = styled.a({
display: 'flex',
alignItems: 'center',
color: colors.indigo.dark,
lineHeight: 2,
textDecoration: 'none',
':hover': {
color: colors.indigo.darker
},
})
function AsideLink(props) {
return (
)
}
const EditLink = styled.div({
display: 'none',
marginTop: 48,
justifyContent: 'flex-end',
[breakpoints.lg]: {
display: 'flex',
},
[breakpoints.md]: {
display: 'none',
},
[breakpoints.sm]: {
display: 'flex',
marginTop: 24,
},
})
export default function PageContent(props) {
const contentRef = useRef(null)
const [imagesToLoad, setImagesToLoad] = useState(0)
const [imagesLoaded, setImagesLoaded] = useState(0)