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S,EAEtBC,EAAAA,cAAC6B,EAAAA,EAAiB,CAChBnC,KAAM,CACJoC,KAAMb,EAAgBG,GAAcU,KACpC9D,MAAOiD,EAAgBG,GAAcpD,MAAMqC,gBAAgB0B,WAC3DC,QAASf,EAAgBG,GAAcY,SAEzCC,OA5BUC,IAClBA,EAAMC,iBACN,MAAMC,EAAOhB,EAAe,GAAKH,EAAgBlB,OAAS,EAAIqB,EAAe,EAC7EC,EAAgBe,EAAK,EA0BbC,OAvBUH,IAClBA,EAAMC,iBACN,MAAMG,EAAOlB,GAAgB,EAAIH,EAAgBlB,OAAS,EAAIqB,EAAe,EAC7EC,EAAgBiB,EAAK,EAqBbC,QAlBWL,IACnBA,EAAMC,iBACNjB,EAAmB,IACnBG,EAAgB,EAAE,EAgBVmB,kBAA8C,IAA3BvB,EAAgBlB,SAGrC,GACJC,EAAAA,cAACyC,EAAAA,GAAG,CACFC,UAAU,UACVC,MAAOrB,EAAQqB,QAEjB3C,EAAAA,cAAC4C,EAAAA,GAAM,CAACC,GAAG,SAASC,OAAO,UACzB9C,EAAAA,cAAC+C,EAAAA,GAAY,KACX/C,EAAAA,cAACgD,EAAAA,GAAM,OAEThD,EAAAA,cAACiD,EAAAA,GAAU,KAETjD,EAAAA,cAACkD,EAAAA,GAAS,KAAE5B,EAAQqB,OACpB3C,EAAAA,cAAA,WACAA,EAAAA,cAACmD,EAAAA,GAAQ,CAACC,QAAM,EAAClD,wBAAyB,CAAEC,OAAQP,KACpDI,EAAAA,cAAA,WACAA,EAAAA,cAAA,WACGR,EAAMqB,KAAI,CAACrB,EAAOsB,IACjBd,EAAAA,cAACqD,EAAK,CACJtC,IAAKD,EACLtB,MAAOA,EACPC,eAAgBkC,QAOxB3B,EAAAA,cAACsD,EAAAA,GAAY,KACXtD,EAAAA,cAACuD,EAAAA,GAAM,QAIV,C","sources":["webpack://be-landing/./src/components/story-components/story-components.styled.js","webpack://be-landing/./src/components/story-components/story.js","webpack://be-landing/./src/pages/story.js"],"sourcesContent":["import {\n GatsbyImage,\n} from \"gatsby-plugin-image\";\nimport {\n ZWrapper,\n} from '../../ui-components';\nimport styled, { css } from \"styled-components\";\n\n\nconst cutSize = 4;\nconst btnSize = 32;\n\nexport const StoryWrap = styled.div`\ndisplay: table;\nwidth: 100%;\nmargin-bottom: 1px;\ntext-align: left;\n\n@media ${({theme}) => theme.device.mobile}{\n display: block;\n}\n`;\n\nexport const StoryWrapCell = styled.div`\ndisplay: table-cell;\nvertical-align: top;\n\n@media ${({theme}) => theme.device.mobile}{\n display: block;\n}\n\n${props => props.date && css`\n position: relative;\n text-align: center;\n width: 140px;\n padding-top: 18px;\n font-family: \"Quantico\", sans-serif;\n font-size: 18px;\n text-transform: uppercase;\n line-height: 21px;\n color: ${({theme}) => theme.text.primary};\n\n @media ${({theme}) => theme.device.mobile}{\n width: 100%;\n padding-bottom: 16px;\n }\n`}\n\n${props => props.text && css`\n padding: 0 10px;\n`}\n`;\n\nexport const StoryBlock = styled.div`\ndisplay: table;\nwidth: 100%;\nmargin-top: -7px;\nmargin-left: 7px;\nmargin-bottom: -7px;\n\n@media only screen and (max-width: 620px){\n display: flex;\n flex-direction: column-reverse;\n align-content: center;\n align-items: center;\n width: auto;\n margin: auto;\n margin-left: -4px;\n margin-top: -4px;\n /* \n margin-right: -7px; */\n}\n`;\n\nexport const StoryBlockCell = styled.div`\ndisplay: table-cell;\nvertical-align: top;\n\n@media only screen and (max-width: 620px){\n text-align: center;\n display: block;\n}\n\n${props => props.image && css`\n width: 240px;\n\n @media only screen and (max-width: 620px){\n width: 100%;\n text-align: center;\n margin-bottom: 16px;\n }\n`}\n\n${props => props.text && css`\n padding: 8px 24px 16px 0px;\n\n @media only screen and (max-width: 620px){\n background-color: white;\n padding: 0;\n margin: 8px\n margin-top: 16px;\n\n }\n`}\n`;\n\nexport const StoryText = styled.div`\n> p, ul, ol{\n margin: 0;\n margin-bottom: 10px;\n font-size: 16px;\n color: ${({theme}) => theme.text.primary};\n\n @media only screen and (max-width: 620px){\n line-height: 21px;\n }\n}\n`;\nexport const cutSize2 = 4;\n\n\n\n\nexport const StoryImageHover = styled.div`\n display: none;\n position: absolute;\n top: 50%;\n left: 50%;\n width: ${btnSize - cutSize2 * 2}px;\n height: ${btnSize}px;\n margin-top: -${btnSize / 2}px;\n margin-left: -${btnSize / 2 - cutSize}px;\n text-align: center;\n z-index: 1;\n background-color: ${({theme}) => theme.thirdiary.main};\n\n &::before {\n content: ' ';\n position: absolute;\n top: 0;\n right: -${cutSize}px;\n bottom: 0;\n border-top: ${cutSize}px solid transparent;\n border-left: ${cutSize}px solid ${({theme}) => theme.thirdiary.main};\n border-bottom: ${cutSize}px solid transparent;\n }\n\n &::after {\n content: ' ';\n position: absolute;\n top: 0;\n left: -${cutSize}px;\n bottom: 0;\n border-top: ${cutSize}px solid transparent;\n border-right: ${cutSize}px solid ${({theme}) => theme.thirdiary.main};\n border-bottom: ${cutSize}px solid transparent;\n }\n\n svg{\n margin-top: 3px;\n fill: #fff;\n }\n`;\n\n\nexport const StoryImageFrame = styled.button`\nposition: relative;\ndisplay: block;\nline-height: 0;\nz-index: 1;\nbackground: transparent;\npadding: 0;\nmargin: 0;\nborder: 0;\ncursor: pointer;\n\n&:hover{\n ${StoryImageHover}{\n display: block;\n }\n img{\n filter: brightness(60%);\n }\n }\n\n&::before {\n content: '';\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n border-top: ${cutSize2}px solid white;\n border-left: ${cutSize2}px solid transparent;\n border-bottom: ${cutSize2}px solid white;\n z-index: 100;\n}\n\n&::after {\n content: ' ';\n position: absolute;\n top: 0;\n left:0;\n bottom: 0;\n border-top: ${cutSize2}px solid white;\n border-right: ${cutSize2}px solid transparent;\n border-bottom: ${cutSize2}px solid white;\n z-index: 1;\n}\n`;\n\nexport const StoryImage = styled(GatsbyImage)`\nwidth: 240px;\nmin-height: 180px;\n\n@media only screen and (max-width: 620px){\n width: 260px;\n height: auto;\n margin: auto;\n \n}\n`\n\nexport const StoryImageCount = styled.div`\n position: absolute;\n bottom: 0;\n left: 0;\n right: 0;\n height: 16px;\n`\n\nexport const StoryImageCountDot = styled.div`\n width: 6px;\n height: 6px;\n border-radius: 3px;\n margin: 0 2px;\n background: #fff;\n display: inline-block;\n\n &:first-child{\n background: ${({theme}) => theme.thirdiary.main};\n }\n\n`\n\n\nexport const Date = styled.div`\nposition: relative;\ndisplay: inline-block;\npadding: 4px;\nbackground-color: ${({theme}) => theme.background.default};\nz-index: 4;\n`\n\nexport const Dots = styled.div`\nposition: absolute;\ntop: 4px;\nbottom: 0;\nleft: 50%;\nborder-left: 4px dotted rgba(0,0,0,0.1);\n`;\n\nexport const StoryWrapper = styled(ZWrapper)`\n @media only screen and (max-width: 620px){\n max-width: 268px;\n margin: auto;\n }\n`;\n","import React from \"react\";\nimport {\n Icon,\n} from '../../ui-components';\nimport {\n StoryBlock,\n StoryBlockCell,\n StoryImage,\n StoryImageFrame,\n StoryImageCount,\n StoryImageCountDot,\n StoryImageHover,\n StoryText,\n StoryWrap,\n StoryWrapCell,\n StoryWrapper,\n Date,\n Dots,\n} from './story-components.styled'\n\n\n\nconst Story = ({ story, onGalleryPress }) => {\n const data = story.frontmatter || {}\n const html = story.html;\n const gallery = data.gallery || [];\n \n const previewImage = gallery.length > 0 ? gallery[0] : null;\n\n return (\n \n \n {data.show_date\n ? {data.date}\n : ''\n }\n \n \n \n \n \n \n \n \n \n {previewImage ?\n { onGalleryPress(gallery) }}>\n \n \n \n \n \n {gallery.length > 1 && gallery.map((data, index) => (\n \n ))}\n \n \n : null}\n \n \n \n \n \n )\n\n}\n\nexport default Story;\n","import React, { useState } from \"react\";\nimport { graphql } from \"gatsby\";\nimport {\n SEO,\n} from '../components';\nimport {\n Layout,\n LayoutHeader,\n LayoutFooter,\n LayoutMain,\n Header,\n Footer,\n PageTitle,\n PageHTML,\n} from '../ui-components';\nimport Story from \"../components/story-components/story\";\nimport GalleryFullScreen from \"../components/gallery/gallery-fullscreen\";\n\n\nconst StoryPage = ({ data, location }) => {\n const [fullScreenArray, setFullScreenArray] = useState([]);\n const [currentIndex, setCurrentIndex] = useState(0);\n const content = data.content.frontmatter || {};\n const html = data.content.html;\n const story = data.story.edges.map(element => element.node.childMarkdownRemark);\n\n const enterFullScreen = (payload) => {\n setCurrentIndex(0);\n setFullScreenArray(payload);\n }\n\n const handleNext = (event) => {\n event.preventDefault();\n const next = currentIndex + 1 >= fullScreenArray.length ? 0 : currentIndex + 1;\n setCurrentIndex(next);\n }\n\n const handlePrev = (event) => {\n event.preventDefault();\n const prev = currentIndex <= 0 ? fullScreenArray.length - 1 : currentIndex - 1;\n setCurrentIndex(prev);\n }\n\n const handleClose = (event) => {\n event.preventDefault();\n setFullScreenArray([]);\n setCurrentIndex(0);\n }\n\n return (\n <>\n {fullScreenArray.length > 0\n ? (\n \n )\n : ''}\n \n \n \n
\n \n \n\n {content.title}\n
\n \n
\n
\n {story.map((story, index) => (\n \n )\n )}\n
\n\n
\n \n