-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpath---hello-new-7cc37a7543f98f1cbe03.js
2 lines (2 loc) · 11.2 KB
/
path---hello-new-7cc37a7543f98f1cbe03.js
1
2
webpackJsonp([0xe9a407c929ee],{501:function(n,a){n.exports={data:{site:{siteMetadata:{title:"Dustin Schau - Blog",author:"Dustin Schau"}},markdownRemark:{id:"/Users/okwen/www/gatsbyblog/content/blog/2018-07-22-hello-world/index.md absPath of file >>> MarkdownRemark",html:'<div>\n<video class="responsive" controls="controls">\n <source type="video/mp4" src="https://data.mashangxiegang.com/video/map3.mp4"></source>\n <p>Your browser does not support the video element.</p>\n</video>\n</div>',excerpt:"",timeToRead:1,frontmatter:{date:"2016年07月22日",rawDate:"2016-07-22T05:00:00.000Z",excerpt:"In this post, I'll do a deep dive on most of the parts of GraphQL. I'll start with the foundational concepts and then from this foundational basis I'll construct the value of GraphQL and illustrate how it could be a hugely transformative technology for server and client communication.",tags:null,title:"Hello new",image:{childImageSharp:{resize:{src:"/interpreter/static/ui-and-code-2e2425a623d633d1b1f4d4b156a32d6b-2c40b.png"}}}}}},pathContext:{prev:!1,next:{excerpt:"Welcome to the second version of my blog, powered by Gatsby , an incredible static site generator. Inspired by Daring Fireball , some detail will be provided for the technologies, applications, and techniques that power this site. Mac apps VSCode…",html:'<p>Welcome to the second version of my blog, powered by <a href="https://github.com/gatsbyjs/gatsby">Gatsby</a>, an incredible static site generator.</p>\n<p>Inspired by <a href="https://daringfireball.net/colophon/">Daring Fireball</a>, some detail will be provided for the technologies, applications, and techniques that power this site.</p>\n<h2 id="mac-apps"><a href="#mac-apps" aria-hidden="true" class="anchor"><svg aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>Mac apps</h2>\n<ul>\n<li><a href="https://code.visualstudio.com/">VSCode</a></li>\n<li><a href="https://hyper.is/">Hyper</a></li>\n</ul>\n<h2 id="backend-software"><a href="#backend-software" aria-hidden="true" class="anchor"><svg aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>Backend software</h2>\n<p>The site is hosted on <a href="https://mediatemple.net">MediaTemple</a>.</p>\n<p>Articles are written using Markdown, and are translated to HTML using <a href="https://www.npmjs.com/package/remark">remark</a>.</p>\n<p>The content is partially server-side rendered via <a href="https://github.com/gatsbyjs/gatsby">gatsby</a>, which uses react-dom to scaffold out the basis content, and then React running client side takes over for the now-hydrated web application. Theoretically, this will provide for great SEO as well as some dynamism via React/JavaScript run client side once the page is hydrated.</p>\n<p>The following gatsby plugins are each used as the backbone for much of the functionality present in this blog:</p>\n<ul>\n<li><a href="https://www.npmjs.com/package/gatsby-plugin-styled-components">gatsby-plugin-styled-components</a></li>\n<li><a href="https://www.npmjs.com/package/gatsby-source-filesystem">gatsby-source-filesystem</a></li>\n<li><a href="https://www.npmjs.com/package/gatsby-transformer-remark">gatsby-transformer-remark</a></li>\n<li><a href="https://www.npmjs.com/package/gatsby-remark-copy-linked-files">gatsby-remark-copy-linked-files</a></li>\n<li><a href="https://www.npmjs.com/package/gatsby-remark-smartypants">gatsby-remark-smartypants</a></li>\n<li><a href="https://www.npmjs.com/package/gatsby-plugin-react-helmet">gatsby-plugin-react-helmet</a></li>\n</ul>\n<h2 id="web-technologies"><a href="#web-technologies" aria-hidden="true" class="anchor"><svg aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>Web technologies</h2>\n<p>As much as possible, this site attempts to abide by current web standards with a baseline threshold targeting around or about IE 10. That means that my heavy usage of Flexbox (CSS) will not <em>quite</em> be rendered perfectly in every circumstance, but in general, the goal is to be progressively enhanced so that the site is still readable and usable in a browser that doesn’t have great support for Flexbox.</p>\n<h3 id="styled-components"><a href="#styled-components" aria-hidden="true" class="anchor"><svg aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a><a href="https://www.styled-components.com/">styled-components</a></h3>\n<p>The incredible CSS library <code>styled-components</code> is used for the majority of the components rendered by the blog, particularly those not parsed via Markdown.</p>\n<h3 id="progressive-enhancement"><a href="#progressive-enhancement" aria-hidden="true" class="anchor"><svg aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>Progressive enhancement</h3>\n<p>Whenever possible, I attempt to only use JavaScript to <em>enhance</em> the site, rather than serve as the only mechanism for functionality. For instance, the <a href="https://fonts.google.com/">Google fonts</a> Montserrat and Bitter are used, but they are loaded asyncronously with <a href="https://github.com/typekit/webfontloader"><code>webfontloader</code></a> and then persisted in sessionStorage with the following JavaScript snippet. This means that in an environment without JavaScript, the fallback fonts <code>Georgia, serif</code> will be used <em>until</em> the webfonts have been loaded.</p>\n<div class="gatsby-highlight">\n <pre class="language-javascript"><code><span class="token comment">/*\n * https://css-tricks.com/loading-web-fonts-with-the-web-font-loader/\n */</span>\n<span class="token keyword">export</span> <span class="token keyword">default</span> <span class="token keyword">function</span> <span class="token function">loadWebFonts</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>\n <span class="token keyword">const</span> families <span class="token operator">=</span> <span class="token punctuation">[</span><span class="token string">\'Montserrat:400,700\'</span><span class="token punctuation">,</span> <span class="token string">\'Bitter:400,700\'</span><span class="token punctuation">]</span><span class="token punctuation">;</span>\n <span class="token keyword">if</span> <span class="token punctuation">(</span>sessionStorage<span class="token punctuation">.</span>fonts <span class="token operator">===</span> families<span class="token punctuation">.</span><span class="token function">join</span><span class="token punctuation">(</span><span class="token string">\' \'</span><span class="token punctuation">)</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>\n document<span class="token punctuation">.</span>documentElement<span class="token punctuation">.</span>classList<span class="token punctuation">.</span><span class="token function">add</span><span class="token punctuation">(</span><span class="token string">\'wf-active\'</span><span class="token punctuation">)</span><span class="token punctuation">;</span>\n <span class="token punctuation">}</span>\n\n require<span class="token punctuation">.</span><span class="token function">ensure</span><span class="token punctuation">(</span><span class="token string">\'webfontloader\'</span><span class="token punctuation">,</span> <span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token operator">=></span> <span class="token punctuation">{</span>\n <span class="token keyword">const</span> WebFonts <span class="token operator">=</span> <span class="token function">require</span><span class="token punctuation">(</span><span class="token string">\'webfontloader\'</span><span class="token punctuation">)</span><span class="token punctuation">;</span>\n\n WebFonts<span class="token punctuation">.</span><span class="token function">load</span><span class="token punctuation">(</span><span class="token punctuation">{</span>\n <span class="token function">active</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>\n sessionStorage<span class="token punctuation">.</span>fonts <span class="token operator">=</span> families<span class="token punctuation">.</span><span class="token function">join</span><span class="token punctuation">(</span><span class="token string">\' \'</span><span class="token punctuation">)</span><span class="token punctuation">;</span>\n <span class="token punctuation">}</span><span class="token punctuation">,</span>\n google<span class="token punctuation">:</span> <span class="token punctuation">{</span>\n families\n <span class="token punctuation">}</span><span class="token punctuation">,</span>\n timeout<span class="token punctuation">:</span> <span class="token number">2000</span>\n <span class="token punctuation">}</span><span class="token punctuation">)</span><span class="token punctuation">;</span>\n <span class="token punctuation">}</span><span class="token punctuation">)</span><span class="token punctuation">;</span>\n<span class="token punctuation">}</span>\n</code></pre>\n </div>',id:"/Users/okwen/www/gatsbyblog/content/blog/2017-07-10-about-me/index.md absPath of file >>> MarkdownRemark",timeToRead:2,fields:{slug:"/about"},frontmatter:{date:"July 10, 2017",draft:null,tags:["tech stack","colophon","about"],title:"About this Site"}},slug:"/hello-new"}}}});
//# sourceMappingURL=path---hello-new-7cc37a7543f98f1cbe03.js.map