bunch of stuff
This commit is contained in:
23
web/src/layouts/PostsLayout/PostsLayout.js
Normal file
23
web/src/layouts/PostsLayout/PostsLayout.js
Normal file
@@ -0,0 +1,23 @@
|
||||
import { Link, routes } from '@redwoodjs/router'
|
||||
import { Flash } from '@redwoodjs/web'
|
||||
|
||||
const PostsLayout = (props) => {
|
||||
return (
|
||||
<div className="rw-scaffold">
|
||||
<Flash timeout={1000} />
|
||||
<header className="rw-header">
|
||||
<h1 className="rw-heading rw-heading-primary">
|
||||
<Link to={routes.posts()} className="rw-link">
|
||||
Posts
|
||||
</Link>
|
||||
</h1>
|
||||
<Link to={routes.newPost()} className="rw-button rw-button-green">
|
||||
<div className="rw-button-icon">+</div> New Post
|
||||
</Link>
|
||||
</header>
|
||||
<main className="rw-main">{props.children}</main>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
export default PostsLayout
|
||||
Reference in New Issue
Block a user