{"version":3,"sources":["webpack://alliance-for-young-artists-and-writers/./src/components/gallery-widget.js","webpack://alliance-for-young-artists-and-writers/./src/assets/images/gallery-placeholders/videoGameDesign1.jpg","webpack://alliance-for-young-artists-and-writers/./src/components/gallery/gallery-card.js","webpack://alliance-for-young-artists-and-writers/./src/components/gallery/gallery-data.js","webpack://alliance-for-young-artists-and-writers/./src/components/home-callout.js","webpack://alliance-for-young-artists-and-writers/./src/assets/images/uploads/home-feature-sample-1.jpg","webpack://alliance-for-young-artists-and-writers/./src/assets/images/uploads/home-feature-sample-2.jpg","webpack://alliance-for-young-artists-and-writers/./src/assets/images/uploads/home-feature-sample-3.png","webpack://alliance-for-young-artists-and-writers/./src/assets/images/uploads/home-feature-sample-4.jpg","webpack://alliance-for-young-artists-and-writers/./src/pages/index.js"],"names":["GalleryEndpoints","state","work","students","getStudents","winners","personName","concat","collaborators","setState","componentDidMount","this","props","categoryName","fetch","process","id","headers","Accept","then","response","json","responseJson","catch","error","console","log","render","Location","location","assetType","className","Link","oldLocation","JSON","parse","stringify","title","to","src","thumbUrl","alt","VgLogo","isArt","isFutureNew","isWriting","style","backgroundColor","writingColor","position","top","left","excerpt","width","height","zIndex","background","Component","galleryWidgetRandom","galleryRandom","galleryRandomNoPage","byLines","MenuHero","StaticQuery","query","data","aria-label","allWpMenu","nodes","menuItems","map","menuItem","i","key","role","path","label","backgroundImage","useState","openSection","setOpenSection","toggleSection","isHomePage","description","site","siteMetadata","href","imgFeature1","imgFeature2","imgFeature3","imgFeature4"],"mappings":"mMAKqBA,uB,yFCLrB,EAAe,IAA0B,+D,UC+LzC,EA3LA,oJACEC,MAAQ,CACNC,KAAM,GACNC,SAAU,IAHd,EAMEC,YAAc,SAAAF,GACZ,IAAIG,EAAU,CAACH,EAAKI,YAAYC,OAAOL,EAAKM,eAC5C,EAAKC,SAAS,CAAEN,SAAUE,KAR9B,0CAWEK,kBAAA,WAAqB,IAAD,OAEmB,sBAAjCC,KAAKC,MAAMV,KAAKW,aAE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AMC,OAAO,MAAMb,IAAI,0BACpD,wBAAMV,UAAU,WAAU,yDAG5B,0BACC,gBAAC,EAAAC,KAAD,CAAMM,GAAG,YACR,uBAAKC,IAAKiD,EAAanC,MAAM,MAAMC,OAAO,MAAMb,IAAI,0BACpD,wBAAMV,UAAU,WAAU,sDAG5B,0BACC,gBAAC,EAAAC,KAAD,CAAMM,GAAG,iBACR,uBAAKC,IAAKkD,EAAapC,MAAM,MAAMC,OAAO,MAAMb,IAAI,0BACpD,wBAAMV,UAAU,WAAU,2DAG5B,0BACM,gBAAC,IAAD,CAAcuD,KAAK,qCACvB,uBAAK/C,IAAKmD,EAAarC,MAAM,MAAMC,OAAO,MAAMb,IAAI,0BACpD,wBAAMV,UAAU,WAAU","file":"component---src-pages-index-js-33ab2eb6ce4fae22dca1.js","sourcesContent":["import React, { Component } from \"react\"\nimport { Link } from \"gatsby\"\nimport GalleryCard from \"./gallery/gallery-card\"\nimport GalleryEndpoints from \"./gallery/gallery-data\"\n\nconst galleryQuery = GalleryEndpoints.galleryWidgetRandom\n\nconst writingColorArray = [\n \"rgba(69, 148, 61, 1)\",\n \"rgba(243, 120, 54, .8)\",\n \"rgba(229, 81, 45, 1)\",\n \"rgba(46, 146, 153, 1)\",\n \"rgba(46, 147, 154, 1)\",\n \"rgba(44, 132, 201, 1)\"\n]\n\nexport class GalleryWidget extends Component {\n state = {\n works: [],\n endpoints: GalleryEndpoints\n }\n\n componentDidMount() {\n const worksArray = [];\n\n let randomPage = Math.floor(Math.random() * Math.floor(20));\n const galleryQuery = GalleryEndpoints.galleryRandomNoPage + String(0) \n fetch(process.env.GATSBY_ORS_GALLERY + galleryQuery)\n .then(response => response.json())\n .then(responseJson => {\n let i = 0\n for(i = 0; i < 3; i++) {\n worksArray.push(responseJson.arts.works[i])\n }\n let randomNum = Math.floor(Math.random() * Math.floor(4));\n\n worksArray.splice(randomNum, 0, responseJson.writings.works[0]);\n\n this.setState({ works: worksArray })\n })\n .catch(error => {\n console.log(\"error\", error)\n })\n }\n\n render() {\n return (\n \n
\n

Gallery

\n \n \n \n View More Works\n \n
\n \n )\n }\n}\n\nexport default GalleryWidget\n","export default __webpack_public_path__ + \"static/videoGameDesign1-1bbbf70f44ee32b88a7179d001f3deb2.jpg\";","import React, { Component } from \"react\"\nimport VgLogo from \"../../assets/images/gallery-placeholders/videoGameDesign1.jpg\"\nimport { Link, Location } from \"@reach/router\"\n\nexport class GalleryCard extends Component {\n state = {\n work: {},\n students: [],\n }\n\n getStudents = work => {\n let winners = [work.personName].concat(work.collaborators)\n this.setState({ students: winners })\n }\n\n componentDidMount() {\n\n if (this.props.work.categoryName === \"Writing Portfolio\") {\n \n this.setState(\n {\n work: this.props.work\n },\n () => {\n this.getStudents(this.props.work)\n }\n )\n \n } else {\n fetch(process.env.GATSBY_ORS_GALLERY + \"/\" + this.props.work.id, {\n headers: {\n Accept: \"application/json\",\n \"Access-Control-Allow-Origin\": \"*\",\n },\n })\n .then(response => response.json())\n .then(responseJson => {\n this.setState(\n {\n work: responseJson,\n },\n () => {\n this.getStudents(this.state.work)\n }\n )\n })\n .catch(error => {\n console.log(\"error\", error)\n })\n }\n }\n \n render() {\n\n return (\n \n {({ location }) => (\n
\n {this.props.work.assetType == \"video\" ? (\n
  • \n
    \n \n \n \n {this.props.work.personName}\n \n \n
    \n
  • \n ) : this.props.work.categoryName == \"Video Game Design\" ? (\n
  • \n
    \n \n \n \n {this.props.work.personName}\n \n \n
    \n
  • \n ) : this.props.work.isArt == true || this.props.work.isFutureNew ? (\n
  • \n
    \n \n \n \n {this.props.work.personName}\n \n \n
    \n
  • \n ) : this.props.work.isWriting && this.props.work.isFutureNew ? (\n
  • \n
    \n \n \n \n {this.props.work.personName}\n \n \n
    \n
  • \n ) : (\n
  • \n \n \n
    \n {this.props.work.excerpt}\n
    \n \n \n \n {this.props.work.personName}\n \n \n
  • \n )}\n
    \n )}\n
    \n )\n }\n}\n\nexport default GalleryCard\n","\nconst GalleryEndpoints = {\n\n\tgalleryWidgetRandom: \"/random?r.art_number=3&r.writing_number=3&r.year=2023&r.page=0\",\n\tgalleryRandom: \"/random?r.art_number=8&r.writing_number=8&r.year=2023&r.page=0\" ,\n\tgalleryRandomNoPage: \"/random?r.art_number=8&r.writing_number=8&r.year=2023&r.page=\"\n\t\n}\n\nexport default GalleryEndpoints","import React from \"react\"\nimport { StaticQuery, graphql, Link } from \"gatsby\"\n\nimport arrow from \"../assets/images/common/arrow-white.svg\"\n\nconst byLines = [\n \"Discover how entering the Scholastic Awards opens the door for recognition, scholarships, and more\", \n \"Exhibitions and workshop for teens, professional development for educators\", \n \"Empower creative teens and elevate youth voices with your support\"\n]\n\nexport default function MenuHero() {\n return (\n (\n
    \n \n
    \n )}\n />\n )\n}\n","export default __webpack_public_path__ + \"static/home-feature-sample-1-0302cc57ca4494e1659842d5e94de64e.jpg\";","export default __webpack_public_path__ + \"static/home-feature-sample-2-46ddf329d4b2f44429ca6d5a934cf28e.jpg\";","export default __webpack_public_path__ + \"static/home-feature-sample-3-48362902a470bea1825b05fc6ce6cd9b.png\";","export default __webpack_public_path__ + \"static/home-feature-sample-4-50f5823a4d0d1c5271ad3d5948714604.jpg\";","import React, { useState } from \"react\";\nimport { Link, graphql } from \"gatsby\"\n\nimport Layout from \"../components/layout\"\nimport Seo from \"../components/seo\"\n\nimport { OutboundLink } from \"gatsby-plugin-google-gtag\"\n\nimport HomeCallout from \"../components/home-callout\"\nimport GalleryWidget from \"../components/gallery-widget\"\n\nimport imgFeature1 from \"../assets/images/uploads/home-feature-sample-1.jpg\"\nimport imgFeature2 from \"../assets/images/uploads/home-feature-sample-2.jpg\"\nimport imgFeature3 from \"../assets/images/uploads/home-feature-sample-3.png\"\nimport imgFeature4 from \"../assets/images/uploads/home-feature-sample-4.jpg\"\n\nconst Home = ({ data }) => {\n\n const [openSection, setOpenSection] = useState(false);\n const toggleSection = () => {\n setOpenSection(!openSection);\n };\n\n return (\n \n \n\n
    \n
    \n
    \n Supporting the Future of Creativity since 1923\n
    \n
    \n\n \n\n\n\n
    \n\t\t\t\t\t
      \n\t\t\t\t\t\t
    • \n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\"Art\n\t\t\t\t\t\t\t\tScholastic Awards News\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t
    • \n\t\t\t\t\t\t
    • \n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\"Art\n\t\t\t\t\t\t\t\tAward-Winning Works\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t
    • \n\t\t\t\t\t\t
    • \n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\"Art\n\t\t\t\t\t\t\t\tLearn About Scholarships\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t
    • \n\t\t\t\t\t\t
    • \n \n\t\t\t\t\t\t\t\t\"Art\n\t\t\t\t\t\t\t\tCreate Your Account\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t
    • \n\t\t\t\t\t
    \n\t\t\t\t
    \n \n\n {/*
    \n \n\n
    */}\n
    \n\n\n
    \n )\n}\n\nexport default Home\n\nexport const pageQuery = graphql`\n query HomePageQuery {\n site {\n siteMetadata {\n author\n description\n title\n }\n }\n }\n`"],"sourceRoot":""}