Pre-deployment
This commit is contained in:
26
web/src/layouts/BlogLayout/BlogLayout.js
Normal file
26
web/src/layouts/BlogLayout/BlogLayout.js
Normal file
@@ -0,0 +1,26 @@
|
||||
import { Link,routes } from '@redwoodjs/router'
|
||||
|
||||
const BlogLayout = ({ children }) => {
|
||||
return (
|
||||
<>
|
||||
<header>
|
||||
<h1>
|
||||
<Link to={routes.home()}>Redwood Blog</Link>
|
||||
</h1>
|
||||
<nav>
|
||||
<ul>
|
||||
<li>
|
||||
<Link to={routes.about()}>About</Link>
|
||||
</li>
|
||||
<li>
|
||||
<Link to={routes.contact()}>Contact</Link>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
</header>
|
||||
<main>{children}</main>
|
||||
</>
|
||||
)
|
||||
}
|
||||
|
||||
export default BlogLayout
|
||||
Reference in New Issue
Block a user