Adding tailwind as css library, build config and fetch posts fix

This commit is contained in:
Moris Zen
2018-06-27 12:06:15 +02:00
parent 8dc66673d0
commit 0749dfa80b
9 changed files with 21245 additions and 10 deletions

View File

@@ -3,9 +3,10 @@ import PropTypes from 'prop-types'
import Helmet from 'react-helmet'
import Header from '../components/header'
import "../styles/index.css"
const Layout = ({ children, data }) => (
<div>
<div className="font-sans">
<Helmet
title={data.site.siteMetadata.title}
meta={[

View File

@@ -6,6 +6,7 @@ class PostDefault extends Component {
return (
<div>
<h1>Specific Post - {data.wordpressPost.title}</h1>
<h1>Slug - {data.wordpressPost.slug}</h1>
<div dangerouslySetInnerHTML={{
__html: data.wordpressPost.content
}}

View File

@@ -3,6 +3,7 @@ import React from 'react'
const IndexPage = () => (
<div>
<h1>Index page</h1>
<p>Testing</p>
</div>
)

20201
src/styles/index.css Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,5 @@
@tailwind preflight;
@tailwind components;
@tailwind utilities;