Adding tailwind as css library, build config and fetch posts fix
This commit is contained in:
@@ -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={[
|
||||
|
||||
@@ -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
|
||||
}}
|
||||
@@ -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
20201
src/styles/index.css
Normal file
File diff suppressed because it is too large
Load Diff
5
src/styles/index.tailwind.css
Normal file
5
src/styles/index.tailwind.css
Normal file
@@ -0,0 +1,5 @@
|
||||
@tailwind preflight;
|
||||
|
||||
@tailwind components;
|
||||
|
||||
@tailwind utilities;
|
||||
Reference in New Issue
Block a user