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AAUgD,GAAG,SAAb,4BACA,oBACA,QAAChD,EAAD,CAAUC,MAAM,EAAM+C,GAAG,QAAzB,uDACuD,KACrD,eAAKC,UAAW,eAAgBjC,GAA2B,IAF7D,0CAUV,QAAC1B,EAAD,CAA2BD,cAAeA,IACxC,QAAC,IAAD,MACE,QAACG,EAAD,CAAoB2B,IAAKL,GACtBC,GAAoB,QAAC,IAAD,MAAkB,SAI7C,QAACxB,EAAD,MACE,QAAC,IAAD,CACEF,cAAeA,EACfmB,iBAAkBA,EAClBC,OAAQA,EACRC,UAAWA,EACXoC,MAAO,MACPI,eAAe,EACfP,MAAOzB,KAET,QAAC,IAAD,MACE,QAAChB,EAAD,OACA,QAACC,EAAD,MACE,qDACiC,mBADjC,qCAIA,uCACoB,mBADpB,kCAEgC,oBAC9B,aAAGnB,KAAK,2BAAR,sBAEF,QAACJ,EAAD,OACA,QAACK,EAAD,QAEF,QAAC,IAAD,CAAQkE,cAAe","sources":["webpack://supergood.software/./src/pages/contact.js"],"sourcesContent":["/** @jsx jsx */\nimport { jsx } from '@emotion/react'\nimport React, { useLayoutEffect, useEffect, useRef, useState } from 'react'\nimport styled from '@emotion/styled'\nimport mq from '../styles/mediaQueries'\nimport { useInView } from 'react-intersection-observer'\n\nimport Footer from '../components/Footer'\nimport NavBar from '../components/NavBar'\nimport NavOverlay from '../components/NavOverlay'\nimport Layout from '../components/Layout'\nimport ContactForm from '../components/ContactForm'\nimport Seo from '../components/seo'\n\nimport GithubSVG from '../assets/icons/github.svg'\nimport TwitterSVG from '../assets/icons/twitter.svg'\n\nimport { Body1, Headline2, Headline4 } from '../components/Typography'\n\nconst researchTopics = [\n 'our favourite GIFs',\n 'new coffee gear',\n 'mechanical keyboards',\n 'brain pills',\n 'sacred geometry',\n]\n\nconst GithubIcon = props => {\n const StyledGithub = styled(GithubSVG)`\n width: 24px;\n height: 24px;\n display: inline-block;\n margin-right: 23px;\n\n path {\n fill: var(--terminal-500);\n }\n `\n\n return (\n \n \n \n )\n}\n\nconst TwitterIcon = props => {\n const StyledTwitter = styled(TwitterSVG)`\n width: 24px;\n height: 24px;\n display: inline-block;\n\n path {\n fill: var(--terminal-500);\n }\n `\n\n return (\n \n \n \n )\n}\n\nconst HeroBackgroundWrapper = styled.div`\n background: linear-gradient(90.9deg, #2e60ff 0%, rgba(46, 96, 255, 0) 99.36%),\n #0000fe;\n height: 100vh;\n display: flex;\n align-items: center;\n justify-content: center;\n visibility: ${props => (props.isOverlayOpen ? 'hidden' : 'unset')};\n opacity: ${props => (props.isOverlayOpen ? '0' : 'unset')};\n`\n\nconst GradientBackgroundWrapper = styled.div`\n background: linear-gradient(90.9deg, #2e60ff 0%, rgba(46, 96, 255, 0) 99.36%),\n #0000fe;\n height: 100px;\n display: flex;\n flex-direction: column;\n align-items: center;\n visibility: ${props => (props.isOverlayOpen ? 'hidden' : 'unset')};\n opacity: ${props => (props.isOverlayOpen ? '0' : 'unset')};\n`\n\nconst WhiteBackgroundWrapper = styled.div`\n height: auto;\n clip-path: inset(0 0 0 0);\n`\n\nconst ContactFormWrapper = styled.div`\n ${mq({\n gridColumnStart: ['1', '1', '2', '2', '2'],\n gridColumnEnd: ['5', '9', '12', '12', '12'],\n })};\n margin-bottom: -400px;\n z-index: 1;\n position: relative;\n`\n\nconst HeroText = styled.h1`\n ${Headline2};\n color: var(--terminal-0);\n margin-block-start: 0;\n margin-block-end: 0;\n display: inline;\n`\n\nconst HeroWrapper = styled.div`\n padding-right: 12px;\n padding-bottom: 6px;\n overflow: hidden;\n ${mq({\n gridColumnStart: ['1', '1', '1', '1', '1'],\n gridColumnEnd: ['5', '9', '13', '13', '13'],\n })};\n`\n\nconst InnerHeroWrapper = styled.div`\n position: relative;\n animation-delay: 10s;\n visibility: hidden;\n\n @keyframes grow-in-steps {\n 0% {\n visibility: hidden;\n }\n 100% {\n bottom: 0;\n visibility: visible;\n }\n }\n`\n\nconst HeroSpan = styled.span`\n color: ${props => (props.blue ? 'var(--screen-300)' : 'var(--terminal-0)')};\n\n .crossed-out {\n color: var(--screen-400);\n text-decoration: line-through 5px;\n display: inline-block;\n }\n`\n\nconst Spacer = styled.div`\n height: 400px;\n grid-column: 1 /-1;\n`\n\nconst ContactText = styled.div`\n text-align: center;\n ${mq({\n gridColumn: ['1 / -1', '1 / -1', '5 / 9', '5 / 9', '5 / 9'],\n })};\n\n h4 {\n ${Headline4};\n color: var(--terminal-500);\n }\n\n p {\n ${Body1};\n color: var(--terminal-400);\n }\n\n a {\n text-decoration: none;\n }\n`\n\nfunction ContactPage() {\n const [isOverlayOpen, setIsOverlayOpen] = useState(false)\n const [pixels, setPixels] = useState(0)\n const [contactFormRef, contactFormInView] = useInView({\n triggerOnce: true,\n rootMargin: '200px 0px',\n })\n const [randomResearchTopic, setRandomResearchTopic] = useState('')\n const pageTitle = 'Contact Us'\n\n const ref = useRef()\n\n useEffect(() => {\n window.alreadyAnimated = true\n }, [])\n\n useLayoutEffect(() => {\n const whiteText = document.getElementById('white')\n const blueText = document.getElementById('blue')\n\n const numLines =\n whiteText.getClientRects().length + blueText.getClientRects().length\n const height = ref.current.offsetHeight\n\n if (window.alreadyAnimated) {\n ref.current.style.display = 'block'\n ref.current.style.bottom = 'unset'\n ref.current.style.visibility = 'visible'\n } else {\n ref.current.style.display = 'block'\n ref.current.style.bottom = `${-height}px`\n ref.current.style.animation = `grow-in-steps ${numLines /\n 4}s steps(${numLines}, start) forwards 0.5s`\n }\n\n setRandomResearchTopic(\n researchTopics[Math.floor(Math.random() * researchTopics.length)]\n )\n }, [])\n\n return (\n \n \n \n \n \n \n \n \n \n Is it time? Let’s talk.\n \n \n We’re likely at our computers right now, researching{' '}\n {randomResearchTopic}{' '}\n important web development stuff.\n \n \n \n \n \n \n \n \n \n {contactFormInView ? : null}\n \n \n \n \n \n \n \n \n \n We're a remote-first team with \n headquarters in Victoria, Canada\n \n \n 2031 Store Street \n Victoria, BC, Canada, V8T 5L9 \n contact@super.gd\n \n \n \n \n \n \n \n \n )\n}\n\nexport default ContactPage\n"],"names":["researchTopics","GithubIcon","props","StyledGithub","GithubSVG","href","TwitterIcon","StyledTwitter","TwitterSVG","HeroBackgroundWrapper","isOverlayOpen","GradientBackgroundWrapper","WhiteBackgroundWrapper","ContactFormWrapper","mq","gridColumnStart","gridColumnEnd","HeroText","Headline2","HeroWrapper","InnerHeroWrapper","HeroSpan","blue","Spacer","ContactText","gridColumn","Headline4","Body1","useState","setIsOverlayOpen","pixels","setPixels","useInView","triggerOnce","rootMargin","contactFormRef","contactFormInView","randomResearchTopic","setRandomResearchTopic","pageTitle","ref","useRef","useEffect","window","alreadyAnimated","useLayoutEffect","whiteText","document","getElementById","blueText","numLines","getClientRects","length","height","current","offsetHeight","style","display","bottom","visibility","animation","Math","floor","random","title","description","keywords","theme","invertedBelow","id","className","invertedAbove","copyrightYear"],"sourceRoot":""}
\n 2031 Store Street \n Victoria, BC, Canada, V8T 5L9 \n contact@super.gd\n