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webpack://islandpetro/./src/components/slpTopTitle/slpTopTitle.js","webpack://islandpetro/./src/components/slpTopTitle/slpTopTitleStyles.js"],"sourcesContent":["import React from 'react';\nimport * as Styled from './slpTopTitleStyles';\nimport { BLOCKS, MARKS } from '@contentful/rich-text-types';\nimport { documentToReactComponents } from '@contentful/rich-text-react-renderer';\nimport isExternalUrl, {\n addTrailingSlash,\n isExternalUrlhref,\n} from '../../utils';\n\nconst SlpTopTitle = ({ sectionData }) => {\n const optionsMainStyle = {\n renderNode: {\n [BLOCKS.HEADING_1]: (node, children) => (\n {children}\n ),\n [BLOCKS.PARAGRAPH]: (node, children) => (\n {children}\n ),\n },\n renderMark: {\n [MARKS.Code]: (node) =>
{node}
,\n },\n renderText: (text) =>\n text?.split('\\n').flatMap((text, i) => [i > 0 &&
]),\n };\n\n return (\n <>\n \n \n \n \n \n {sectionData?.headerWithText?.headerText}\n \n {sectionData?.textWithPaths && sectionData?.textWithPaths[0] && (\n \n \n {sectionData?.textWithPaths[0]?.text}\n \n \n )}\n {sectionData?.richText &&\n documentToReactComponents(\n JSON.parse(sectionData?.richText?.raw),\n optionsMainStyle\n )}\n \n \n );\n};\nexport default SlpTopTitle;\n","import styled from 'styled-components';\n\nexport const TitleContainer = styled.div`\n width: 100%;\n height: 855px;\n margin: 0 auto;\n padding: 65px 0px 0px 0px;\n background: url(${(props) => props.$background}) repeat-x bottom center;\n text-align: center;\n @media (max-width: 991px) {\n width: 100%;\n padding: 45px 35px 0 35px;\n text-align: center;\n background-size: cover;\n height: 510px;\n }\n`;\n\nexport const LinkStyle = styled.a`\n text-decoration: none;\n cursor: pointer;\n`;\n\nexport const ImageStyle = styled.img`\n width: 100%;\n height: auto;\n max-width: 400px;\n height: auto;\n margin-bottom: 40px;\n @media (max-width: 991px) {\n display: block;\n max-width: 300px;\n height: auto;\n margin: 0 auto;\n }\n`;\nexport const HeadingContainer = styled.div`\n width: 650px;\n margin: 0 auto;\n text-align: center;\n @media (max-width: 991px) {\n width: 450px;\n }\n @media (max-width: 767px) {\n width: 100%;\n max-width: 330px;\n }\n`;\nexport const Heading = styled.h1`\n text-align: center;\n position: relative;\n font-size: 60px;\n line-height: 65px;\n margin-bottom: 30px;\n color: #fff;\n margin: 0 0 35px 0;\n padding: 0;\n font-family: 'Figtree-Black', arial, sans-serif;\n font-weight: bold !important;\n code {\n color: #ffc905;\n font-family: 'Figtree-Black', arial, sans-serif;\n font-size: 4vw;\n line-height: 4vw;\n }\n @media (max-width: 991px) {\n line-height: 100%;\n font-size: 30px;\n margin-top: 20px;\n font-weight: bold;\n }\n`;\nexport const ParaText = styled.p`\n margin-bottom: 40px;\n font-family: 'Figtree-Black', arial, sans-serif;\n font-size: 24px;\n line-height: 25px;\n letter-spacing: 3px;\n text-transform: uppercase;\n color: #ffbd18;\n font-weight: bold;\n a {\n i {\n font-size: inherit;\n line-height: inherit;\n }\n }\n @media (max-width: 991px) {\n font-size: 12px;\n margin-bottom: 20px;\n letter-spacing: 1px;\n }\n`;\n"],"names":["_ref","_sectionData$image","_sectionData$image$fi","_sectionData$assets$","_sectionData$assets$2","_sectionData$assets$3","_sectionData$assets$4","_sectionData$assets$5","_sectionData$assets$6","_sectionData$headerWi","_sectionData$textWith","_sectionData$richText","sectionData","optionsMainStyle","renderNode","BLOCKS","HEADING_1","node","children","React","Styled","PARAGRAPH","renderMark","MARKS","Code","renderText","text","split","flatMap","i","key","$background","image","file","url","href","isExternalUrlhref","assets","description","addTrailingSlash","process","target","isExternalUrl","src","headerWithText","headerText","textWithPaths","richText","documentToReactComponents","JSON","parse","raw","TitleContainer","styled","div","withConfig","displayName","componentId","props","LinkStyle","a","ImageStyle","img","HeadingContainer","Heading","h1","ParaText","p"],"sourceRoot":""}