forked from wp-graphql/wpgraphql.com
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- add support for twitter embeds coming from WordPress
- add some global css (can't seem to get chakra theme to use globals) - initial templates for blog (so I can compare content)
- Loading branch information
Showing
24 changed files
with
426 additions
and
105 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,63 @@ | ||
import React from 'react' | ||
import { | ||
Box, | ||
Flex, | ||
Heading, | ||
Link, | ||
} from "@chakra-ui/core" | ||
import { graphql, Link as GatsbyLink } from "gatsby"; | ||
import Layout from '../components/Layout' | ||
import Container from "../components/Container"; | ||
import Container from "../components/Container" | ||
import PageTransition from "../components/PageTransition" | ||
import Breadcrumb from "../components/breadcrumb/Breadcrumb"; | ||
|
||
const Filters = ({data}) => { | ||
|
||
const crumbs = [ | ||
{ | ||
title: 'Blog', | ||
path: '/blog', | ||
isCurrentPage: true, | ||
} | ||
]; | ||
|
||
const Blog = () => { | ||
return ( | ||
<Layout> | ||
<Container> | ||
<h2>Blog!</h2> | ||
<Flex> | ||
<Box style={{flex: 1}}> | ||
<Box pt={3} mt="0" mx="auto" maxW="48rem" minH="80vh"> | ||
<PageTransition> | ||
<Breadcrumb crumbs={crumbs} /> | ||
<Heading mb={10} as={'h1'}>Blog</Heading> | ||
{data.allWpPost.nodes.map( post => { | ||
return ( | ||
<Box mb={5}> | ||
<Link as={GatsbyLink} to={post.uri}>{post.title}</Link> | ||
</Box> | ||
); | ||
})} | ||
</PageTransition> | ||
</Box> | ||
</Box> | ||
</Flex> | ||
</Container> | ||
</Layout> | ||
); | ||
} | ||
|
||
export default Blog; | ||
export const data = graphql` | ||
{ | ||
allWpPost(sort: {order: DESC, fields: date}) { | ||
nodes { | ||
title | ||
id | ||
content | ||
date | ||
uri | ||
} | ||
} | ||
} | ||
` | ||
|
||
export default Filters; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,47 @@ | ||
.wp-block-image img { | ||
width: auto!important; | ||
margin-top: 1rem; | ||
margin-bottom: 1rem; | ||
max-width: 100%; | ||
height: auto; | ||
} | ||
|
||
.wp-block-image .aligncenter { | ||
margin-left: auto; | ||
margin-right: auto; | ||
display: table; | ||
} | ||
|
||
.wp-block-image .aligncenter figcaption { | ||
text-align: center; | ||
} | ||
|
||
.wp-block-image figcaption { | ||
font-size: 0.75em; | ||
margin-top: 1em; | ||
} | ||
|
||
table { | ||
font-size: 18px; | ||
padding: 0; | ||
width: 100%; | ||
margin-top: 2rem; | ||
margin-bottom: 2rem; | ||
} | ||
table td { | ||
padding: 15px; | ||
border-bottom: solid 1px #ccc; | ||
} | ||
table tr:nth-child(even) { | ||
background: #ccc; | ||
} | ||
.chakra-ui-dark table tr:nth-child(even) { | ||
background: #1A365D; | ||
} | ||
|
||
.chakra-ui-dark table td { | ||
padding: 15px; | ||
border-bottom: solid 1px #20222c; | ||
} | ||
iframe { | ||
margin: 1rem 0; | ||
} |
Oops, something went wrong.