{"version":3,"sources":["webpack:///./src/components/post-link.js","webpack:///./src/components/header.js","webpack:///./src/pages/index.js"],"names":["Post","styled","div","Title","h2","Description","p","Date","span","StyledLink","Link","PostLink","post","to","frontmatter","slug","icon","faCalendarAlt","postedAt","updatedAt","faRedo","thumbnail","filename","title","description","excerpt","tags","Header","SiteTitle","xmlns","viewBox","data-name","d","defaultProps","siteTitle","h1","PostList","TagTitle","TagList","ul","IndexPage","data","allMarkdownRemark","edges","group","Posts","filter","edge","node","map","key","id","faTags","tag","fieldValue","kebabCase","totalCount"],"mappings":"6FAAA,iGAqBMA,EAAOC,IAAOC,IAAV,qEAAGD,CAAH,0XA6BJE,EAAQF,IAAOG,GAAV,sEAAGH,CAAH,qCAKLI,EAAcJ,IAAOK,EAAV,4EAAGL,CAAH,oCAKXM,EAAON,IAAOO,KAAV,qEAAGP,CAAH,wCAKJQ,EAAaR,YAAOS,QAAV,2EAAGT,CAAH,yGAcDU,IAtEE,SAAC,GAAD,IAAGC,EAAH,EAAGA,KAAH,OACf,kBAACZ,EAAD,KACE,kBAACS,EAAD,CAAYI,GAAI,SAAWD,EAAKE,YAAYC,MAC1C,kBAAC,IAAD,CAAiBC,KAAMC,MAAgB,kBAACV,EAAD,KAAOK,EAAKE,YAAYI,UAAmBN,EAAKE,YAAYK,UAAa,oCAAE,kBAAC,IAAD,CAAiBH,KAAMI,MAAS,kBAACb,EAAD,KAAOK,EAAKE,YAAYK,YAAuB,GAC9LP,EAAKE,YAAYO,UAAa,kBAAC,IAAD,CAAOC,SAAUV,EAAKE,YAAYO,YAAe,kBAAC,IAAD,CAAOC,SAN/E,0BAOV,kBAACnB,EAAD,KAAQS,EAAKE,YAAYS,OACtBX,EAAKE,YAAYU,YAAe,kBAACnB,EAAD,KAAcO,EAAKE,YAAYU,aAA6B,kBAACnB,EAAD,KAAcO,EAAKa,UAEpH,kBAAC,IAAD,CAAKC,KAAMd,EAAKE,YAAYY,U,kCCjBhC,6DAMMC,EAAS,SAAC,GAAD,E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WADzB","file":"component---src-pages-index-js-376399468985c4a66cac.js","sourcesContent":["import React from \"react\"\nimport { Link } from \"gatsby\"\nimport styled from 'styled-components'\nimport { FontAwesomeIcon } from '@fortawesome/react-fontawesome'\nimport { faCalendarAlt, faRedo } from '@fortawesome/free-solid-svg-icons'\nimport Image from \"./image\"\nimport Tag from \"./tag\"\nconst nothumb = 'thumbnail/nothumb.jpg'\n\nconst PostLink = ({ post }) => (\n \n \n {post.frontmatter.postedAt}{ (post.frontmatter.updatedAt) ? <>{post.frontmatter.updatedAt} : \"\" }\n { (post.frontmatter.thumbnail) ? : }\n {post.frontmatter.title}\n { (post.frontmatter.description) ? {post.frontmatter.description} : {post.excerpt} }\n \n \n \n)\n\nconst Post = styled.div`\n margin-bottom: 50px;\n background-color: #fff;\n padding: .5rem .8rem;;\n border: 1px solid #f1f1f1;\n border-radius: 5px;\n\n @media only screen and (min-width: 600px) {\n flex: 0 0 calc((100% - 15px) / 2);\n margin-right: 15px;\n\n &:nth-child(2n) {\n margin-right: 0;\n }\n }\n\n @media only screen and (min-width: 960px) {\n flex: 0 0 calc((100% - 30px) / 3);\n\n &:nth-child(2n) {\n margin-right: 15px;\n }\n\n &:nth-child(3n) {\n margin-right: 0;\n }\n }\n`\n\nconst Title = styled.h2`\n font-size: 1rem;\n margin: 1rem 0 0;\n`\n\nconst Description = styled.p`\n font-size: .7rem;\n margin: 1rem 0;\n`\n\nconst Date = styled.span`\n font-size: .8rem;\n margin-right: 1rem;\n`\n\nconst StyledLink = styled(Link)`\n text-decoration: none;\n color: inherit;\n\n &:hover {\n text-decoration: none;\n color: #4078c0;\n\n picture {\n opacity: .9;\n }\n }\n`\n\nexport default PostLink\n","import { Link } from \"gatsby\"\nimport PropTypes from \"prop-types\"\nimport React from \"react\"\nimport styled from 'styled-components'\nimport HeaderContainer from \"./headerContainer\"\n\nconst Header = ({ description }) => (\n \n \n \n \n \n web designer's blog built with GatsbyJS\n \n \n)\n\nHeader.propTypes = {\n siteTitle: PropTypes.string,\n description: PropTypes.string,\n}\n\nHeader.defaultProps = {\n siteTitle: ``,\n description: ``,\n}\n\nconst SiteTitle = styled.h1`\n margin: 0;\n fill: #333231;\n border: none;\n`\n\nconst Description = styled.p`\n color: #333231;\n text-decoration: none;\n margin: 0;\n`\n\nconst StyledLink = styled(Link)`\n text-decoration: none;\n color: inherit;\n\n &:hover {\n text-decoration: none;\n color: #4078c0;\n\n svg {\n fill: #4078c0;\n }\n }\n`\n\nexport default Header\n","import React from \"react\"\nimport { graphql, Link } from 'gatsby'\nimport styled from 'styled-components'\nimport { FontAwesomeIcon } from '@fortawesome/react-fontawesome'\nimport { faTags } from '@fortawesome/free-solid-svg-icons'\nimport kebabCase from \"lodash/kebabCase\"\nimport Layout from \"../components/layout\"\nimport Header from \"../components/header\"\nimport PostLink from \"../components/post-link\"\nimport SEO from \"../components/seo\"\n\nconst IndexPage = ({\n data: {\n allMarkdownRemark: { edges, group },\n },\n}) => {\n const Posts = edges\n .filter(edge => !!edge.node.frontmatter.postedAt) // You can filter your posts based on some criteria\n .map(edge => )\n\n return (\n <>\n
\n \n \n \n {Posts}\n \n タグ一覧\n \n {group.map(tag => (\n
  • \n \n {tag.fieldValue} ({tag.totalCount})\n \n
  • \n ))}\n
    \n
    \n \n )\n}\n\nconst PostList = styled.div`\n display: flex;\n flex-wrap: wrap;\n`\n\nconst TagTitle = styled.h2`\n font-size: 1rem;\n`\n\nconst TagList = styled.ul`\n font-size: .7rem;\n list-style-type: none;\n margin: 0;\n display: flex;\n flex-wrap: wrap;\n align-items: flex-start;\n\n li {\n margin-right: .5em;\n border: 1px solid #ccc;\n border-radius: 5px;\n padding: 3px 7px;\n background-color: #fff;\n }\n`\n\nconst StyledLink = styled(Link)`\n text-decoration: none;\n color: inherit;\n\n &:hover {\n text-decoration: none;\n color: #4078c0;\n }\n`\n\nexport const pageQuery = graphql`\n query {\n site {\n siteMetadata {\n description\n }\n }\n allMarkdownRemark(sort: { order: DESC, fields: [frontmatter___postedAt] }) {\n group(field: frontmatter___tags) {\n fieldValue\n totalCount\n }\n edges {\n node {\n id\n excerpt(pruneLength: 140)\n frontmatter {\n postedAt(formatString: \"YYYY/MM/DD\")\n updatedAt(formatString: \"YYYY/MM/DD\")\n title\n thumbnail\n tags\n slug\n description\n }\n }\n }\n }\n }\n`\n\nexport default IndexPage"],"sourceRoot":""}