{"version":3,"sources":["webpack://switch-website/./src/pages/about/newsroom.js"],"names":["settings","require","iconCss","css","colors","NewsroomContentContainer","ContentContainer","LinkColored","fonts","fontWeights","breakpoints","SmallerNewsroomContentContainer","blogPostCardCss","BlogPostCard","title","text","image","postId","date","type","tags","link","className","postTypeFilters","icon","name","tag","horizontalCardCss","LinkAsPrimaryButton","HorizontalCard","Trans","eventCss","boxShadowPerformantCss","Event","location","stand","href","target","rel","G","getImage","childImageSharp","alt","defaultProps","backgroundImageCardCss","smallHorizontalCardCss","SmallHorizontalCard","Header","Noise","GeometricShapes","Slanted","GeometricShapesPattern","P","data","useContext","ContrastContext","setContrast","t","useTranslation","imageMediaResourcesLogo","imageMediaResourcesPhotos","imageMediaResourcesProduct","newsRoomData","strapiNewsroom","events","allStrapiNewsroomEvent","nodes","strapiFeaturedPosts","featuredTopBlogPost","newsroom_top","featuredEventsBlogPost","newsroom_events","blogPosts","newsroom_latest","pressKitLink","press_kit","localFile","publicURL","mediaResources","title_str","downloadText","media_resources_logo","media_resources_photos","media_resources_product","ogTitle","description","sub_title","preview_image","feature_image","id","publish_date","blog_tags","as","map","event","key","post","to","PR_TEAM_EMAIL","color","hovercolor","gaLabel","download","resource"],"mappings":"mUAuBA,IAAMA,EAAWC,EAAQ,MAMnBC,GAAUC,QAAH,4CAMaC,gBANb,WAaPC,GAA2B,OAAOC,KAAP,sBAAH,0CAOxBC,KAPwB,gBAQPC,eARO,gBASPC,YATO,KAYxBP,EAZwB,uBAcLQ,QAdK,mFA0BxBC,GAAkC,OAAON,EAAP,sBAAH,2CAM/BO,GAAkBT,QAAH,6GAQJC,gBARI,gBASEI,eATF,gBAUEC,cAVF,4FAqBSL,gBArBT,qIA2CEK,cA3CF,gFAoDIC,QApDJ,oWA6EfG,EAAe,SAAC,GAAD,MAAEC,EAAF,EAAEA,MAAOC,EAAT,EAASA,KAAMC,EAAf,EAAeA,MAAOC,EAAtB,EAAsBA,OAAQC,EAA9B,EAA8BA,KAAMC,EAApC,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U,YACX,QAAC,KAAD,CAAqB2E,GAAE,UAAYjG,EAASkG,gBACxC,QAAC,EAAApE,MAAD,0BAEJ,QAAC,KAAD,CACImE,GAAIvB,EACJyB,MAAO/F,WACPgG,WAAYhG,YAEZiG,QAAQ,YACRC,UAAQ,IAER,QAAC,EAAAxE,MAAD,4BACA,QAAC,IAAD,CAAcR,UAAU,cAMxC,QAACX,EAAD,MACI,QAAC,KAAD,CAAMiF,GAAG,OAAK,QAAC,EAAA9D,MAAD,0BACd,eAAKR,UAAU,OACVwD,EAAee,KAAI,SAAAU,GAAQ,OACxB,eAAKjF,UAAU,gCAAgCyE,IAAKQ,EAASzF,QACzD,QAAC,KAAD,CACImF,GAAIM,EAASlF,KACbiF,UAAQ,EACRH,MAAO/F,gBACPgG,WAAYhG,YACZiG,QAASE,EAASxB,YAElB,QAACjC,EAAD,CACIhC,MAAOyF,EAASzF,MAChBE,MAAOuF,EAASvF,QAEnBuF,EAASvB,cACV,QAAC,IAAD,CAAc1D,UAAU","file":"9828829e-992f72d14e52cedf9130.js","sourcesContent":["/** @jsx jsx */\nimport React, {useContext} from 'react';\nimport PropTypes from 'prop-types';\n\nimport {css, jsx} from '@emotion/react';\nimport styled from '@emotion/styled';\nimport {graphql} from 'gatsby';\nimport {Trans, useTranslation} from 'gatsby-plugin-react-i18next';\nimport {GatsbyImage, getImage} from 'gatsby-plugin-image';\nimport {BgImage} from 'gbimage-bridge';\n\nimport {postTypeFilters} from '../../helpers/constants/learn';\nimport {ContrastContext} from '../../helpers/context';\nimport SEO from '../../components/common/SEO';\nimport {boxShadowPerformantCss, CardBase} from '../../components/common/CardBase';\nimport {CTALink, Hero, LinkColored, P} from '../../components/common/Typography';\nimport {LinkAsPrimaryButton} from '../../components/common/Clickables';\nimport {breakpoints, colors, ContentContainer, fonts, fontWeights} from '../../styles/theme';\nimport Noise from '../../images/noise.png';\nimport GeometricShapes from '../../images/geometric-shapes.png';\nimport GeometricShapesPattern from '../../images/geometric-pattern-bg.png';\nimport DownloadIcon from '../../images/download.svg';\n\nconst settings = require('../../../settings');\n\n\n/*\n * Private Elements\n */\nconst iconCss = css`\n svg {\n &.icon {\n margin: 0.5rem 0.8rem;\n \n * {\n stroke: ${colors.darkPurple};\n }\n }\n }\n`;\n\n\nconst NewsroomContentContainer = styled(ContentContainer)`\n margin-top: 3rem;\n\n h2 {\n margin-bottom: 2rem;\n }\n\n ${LinkColored} {\n font-family: ${fonts.sansSerif};\n font-weight: ${fontWeights.medium};\n }\n \n ${iconCss};\n\n @media (min-width: ${breakpoints.md}) {\n padding-left: 65px;\n padding-right: 65px;\n margin-top: 4rem;\n\n h2 {\n margin-bottom: 3rem;\n }\n }\n`;\n\n\nconst SmallerNewsroomContentContainer = styled(NewsroomContentContainer)`\n max-width: 1100px;\n`;\n\n\n\nconst blogPostCardCss = css`\n height: clamp(350px, 50vw, 500px);\n\n .top {\n display: flex;\n justify-content: space-between;\n margin-bottom: auto;\n\n color: ${colors.darkPurple};\n font-family: ${fonts.monospace};\n font-weight: ${fontWeights.semiBold};\n font-size: 10px;\n line-height: 19px;\n\n .type {\n line-height: 24px;\n\n svg {\n margin-right: 0.3rem;\n\n * {\n stroke: ${colors.darkPurple};\n }\n }\n }\n\n .tag {\n line-height: 24px;\n text-align: right;\n }\n }\n\n p {\n margin: 0;\n }\n\n .date {\n font-size: 10px;\n line-height: 13px;\n }\n\n .title {\n font-size: 20px;\n font-weight: ${fontWeights.semiBold};\n line-height: 27px;\n }\n\n .text {\n font-size: 12px;\n line-height: 19px;\n }\n\n @media (min-width: ${breakpoints.md}) {\n .top {\n font-size: clamp(10px, 1.5vw, 12px);\n line-height: clamp(19px, 2vw, 22px);\n }\n\n .date {\n font-size: clamp(10px, 2vw, 12px);\n line-height: clamp(13px, 2vw, 15px);\n margin-bottom: 1.2rem;\n }\n\n .title {\n font-size: clamp(20px, 2vw, 24px);\n line-height: clamp(27px, 2vw, 32px);\n margin-bottom: 1rem;\n }\n\n .text {\n font-size: clamp(12px, 1.5vw, 14px);\n line-height: clamp(19px, 1.5vw, 22px);\n }\n }\n`;\n\nconst BlogPostCard = ({title, text, image, postId, date, type, tags}) => (\n \n
\n
\n {postTypeFilters[type].icon}\n {postTypeFilters[type].name}\n
\n
{tags[0]?.tag}
\n
\n
{date}
\n

{title}

\n

{text}

\n
\n);\n\nBlogPostCard.propTypes = {\n title: PropTypes.string.isRequired,\n text: PropTypes.string.isRequired,\n image: PropTypes.object.isRequired,\n postId: PropTypes.string.isRequired,\n date: PropTypes.string.isRequired,\n type: PropTypes.string.isRequired,\n tags: PropTypes.array.isRequired,\n};\n\n\nconst horizontalCardCss = css`\n height: clamp(440px, 50vw, 500px);\n width: 100%;\n max-width: 980px;\n\n .card__content {\n height: 100%;\n justify-content: space-between;\n }\n\n .top {\n display: flex;\n justify-content: space-between;\n\n color: ${colors.darkPurple};\n font-family: ${fonts.monospace};\n font-weight: ${fontWeights.semiBold};\n font-size: clamp(10px, 1.5vw, 12px);\n line-height: clamp(19px, 2vw, 22px);\n\n .type {\n line-height: 24px;\n\n svg {\n margin-right: 0.3rem;\n\n * {\n stroke: ${colors.darkPurple};\n }\n }\n }\n \n .tag {\n line-height: 24px;\n text-align: right;\n }\n }\n\n .bottom {\n display: flex;\n flex-wrap: wrap;\n justify-content: space-between;\n align-items: flex-end;\n\n .texts {\n flex-basis: 60ch;\n flex-grow: 1;\n padding-right: 1rem;\n\n p {\n margin: 0;\n }\n\n .date {\n font-size: clamp(11px, 3vw, 18px);\n line-height: clamp(13px, 3vw, 22px);\n margin-bottom: 1.2rem;\n }\n\n .title {\n font-size: clamp(25px, 3vw, 32px);\n font-weight: ${fontWeights.semiBold};\n line-height: clamp(34px, 3vw, 44px);\n margin-bottom: 1rem;\n }\n\n .text {\n font-size: clamp(12px, 3vw, 20px);\n line-height: clamp(19px, 3vw, 30px);\n }\n }\n\n ${LinkAsPrimaryButton} {\n margin-top: 1rem;\n }\n }\n`;\n\nconst HorizontalCard = ({title, text, image, postId, date, type, tags}) => (\n \n
\n
\n {postTypeFilters[type].icon}\n {postTypeFilters[type].name}\n
\n
{tags[0]?.tag}
\n
\n
\n
\n
{date}
\n

{title}

\n

{text}

\n
\n View this article\n
\n
\n);\n\nHorizontalCard.propTypes = {\n title: PropTypes.string.isRequired,\n text: PropTypes.string.isRequired,\n image: PropTypes.object.isRequired,\n postId: PropTypes.string.isRequired,\n date: PropTypes.string.isRequired,\n type: PropTypes.string.isRequired,\n tags: PropTypes.array.isRequired,\n};\n\n\nconst eventCss = css`\n width: 100%;\n border-radius: 5px;\n\n font-family: ${fonts.sansSerif};\n\n background-color: rgba(75,78,214,0.05);\n box-shadow: 0 2px 7px 0 ${colors.shadowGrey};\n\n margin-bottom: 1rem;\n\n a {\n width: 100%;\n height: 100%;\n padding: 1rem;\n\n display: flex;\n justify-content: space-between;\n align-items: center;\n\n text-decoration: none;\n color: ${colors.black};\n }\n \n .rounded-circle {\n height: 54px;\n width: 54px;\n }\n\n .event_text {\n flex-grow: 1;\n margin-left: 1rem;\n\n display: flex;\n flex-wrap: wrap;\n justify-content: space-between;\n align-items: center;\n }\n\n .event_text-main {\n flex-grow: 1;\n flex-basis: 30ch;\n flex-shrink: 1;\n margin-right: 1rem;\n }\n\n .event_date {\n font-size: 14px;\n color: ${colors.mediumGrey};\n }\n\n .event_name {\n font-size: 20px;\n font-weight: ${fontWeights.semiBold};\n margin: 0;\n }\n\n .event_location {\n flex-grow: 1;\n flex-basis: 5ch;\n font-size: 20px;\n }\n\n ${boxShadowPerformantCss}\n\n ::after {\n box-shadow: -7px 13px 17px 0 ${colors.shadowGrey};\n opacity: 0;\n transition: opacity 400ms ease-in-out;\n }\n`;\n\nconst Event = ({name, date, image, location, stand = '', link = ''}) => (\n
\n \n \n
\n
\n
\n {date}\n {stand && (` — ${stand}`)}\n
\n
{name}
\n
\n
{location}
\n
\n
\n
\n);\n\nEvent.propTypes = {\n name: PropTypes.string.isRequired,\n date: PropTypes.string.isRequired,\n image: PropTypes.object.isRequired,\n location: PropTypes.string.isRequired,\n stand: PropTypes.string,\n link: PropTypes.string,\n};\n\nEvent.defaultProps = {\n stand: '',\n link: '',\n};\n\n\nconst backgroundImageCardCss = css`\n &:before,\n &:after {\n border-radius: 5px;\n overflow: hidden;\n }\n`;\n\nconst smallHorizontalCardCss = css`\n height: 220px;\n padding: 1rem;\n margin-bottom: 1rem;\n\n display: flex;\n flex-direction: column;\n justify-content: flex-end;\n\n color: ${colors.white};\n font-family: ${fonts.sansSerif};\n font-weight: ${fontWeights.semiBold};\n font-size: clamp(18px, 5vw, 24px);\n line-height: clamp(26px, 5vw, 32px);\n\n @media (min-width: ${breakpoints.md}) {\n padding: 2rem;\n }\n`;\n\nconst SmallHorizontalCard = ({title, image}) => (\n \n
{title}
\n \n);\n\nSmallHorizontalCard.propTypes = {\n title: PropTypes.string.isRequired,\n image: PropTypes.object.isRequired,\n};\n\n\nconst Header = styled.div`\n padding-top: 5rem;\n min-height: 10rem;\n\n background: repeat url(${Noise}),\n ${colors.black} radial-gradient(at bottom right, ${colors.darkPurple}, ${colors.black} 80%);\n\n @media (min-width: ${breakpoints.md}) {\n padding-top: 8rem;\n min-height: 20rem;\n\n background: no-repeat bottom left/540px url(${GeometricShapes}),\n linear-gradient(to top, ${colors.white}, ${colors.white} 104px, ${colors.transparent} 104px),\n repeat url(${Noise}),\n ${colors.black} radial-gradient(at bottom right, ${colors.darkPurple}, ${colors.black} 50%);\n }\n\n ${NewsroomContentContainer} {\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n margin-top: 0;\n\n .title {\n margin-right: 1rem;\n margin-bottom: 2rem;\n }\n\n .horizontal-card {\n margin-left: auto;\n }\n }\n`;\n\n\nconst Slanted = styled.div`\n padding: 10rem 25px;\n\n color: ${colors.white};\n background: ${colors.black} repeat center/cover url(${GeometricShapesPattern});\n clip-path: polygon(0 80px, 100% 0, 100% calc(100% - 80px), 0 100%);\n\n display: grid;\n place-content: center;\n text-align: center;\n\n margin: 3rem 0;\n\n div {\n max-width: 695px;\n\n ${P} {\n margin: 2rem 0;\n }\n\n div.buttons {\n display: flex;\n flex-wrap: wrap;\n justify-content: center;\n align-items: baseline;\n\n > * {\n margin: 1rem;\n }\n \n ${LinkColored} {\n font-family: ${fonts.sansSerif};\n font-weight: ${fontWeights.medium};\n }\n }\n }\n \n ${iconCss};\n`;\n\n\n\n/*\n * Public Elements\n */\nconst NewsroomPage = ({data}) => {\n const setContrast = useContext(ContrastContext);\n setContrast(false);\n const {t} = useTranslation();\n\n // Get data from query\n const {\n imageMediaResourcesLogo,\n imageMediaResourcesPhotos,\n imageMediaResourcesProduct,\n strapiNewsroom: newsRoomData,\n allStrapiNewsroomEvent: {\n nodes: events,\n },\n strapiFeaturedPosts: {\n newsroom_top: featuredTopBlogPost,\n newsroom_events: featuredEventsBlogPost,\n newsroom_latest: blogPosts,\n },\n } = data;\n\n const pressKitLink = newsRoomData.press_kit.localFile?.publicURL;\n\n const mediaResources = [\n {\n title: t('Logo & Brandbook'),\n // eslint-disable-next-line i18next/no-literal-string\n title_str: 'Logo & Brandbook',\n image: imageMediaResourcesLogo,\n downloadText: t('Download Logo & Brandbook'),\n link: newsRoomData.media_resources_logo.localFile?.publicURL,\n },\n {\n title: t('Office & People'),\n // eslint-disable-next-line i18next/no-literal-string\n title_str: 'Office & People',\n image: imageMediaResourcesPhotos,\n downloadText: t('Download photos'),\n link: newsRoomData.media_resources_photos.localFile?.publicURL,\n },\n {\n title: t('Product'),\n // eslint-disable-next-line i18next/no-literal-string\n title_str: 'Product',\n image: imageMediaResourcesProduct,\n downloadText: t('Download screenshots'),\n link: newsRoomData.media_resources_product.localFile?.publicURL,\n },\n ];\n\n return (\n <>\n \n\n
\n \n
\n Newsroom\n
\n {featuredTopBlogPost && (\n \n )}\n
\n
\n\n \n Events\n
\n
\n {events.map(event => (\n \n ))}\n
\n {featuredEventsBlogPost && (\n
\n \n
\n )}\n
\n
\n\n \n Latest News\n
\n {blogPosts.map(post => (\n
\n \n
\n ))}\n
\n
\n\n \n
\n Download our media kit\n

\n \n Get access to branding components like logotypes, platform screenshots, and company\n pictures through our media kit. It also includes useful files about Switch like articles,\n product descriptions, and press releases.\n \n

\n
\n \n Contact PR Team\n \n \n Download press kit\n \n \n
\n
\n
\n\n \n Media Resources\n
\n {mediaResources.map(resource => (\n
\n \n \n {resource.downloadText}\n \n \n
\n ))}\n
\n
\n \n );\n};\n\nNewsroomPage.propTypes = {\n data: PropTypes.object.isRequired,\n};\n\n\n/*\n * Exports\n */\n\nexport default NewsroomPage;\n\nexport const query = graphql`\n query {\n # Images \n imageMediaResourcesLogo: file(relativePath: { eq: \"about/newsroom/media_resources_logo.png\" }) {\n childImageSharp {\n gatsbyImageData(\n placeholder: BLURRED\n width: 350\n )\n }\n }\n imageMediaResourcesPhotos: file(relativePath: { eq: \"about/newsroom/media_resources_office.png\" }) {\n childImageSharp {\n gatsbyImageData(\n placeholder: BLURRED\n width: 350\n )\n }\n }\n imageMediaResourcesProduct: file(relativePath: { eq: \"about/newsroom/media_resources_product.png\" }) {\n childImageSharp {\n gatsbyImageData(\n placeholder: BLURRED\n width: 350\n )\n }\n }\n \n # Newsroom Events (only in future, limited to 5)\n allStrapiNewsroomEvent(limit: 5, filter: {isFuture: {eq: true}}, sort: {order: ASC, fields: date}) {\n nodes {\n date\n name\n location\n stand\n link\n image {\n localFile {\n childImageSharp {\n gatsbyImageData(\n placeholder: TRACED_SVG\n height: 54\n )\n }\n }\n }\n }\n }\n \n # FeaturedPosts fields related to newsroom page\n strapiFeaturedPosts {\n newsroom_top {\n ...FeaturedBlogPostCardImagesFragment\n ...NewsroomBlogPostFragment\n }\n newsroom_events {\n ...BlogPostCardImagesFragment\n ...NewsroomBlogPostFragment\n }\n newsroom_latest {\n ...BlogPostCardImagesFragment\n ...NewsroomBlogPostFragment\n }\n } \n \n # Newsroom page data\n strapiNewsroom {\n press_kit {\n localFile {\n publicURL\n }\n }\n media_resources_logo {\n localFile {\n publicURL\n }\n }\n media_resources_photos {\n localFile {\n publicURL\n }\n }\n media_resources_product {\n localFile {\n publicURL\n }\n }\n }\n }\n`;\n"],"sourceRoot":""}