diff --git a/gatsby/src/pages/index.js b/gatsby/src/pages/index.js index 955ab3c..32709e5 100644 --- a/gatsby/src/pages/index.js +++ b/gatsby/src/pages/index.js @@ -4,14 +4,10 @@ import { GatsbyImage, getImage } from 'gatsby-plugin-image'; import { getVibrantToHelmetSafeBodyStyle, getVibrant } from '../utils'; import { Helmet } from 'react-helmet'; import classnames from 'classnames'; -import useBreakpoint from 'use-breakpoint'; import { HeroA } from '../components/IndexComponents'; -import themeBreakpoints from '../breakpoints'; - const IndexPage = ({ data: { allFile: { edges } } }) => { - const { breakpoint } = useBreakpoint(themeBreakpoints, 'md'); const [isClient, setIsClient] = React.useState(false); const images = React.useMemo(() => edges.map((edge) => edge.node), [edges]); const image = React.useMemo(() => { @@ -21,7 +17,6 @@ const IndexPage = ({ data: { allFile: { edges } } }) => { return images[Math.floor(Math.random() * images.length)]; }, [images, isClient]); const vibrant = getVibrant(image, isClient); - console.log('vibrant', vibrant); React.useEffect(() => { if (!isClient) { setIsClient(true); @@ -49,7 +44,7 @@ const IndexPage = ({ data: { allFile: { edges } } }) => { gridArea: '1/1', }} /> // 67vw = 1/1.49253731 = 1/aspect ratio of my camera lol - :
} + : }