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U,cACnEH,EAAAA,cAAA,KAAGG,UAAU,QAAQe,QAASnB,KAAKmG,cAAe,YAI9DlG,EAAAA,cAACuE,EAAY,KACRZ,EACD3D,EAAAA,cAAA,MAAIkH,SAAS,KACTlH,EAAAA,cAACwE,EAAc,CAACwC,KAAK,SAASE,SAAS,IAAIhG,QAASnB,KAAKqG,iBAAiB,uBAK1FpG,EAAAA,cAACsE,EAAO,KACJtE,EAAAA,cAAC2C,EAAe,CAACW,UAAWvD,KAAK/B,MAAM0I,KAAKmB,sBAAsBjB,MAAOjD,WAAY5D,KAAKR,MAAMuG,yBAO5H,EAAClB,CAAA,CA7Ia,CAASlD,EAAAA,WAgJ3B,EAtLc,WAAH,OACP1B,EAAAA,cAAC8H,EAAAA,YAAW,CACRC,MAAK,YA8BLnI,OAAQ,SAAA8G,GAAI,OACR1G,EAAAA,cAAC4E,EAAY,CAAC8B,KAAMA,GAAO,GAEjC,C,sBGpKN,wX","sources":["webpack://gatsby-starter-default/./src/components/Cards/CardItemNew.js","webpack://gatsby-starter-default/./src/components/shared/VideoModal.js","webpack://gatsby-starter-default/./src/components/ResourceList/ResourceListNew.js","webpack://gatsby-starter-default/./src/pages/teacher-library.js","webpack://gatsby-starter-default/./src/images/icons/checkbox-active.svg","webpack://gatsby-starter-default/./src/images/icons/checkbox-inactive.svg","webpack://gatsby-starter-default/./src/images/icons/icon-filter.svg"],"sourcesContent":["import React, {Component} from 'react';\nimport styled from \"styled-components\";\nimport VideoModal from \"components/shared/VideoModal\"\nimport KalturaModal from \"components/shared/KalturaModal\"\nimport IconDownload from 'images/icons/icon-download.svg'\nimport IconDownloadWhite from 'images/icons/icon-download-white.svg'\nimport IconPlay from 'images/icons/icon-play.svg'\nimport IconPlayWhite from 'images/icons/icon-play-white.svg'\nimport IconArrow from 'images/icons/icon-arrow.svg'\nimport IconArrowWhite from 'images/icons/icon-arrow-white.svg'\nimport {media} from \"utils/Media\"\nimport cardTopBlue from \"images/Resources/card-top-blue.jpg\"\nimport cardTopGreen from \"images/Resources/card-top-green.jpg\"\nimport cardTopOrange from \"images/Resources/card-top-orange.jpg\"\nimport cardTopPurple from \"images/Resources/card-top-purple.jpg\"\nimport cardTopYellow from \"images/Resources/card-top-yellow.jpg\"\n\nconst Card = styled.div`\n width: 200px;\n height: 275px;\n position: relative;\n margin: 1rem 0.5rem 1rem;\n padding: calc(25px + 1rem) 1rem 1rem;\n box-shadow: 0px 4px 10px 0px rgba(0,0,0,0.15);\n transition: transform 200ms ease-in-out;\n display: inline-block;\n \n &:hover {\n transform: scale(1.05);\n }\n \n .card-header {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 25px;\n background: url(${cardTopOrange}) no-repeat center center;\n background-size: 100%;\n }\n \n &.orange {\n .card-header {\n background: url(${cardTopOrange}) no-repeat center center;\n background-size: 100%;\n }\n }\n \n &.blue {\n .card-header {\n background: url(${cardTopBlue}) no-repeat center center;\n background-size: 100%;\n }\n }\n \n &.green {\n .card-header {\n background: url(${cardTopGreen}) no-repeat center center;\n background-size: 100%;\n }\n }\n \n &.purple {\n .card-header {\n background: url(${cardTopPurple}) no-repeat center center;\n background-size: 100%;\n }\n }\n \n &.yellow {\n .card-header {\n background: url(${cardTopYellow}) no-repeat center center;\n background-size: 100%;\n }\n }\n \n .card-body {\n padding: 0 !important;\n }\n \n .card-footer {\n background: none !important;\n border-top: 0;\n }\n \n h4 {\n font-size: 1.125rem;\n padding-left: 0 !important;\n }\n \n p {\n font-size: 0.875rem;\n }\n \n a {\n text-decoration: underline;\n \n &:hover {\n color: ${props => props.theme.colors.red};\n }\n }\n`\n\nconst DownloadButton = styled.a`\n position: absolute;\n bottom: 0;\n left: 0;\n width: 200px;\n height: 50px;\n font-style: normal;\n font-weight: normal;\n font-size: 1rem;\n line-height: 200%;\n display: flex;\n justify-content: center;\n align-items: center;\n text-align: center;\n border: none;\n color: ${props => props.theme.colors.white} !important;\n transition: all 150ms ease-in-out;\n cursor: pointer;\n text-decoration: none !important;\n \n &.orange {\n background-color: ${props => props.theme.colors.orange};\n }\n \n &.blue {\n background-color: ${props => props.theme.colors.blue};\n }\n \n &.green {\n background-color: ${props => props.theme.colors.green};\n }\n \n &.purple {\n background-color: ${props => props.theme.colors.purple};\n }\n \n &.yellow {\n background-color: ${props => props.theme.colors.yellow};\n color: ${props => props.theme.colors.black} !important;\n }\n \n img {\n padding-left: 1rem;\n }\n \n .hover {\n display: none;\n }\n \n &:hover {\n color: ${props => props.theme.colors.white} !important;\n background-color: ${props => props.theme.colors.black};\n \n .non-hover {\n display: none;\n }\n \n .hover {\n display: inline-block;\n }\n }\n \n @media ${media.lg} {\n width: 200px;\n }\n \n img {\n margin-left: 10px;\n }\n`\n\nclass CardItemNew extends Component {\n constructor(props) {\n super(props);\n\n this.state = {\n modalOpen: false,\n }\n }\n\n toggleModal = (e, src) => {\n e.preventDefault();\n\n this.setState({\n src: src,\n modalOpen: !this.state.modalOpen\n });\n }\n\n toggleKalturaModal = (e, src) => {\n e.preventDefault();\n\n this.setState({\n src: src,\n kalturaModalOpen: !this.state.kalturaModalOpen,\n });\n }\n\n render() {\n let card = this.props.card\n\n return (\n \n \n \n \n \n {card.body}\n \n \n {card.selector === 'pdf' &&\n Download PDF\n {this.props.color === 'yellow' ?\n <>\n \n \n >\n :\n \n }\n \n }\n {card.selector === 'video' &&\n this.toggleKalturaModal(e, card.link)} aria-label=\"Open video\" className={this.props.color}>Watch videos\n {this.props.color === 'yellow' ?\n <>\n \n \n >\n :\n \n }\n \n }\n {card.selector === 'url' &&\n Find out more\n {this.props.color === 'yellow' ?\n <>\n \n \n >\n :\n \n }\n \n }\n \n \n \n \n );\n }\n}\n\nexport default CardItemNew;","import React, {Component} from 'react';\nimport {Modal, ModalBody} from \"reactstrap\"\nimport styled from \"styled-components\"\nimport ButtonClose from 'components/shared/ButtonClose'\n\nconst VModal = styled(Modal)`\n max-width: 1400px;\n padding: 0;\n border: 0;\n\n .modal-content {\n border: 0;\n position: relative;\n }\n\n .modal-body {\n padding: 0;\n border: 0;\n }\n \n .video-wrapper {\n position: relative;\n padding-bottom: 56.25%; /* 16:9 aspect ratio */\n padding-top: 0; // height of controls\n height: 0;\n \n iframe {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n }\n }\n`\n\nclass VideoModal extends Component {\n render() {\n return (\n \n \n Close\n \n \n \n \n \n \n \n );\n }\n}\n\nexport default VideoModal;","import React, {Component} from 'react';\nimport styled from \"styled-components\";\nimport CardItemNew from 'components/Cards/CardItemNew'\n\nconst Resources = styled.div`\n margin-bottom: 1rem;\n\n .card-deck {\n display: flex;\n flex-flow: row wrap;\n justify-content: left;\n }\n\n h2 {\n padding-left: 0.5rem;\n }\n`\n\nclass ResourceListNew extends Component {\n listResources = (tag, color) => {\n let totalTags = 0;\n let count = 0;\n const getResources = this.props.resources.map((resource) => {\n let catArray = []\n resource.node.categories.map((cat, k) => {\n catArray.push(cat)\n })\n\n let currentTag = resource.node.tag\n\n let checkIfCategory = (arr, target) => target.every(v => arr.includes(v));\n // console.log(catArray, this.props.categories)\n\n if (currentTag === tag) {\n count ++;\n if (checkIfCategory(catArray, this.props.categories)) {\n totalTags++\n return (\n \n )\n } else {\n return false\n }\n }\n })\n if (totalTags > 0) {\n return (\n \n {tag === 'primary' &&\n Primary School Lesson Plans with Accompanying Activity Sheets\n }\n {tag === 'secondary' &&\n Secondary School Lesson Plans with Accompanying Activity Sheets\n }\n {tag === 'behind' &&\n Behind-The-Scenes Videos\n }\n {tag === 'backstage' &&\n Backstage Careers Documentary - Getting Ready to Roar\n }\n {tag === 'citizenship' &&\n Community and Citizenship Projects\n }\n {tag === 'background' &&\n Background Reading\n }\n {tag === 'video-questionnaires' &&\n Video Hub Questionnaires\n }\n \n \n {getResources}\n \n \n \n )\n }\n }\n\n render() {\n return (\n \n {this.listResources('primary', 'orange')}\n {this.listResources('secondary', 'blue')}\n {this.listResources('behind', 'yellow')}\n {this.listResources('backstage', 'yellow')}\n {this.listResources('citizenship', 'purple')}\n {this.listResources('background', 'green')}\n {this.listResources('video-questionnaires', 'yellow')}\n \n );\n }\n}\n\nexport default ResourceListNew;","import React, {Component} from 'react';\nimport {graphql, StaticQuery} from \"gatsby\";\nimport styled from \"styled-components\";\nimport {Container} from \"reactstrap\";\nimport Layout from \"components/Layout/Layout\"\nimport checkboxActive from 'images/icons/checkbox-active.svg'\nimport checkboxInactive from 'images/icons/checkbox-inactive.svg'\nimport ResourceListNew from 'components/ResourceList/ResourceListNew'\nimport HeaderCopy from \"components/shared/HeaderCopy\"\nimport {media} from \"utils/Media\"\nimport iconFilter from \"images/icons/icon-filter.svg\"\nimport IconClose from \"images/icons/icon-close.svg\"\n\nconst Flex = styled.div`\n display: flex;\n flex-flow: row wrap;\n align-content: space-between;\n justify-content: space-between;\n`\n\nconst CategoryPanel = styled.div`\n width: 220px;\n \n .title {\n font-size: 1.125rem;\n margin-bottom: 0.5rem; \n }\n \n .sticky {\n border-right: 1px solid ${props => props.theme.colors.lightGrey};\n border-bottom: 1px solid ${props => props.theme.colors.lightGrey};\n padding-bottom: 1rem !important;\n }\n \n .sticky.active {\n position: fixed;\n width: 100%;\n z-index: 501;\n bottom: 0;\n height: 58px;\n overflow: hidden;\n background: white;\n left: 0;\n padding: 1rem;\n box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.1);\n \n &.open {\n height: 100%;\n }\n \n @media ${media.md} {\n box-shadow: none; \n padding: 0;\n left: initial;\n width: 220px;\n height: initial;\n overflow: auto;\n bottom: initial; \n z-index: 1;\n top: 65px;\n max-height: calc(100% - 175px);\n }\n }\n`\n\nconst Filter = styled.div`\n display: flex;\n align-items: center;\n margin-bottom: 2rem;\n cursor: pointer;\n \n @media ${media.md} {\n cursor: normal;\n }\n \n &.open {\n flex-flow: row wrap;\n align-content: space-between;\n justify-content: space-between;\n }\n \n p {\n padding-left: 1rem;\n margin-bottom: 0 !important;\n \n @media ${media.md} {\n padding-left: 0;\n }\n }\n`\n\nconst Content = styled.div`\n height: 100%;\n width: 100%;\n \n @media ${media.md} {\n width: calc(100% - 240px);\n }\n`\n\nconst CategoryList = styled.ul`\n list-style: none;\n margin: 0;\n padding: 0;\n \n strong {\n font-family: \"Proxima Nova W05 Light\", Arial, sans-serif;\n }\n \n li {\n font-size: 1rem;\n margin-bottom: 0.5rem;\n cursor: pointer;\n }\n`\n\nconst ClearSelection = styled.button`\n font-family: ${props => props.theme.font.family.light};\n text-decoration: underline;\n font-size: 0.8125rem;\n background: transparent;\n border: 0;\n text-align: left;\n padding: 8px 0;\n width: 100%;\n`\n\n\n\nconst Query = () => (\n (\n \n )}\n />\n)\n\nclass ResourcePage extends Component {\n constructor(props) {\n super(props);\n\n this.state = {\n selectedCategories: [],\n sticky: false,\n filterOpen: false\n }\n }\n\n componentDidMount() {\n const width = window.innerWidth;\n\n if (width < 768) {\n this.setState({\n sticky: true\n })\n }\n\n window.addEventListener('scroll', this.handleScroll, true)\n window.addEventListener('resize', this.handleScroll, true)\n }\n\n componentWillUnmount() {\n window.removeEventListener('scroll', this.handleScroll, true)\n window.removeEventListener('resize', this.handleScroll, true)\n }\n\n handleScroll = () => {\n let scrollPosition = Math.max(window.pageYOffset, document.documentElement.scrollTop, document.body.scrollTop)\n\n const width = window.innerWidth;\n\n if (width > 767) {\n let sticky = scrollPosition < 156 ? false : true\n\n this.setState({\n sticky\n })\n } else {\n this.setState({\n sticky: true\n })\n }\n }\n\n selectCategory = (category, e) => {\n\n if (e.key === \" \" || e.keyCode === undefined) {\n console.log(category, this.state.selectedCategories)\n \n let selectedCategories = this.state.selectedCategories\n\n if (selectedCategories.includes(category)) {\n const index = selectedCategories.indexOf(category);\n selectedCategories.splice(index, 1);\n } else {\n selectedCategories.push(category)\n }\n\n this.setState({selectedCategories})\n\n }\n }\n\n toggleFilter = () => {\n const filterOpen = !this.state.filterOpen;\n\n this.setState({\n filterOpen\n })\n }\n\n clearCategories = () => {\n this.setState({\n selectedCategories: []\n })\n }\n\n render() {\n const categories = this.props.data.allCategoriesJson.edges.map((cat, id) => {\n if (cat.node.slug !== 'uncategorized') {\n let databaseId = parseInt(cat.node.databaseId)\n if (cat.node.parentDatabaseId === \"0\") {\n return (\n \n )\n } else {\n return (\n this.selectCategory(databaseId, e)} onClick={(e) => this.selectCategory(databaseId, e)}>\n \n {this.state.selectedCategories.includes(databaseId) ?\n \n :\n \n }\n\n \n )\n }\n }\n })\n\n return (\n \n \n \n \n \n \n \n \n {this.state.filterOpen ?\n <>\n \n Clear Selection\n >\n :\n <>\n \n Filter\n >\n }\n \n \n {categories}\n \n Clear Selection\n \n \n \n \n \n \n \n \n \n \n \n );\n }\n}\n\nexport default Query;","export default \"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTUiIHZpZXdCb3g9IjAgMCAxNSAxNSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE1IDBIMFYxNUgxNVYwWiIgZmlsbD0id2hpdGUiLz4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0wIDBIMTVWMTVIMFYwWk0xIDFWMTRIMTRWMUgxWiIgZmlsbD0iI0MxMjUxOCIvPgo8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTEyLjAzNTMgNS4wMjUyMkw2LjEwNTU0IDExLjA3MDdMMy40NjQ4NCA4LjM4Mjc5TDQuNTM0ODUgNy4zMzE1Nkw2LjEwNDY3IDguOTI5NDJMMTAuOTY0NCAzLjk3NDg1TDEyLjAzNTMgNS4wMjUyMloiIGZpbGw9IiNDMTI1MTgiLz4KPC9zdmc+Cg==\"","export default \"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTUiIHZpZXdCb3g9IjAgMCAxNSAxNSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3QgeD0iMC41IiB5PSIwLjUiIHdpZHRoPSIxNCIgaGVpZ2h0PSIxNCIgZmlsbD0id2hpdGUiIHN0cm9rZT0iI0NDQ0NDQyIvPgo8L3N2Zz4K\"","export default \"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjUiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAyNSAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjI1IiBoZWlnaHQ9IjIiIGZpbGw9ImJsYWNrIi8+CjxyZWN0IHg9IjQiIHk9IjciIHdpZHRoPSIxNyIgaGVpZ2h0PSIyIiBmaWxsPSJibGFjayIvPgo8cmVjdCB4PSI4IiB5PSIxNCIgd2lkdGg9IjkiIGhlaWdodD0iMiIgZmlsbD0iYmxhY2siLz4KPC9zdmc+Cg==\""],"names":["Card","styled","displayName","componentId","cardTopOrange","cardTopBlue","cardTopGreen","cardTopPurple","cardTopYellow","props","theme","colors","red","DownloadButton","white","orange","blue","green","purple","yellow","black","media","CardItemNew","_Component","_this","call","toggleModal","e","src","preventDefault","setState","modalOpen","state","toggleKalturaModal","kalturaModalOpen","_inheritsLoose","prototype","render","_this2","card","this","React","key","id","className","slug","color","dangerouslySetInnerHTML","__html","title","body","selector","download","target","href","link","IconDownload","alt","IconDownloadWhite","onClick","IconPlay","IconPlayWhite","includes","IconArrow","IconArrowWhite","VideoModal","KalturaModal","Component","VModal","Modal","withConfig","apply","arguments","isOpen","toggle","centered","ButtonClose","ModalBody","width","height","frameBorder","allow","allowFullScreen","Resources","ResourceListNew","_len","length","args","Array","_key","concat","listResources","tag","totalTags","getResources","resources","map","resource","catArray","node","categories","cat","k","push","arr","every","v","Flex","CategoryPanel","lightGrey","Filter","Content","CategoryList","ClearSelection","font","family","light","ResourcePage","handleScroll","scrollPosition","Math","max","window","pageYOffset","document","documentElement","scrollTop","innerWidth","sticky","selectCategory","category","undefined","keyCode","console","log","selectedCategories","index","indexOf","splice","toggleFilter","filterOpen","clearCategories","_proto","componentDidMount","addEventListener","componentWillUnmount","removeEventListener","data","allCategoriesJson","edges","databaseId","parseInt","parentDatabaseId","role","name","tabIndex","onKeyPress","style","float","paddingRight","Layout","HeaderCopy","Container","fluid","IconClose","iconFilter","allTeacherLibraryJson","StaticQuery","query"],"sourceRoot":""}
{card.body}
Filter