Commit a10deaf3 authored by David Rhoderick's avatar David Rhoderick
Browse files

Adding instructions as comments.

parent b21183e2
......@@ -2,6 +2,21 @@ import React from 'react'
import {styled, connect} from 'frontity'
const Post = ({state}) => {
const data = state.source.get(state.router.link);
const post = state.source[data.type][data.id];
const {template, acf} = post // Lazar, test this for "mvm-default-page.php"
const {content} = acf // This contains an array of ACF Flexible Content layouts
// Make this component return a <Switch> component (https://docs.frontity.org/api-reference-1/frontity-components#switch)
// Create a new component called <ComingSoon> and add the content below to that.
// Also, please fix the display of it, it's currently being hidden by the header
// so it probably needs a top margin for now.
// Then create a new component called <Page> and show it if template === "mvm-default-page.php"
// Each of the elements of the content array above should render it's header as the content for an <h2> and it's content into the html property of an <Html2React> component
// <Html2React> details can be found at https://docs.frontity.org/api-reference-1/frontity-html2react#how-to-use (it's already installed, it needs to be instantiated from libraries)
return (
<section>
<h1>Coming soon...</h1>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment