{"version":3,"sources":["webpack:///./src/components/blog/allArticles/styled.js","webpack:///./src/components/blog/allArticles/index.js","webpack:///./src/pages/updates.js","webpack:///./src/components/ui/startUsing/index.js","webpack:///./src/pages/blog.js"],"names":["Section","styled","section","props","deleteMargin","media","tablet","Grid","div","desktop","AllArticles","StyledButton","updates","useState","window","innerWidth","countOfPosts","loadMore","renderRestOfArticles","blogPosts","posts","map","el","idx","key","link","isList","filter","post","group","className","slice","onClick","as","disabled","length","style","opacity","center","defaultProps","ExtendStyledSection","StyledSection","Updates","metaTitle","metaDescription","canonical","StartUsingLS","deleteMarginTop","setMarginTop","useSourceParams","email","setEmail","onSubmit","e","preventDefault","navigate","htmlFor","id","type","name","placeholder","required","value","onChange","target","secondary","StyledHeader","StyledBlogTitle","h1","StyledBlogDesc","p","Box","StyledList","ul","RecentPosts","h2","StyledFirstPost","GuestPostBox","mobile","StyledLink","Blog","mapArticles","first","author","authorName","avatar","timeToRead","list","renderArticles","href","tag","withArrow"],"mappings":"qLAIaA,EAAUC,IAAOC,QAAV,qEAAGD,CAAH,2OACH,SAACE,GAAD,OAAYA,EAAMC,aAAe,EAAI,WAahDC,IAAMC,QAMCC,EAAON,IAAOO,IAAV,kEAAGP,CAAH,2JAKbI,IAAMI,SCtBJC,GD4BsBT,YAAOU,KAAV,0EAAGV,CAAH,MC5BL,SAAC,GAA+B,IAA7BW,EAA4B,EAA5BA,QAASR,EAAmB,EAAnBA,aAO9B,EAAiCS,mBALT,oBAAXC,QAA0BA,OAAOC,WAAa,IAChDH,EAAU,EAAI,GAEhBA,EAAU,EAAI,IAEhBI,EAAP,KAAqBC,EAArB,KAEMC,EAAuB,WAC3B,IAAMC,EAAYC,IAAMC,KAAI,SAACC,EAAIC,GAAL,OAC1B,kBAAC,IAAD,eAAgBC,IAAKF,EAAGG,MAAQF,GAASD,EAAzC,CAA6CI,QAAM,QAErD,OAAId,EACKO,EAAUQ,QAAO,SAACC,GAAD,MAA+B,YAArBA,EAAKzB,MAAM0B,S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C,IAAKF,EAAGG,MAAQF,GAClB,kBAAC,IAAD,iBACMD,EADN,CAEE6D,OAAQ,CACNC,WAAY9D,EAAG6D,OAAOC,WACtBC,OAAQ/D,EAAG6D,OAAOE,QAEpBC,WAAYhE,EAAGgE,WACfC,KAAMjE,EAAGO,MACTqD,MAAOA,GAAS,aAO1B,OACE,kBAACzC,EAAD,KACE,yBAAKX,UAAU,aACb,kBAACoC,EAAD,KACE,kBAACC,EAAD,CAAiBrC,UAAU,QAA3B,eACc,uCAEd,kBAACuC,EAAD,4CAEF,kBAACE,EAAD,KACE,kBAACK,EAAD,KAAkBK,GAAY,GAAMlD,MAAM,EAAG,IAC7C,kBAACyC,EAAD,KACE,kBAACE,EAAD,qBACCO,IAAclD,MAAM,EAAG,OAc/ByD,GACD,kBAAC,IAAD,MACA,kBAAC,IAAD,MACA,kBAACX,EAAD,CAAc/C,UAAU,aACtB,uBAAG2D,KAAK,oBAAoB3D,UAAU,OACpC,mDACA,gEACA,kBAAC,IAAD,CAAY4D,IAAI,IAAIC,WAAS,GAA7B,kBAIF,uBAAGF,KAAK,yBAAyB3D,UAAU,OACzC,yDACA,wEACA,kBAAC,IAAD,CAAY4D,IAAI,IAAIC,WAAS,GAA7B,gBAKJ,kBAAC,IAAD","file":"component---src-pages-updates-js-d0a523a92b72aac70be2.js","sourcesContent":["import styled from 'styled-components';\nimport { media } from 'theme/breakpoints';\nimport { StyledButton } from 'components/ui/button';\n\nexport const Section = styled.section`\n padding-top: ${(props) => (props.deleteMargin ? 0 : '3.5rem')};\n display: flex;\n align-items: center;\n justify-content: center;\n flex-direction: column;\n .load-more {\n margin: 80px auto 0;\n background-color: #fff;\n color: #0a4ed6;\n &:hover {\n background-color: #0a4ed6;\n color: #fff;\n }\n ${media.tablet} {\n margin: 72px auto 0;\n }\n }\n`;\n\nexport const Grid = styled.div`\n display: grid;\n grid-template-columns: repeat(3, 1fr);\n grid-column-gap: 40px;\n grid-row-gap: 40px;\n ${media.desktop} {\n grid-template-columns: repeat(2, 1fr);\n grid-column-gap: 24px;\n }\n`;\n\nexport const CustomButton = styled(StyledButton)``;\n","import React, { useState } from 'react';\nimport PropTypes from 'prop-types';\nimport { posts } from 'data/posts';\nimport ArticlePreview from 'components/blog/blogArticlePreview';\nimport Button from 'components/ui/button';\nimport * as Styled from './styled';\n\nconst AllArticles = ({ updates, deleteMargin }) => {\n const listenResize = () => {\n if (typeof window !== 'undefined' && window.innerWidth < 992) {\n return updates ? 8 : 13;\n }\n return updates ? 9 : 14;\n };\n const [countOfPosts, loadMore] = useState(listenResize());\n\n const renderRestOfArticles = () => {\n const blogPosts = posts.map((el, idx) => (\n \n ));\n if (updates) {\n return blogPosts.filter((post) => post.props.group === 'updates');\n }\n return blogPosts.filter((post) => post.props.group !== 'updates');\n };\n\n return (\n \n {renderRestOfArticles().slice(updates ? 0 : 5, countOfPosts)}\n loadMore(countOfPosts + 6)}\n as=\"button\"\n disabled={countOfPosts >= renderRestOfArticles().length}\n style={{\n opacity: countOfPosts >= renderRestOfArticles().length && '0.5',\n }}\n className=\"load-more\"\n center\n >\n Load more posts\n \n \n );\n};\n\nexport default AllArticles;\n\nAllArticles.propTypes = {\n updates: PropTypes.bool,\n deleteMargin: PropTypes.bool,\n};\n\nAllArticles.defaultProps = {\n updates: false,\n deleteMargin: false,\n};\n","import React from 'react';\nimport Layout from 'layout';\nimport styled from 'styled-components';\nimport AllArticles from 'components/blog/allArticles';\nimport { StyledHeader, StyledBlogTitle, StyledBlogDesc, StyledSection } from './blog';\n\nconst ExtendStyledSection = styled(StyledSection)`\n padding-left: 0;\n padding-right: 0;\n`;\n\nconst Updates = () => {\n return (\n \n \n
\n \n \n LiveSession updates\n \n What's new in LiveSession?\n \n
\n \n
\n \n );\n};\n\nexport default Updates;\n","import React, { useState } from 'react';\nimport PropTypes from 'prop-types';\nimport { useSourceParams } from 'hooks/useSourceParams';\nimport { navigate } from 'gatsby';\nimport * as Styled from './styled';\n\nconst StartUsingLS = ({ deleteMarginTop, setMarginTop }) => {\n const { link } = useSourceParams('start-using');\n const [email, setEmail] = useState('');\n\n const handleSubmit = (e) => {\n e.preventDefault();\n navigate(`${link}&email=${email}`);\n };\n return (\n \n

\n Start using LiveSession for free now.\n

\n
\n \n \n \n Sign up free\n \n \n
\n

Free 14-day trial

\n

\n No credit card required\n

\n

Easy setup

\n
\n
\n \n );\n};\n\nexport default StartUsingLS;\n\nStartUsingLS.propTypes = {\n deleteMarginTop: PropTypes.bool,\n // eslint-disable-next-line react/forbid-prop-types\n setMarginTop: PropTypes.oneOfType([PropTypes.object, PropTypes.bool]),\n};\n\nStartUsingLS.defaultProps = {\n deleteMarginTop: false,\n setMarginTop: false,\n};\n","import React from 'react';\nimport styled from 'styled-components';\nimport { media } from 'theme/breakpoints';\nimport Layout from 'layout';\nimport ArticlePreview from 'components/blog/blogArticlePreview';\nimport { posts } from 'data/posts';\nimport NewsletterBox from 'components/blog/newsletterBox';\nimport AllArticles from 'components/blog/allArticles';\nimport StartUsing from 'components/ui/startUsing';\nimport CustomLink, { StyledLink } from 'components/ui/link';\n\nexport const StyledSection = styled.section`\n padding: 13rem 0 2rem;\n @media (max-width: 1440px) {\n padding: 8rem 0 2rem;\n }\n ${media.tablet} {\n padding: 120px 0 2rem;\n }\n`;\n\nexport const StyledHeader = styled.div`\n margin-bottom: 92px;\n @media (max-width: 1440px) {\n margin-bottom: 64px;\n }\n ${media.tablet} {\n margin-bottom: 48px;\n }\n`;\n\nexport const StyledBlogTitle = styled.h1`\n margin: 0 0 8px;\n &.line {\n span {\n &::after {\n background-color: #ffe478;\n }\n }\n }\n\n ${media.tablet} {\n font-size: 32px;\n line-height: 44px;\n margin: 0 0 6px;\n }\n`;\n\nexport const StyledBlogDesc = styled.p`\n font-size: 22px;\n line-height: 28px;\n font-weight: 400;\n ${media.tablet} {\n font-size: 18px;\n line-height: 23px;\n }\n`;\n\nconst Box = styled.div`\n display: flex;\n justify-content: space-between;\n ${media.desktop} {\n flex-direction: column;\n }\n`;\n\nconst StyledList = styled.ul`\n list-style: none;\n display: flex;\n flex-direction: column;\n padding: 0;\n flex-basis: 47%;\n transform: translateY(-4%);\n @media (max-width: 1440px) {\n transform: translateY(0);\n }\n\n ${media.desktop} {\n display: grid;\n grid-template-columns: repeat(2, 1fr);\n grid-column-gap: 24px;\n grid-row-gap: 33px;\n transform: translateY(0);\n margin-bottom: 0;\n margin-top: 40px;\n }\n ${media.tablet} {\n margin-top: 0;\n }\n`;\n\nconst RecentPosts = styled.h2`\n margin: 0 0 20px;\n font-size: 36px;\n font-weight: 800;\n ${media.desktop} {\n grid-column: 1 / 3;\n grid-row: 1 / 2;\n margin: 0;\n }\n ${media.tablet} {\n font-size: 26px;\n }\n`;\n\nconst StyledFirstPost = styled.ul`\n list-style: none;\n padding: 0;\n flex-basis: 46%;\n ${media.tablet} {\n margin-bottom: 64px;\n }\n`;\n\nexport const GuestPostBox = styled.section`\n display: grid;\n grid-template-columns: repeat(2, 1fr);\n grid-column-gap: 40px;\n padding: 0;\n ${media.tablet} {\n grid-template-columns: repeat(1, 1fr);\n grid-template-rows: repeat(2, auto);\n grid-column-gap: 0;\n grid-row-gap: 32px;\n align-items: flex-end;\n }\n ${media.mobile} {\n padding: 0 15px;\n }\n & .box {\n display: block;\n padding: 40px 48px;\n background-color: #f8f8f8;\n border-radius: 6px;\n cursor: pointer;\n height: fit-content;\n color: #000;\n height: 100%;\n &:hover {\n text-decoration: none;\n box-shadow: none;\n ${StyledLink} {\n text-decoration: underline;\n &::after {\n transform: translateX(8px);\n }\n }\n }\n ${media.tablet} {\n height: auto;\n }\n ${media.mobile} {\n padding: 24px 30px;\n }\n & h3 {\n font-size: 26px;\n line-height: 50px;\n font-weight: 800;\n margin-bottom: 24px;\n ${media.mobile} {\n margin-bottom: 16px;\n font-size: 22px;\n line-height: 32px;\n }\n }\n & p {\n margin: 0;\n }\n & p:first-of-type {\n font-size: 18px;\n font-weight: 400;\n margin-bottom: 32px;\n ${media.mobile} {\n margin-bottom: 24px;\n font-size: 14px;\n line-height: 24px;\n }\n }\n ${StyledLink} {\n font-weight: 700;\n font-size: 16px;\n }\n }\n`;\n\nconst Blog = () => {\n const renderArticles = () => {\n if (!posts || posts.length === 0) return false;\n const mapArticles = (first) => {\n const blogPosts = posts\n .filter((post) => post.group !== 'updates')\n .map((el, idx) => (\n
  • \n \n
  • \n ));\n return blogPosts;\n };\n\n return (\n \n
    \n \n \n LiveSession blog\n \n UX, conversion, analytics and more\n \n \n {mapArticles(true).slice(0, 1)}\n \n Recent posts\n {mapArticles().slice(1, 5)}\n \n \n
    \n
    \n );\n };\n\n return (\n \n {renderArticles()}\n \n \n \n \n

    Want to contribute?

    \n

    We accept guest post submissions!

    \n \n Find out more\n \n
    \n \n

    110% increase in signups?

    \n

    Read how RocketLink grew with LiveSession

    \n \n Learn more\n \n
    \n
    \n \n \n );\n};\n\nexport default Blog;\n"],"sourceRoot":""}