Added main_entry templating structure
This commit is contained in:
8
src/components/main_entry.js
Normal file
8
src/components/main_entry.js
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
import React from "react"
|
||||||
|
|
||||||
|
export default props => (
|
||||||
|
<div id={props.title}>
|
||||||
|
<h1>{props.title}</h1>
|
||||||
|
<p>{props.text}</p>
|
||||||
|
</div>
|
||||||
|
)
|
||||||
@@ -1,11 +1,13 @@
|
|||||||
import React from "react"
|
import React from "react"
|
||||||
import Header from "../components/header"
|
import Header from "../components/header"
|
||||||
|
import MainEntry from "../components/main_entry"
|
||||||
import Footer from "../components/footer"
|
import Footer from "../components/footer"
|
||||||
|
|
||||||
export default () => (
|
export default () => (
|
||||||
<div>
|
<div>
|
||||||
<Header headline="The Urban Brothers" />
|
<Header headline="The Urban Brothers" />
|
||||||
<p></p>
|
<MainEntry title="Intro" text="" />
|
||||||
|
<MainEntry title="Ressources" text="" />
|
||||||
<Footer />
|
<Footer />
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user