bunch of stuff
This commit is contained in:
19
web/src/pages/AboutPage/AboutPage.js
Normal file
19
web/src/pages/AboutPage/AboutPage.js
Normal file
@@ -0,0 +1,19 @@
|
||||
import { Link, routes } from '@redwoodjs/router'
|
||||
import BlogLayout from 'src/layouts/BlogLayout'
|
||||
|
||||
const AboutPage = () => {
|
||||
return (
|
||||
<BlogLayout>
|
||||
<h1>AboutPage</h1>
|
||||
<p>
|
||||
Find me in <tt>./web/src/pages/AboutPage/AboutPage.js</tt>
|
||||
</p>
|
||||
<p>
|
||||
My default route is named <tt>about</tt>, link to me with `
|
||||
<Link to={routes.about()}>About</Link>`
|
||||
</p>
|
||||
</BlogLayout>
|
||||
)
|
||||
}
|
||||
|
||||
export default AboutPage
|
||||
7
web/src/pages/AboutPage/AboutPage.stories.js
Normal file
7
web/src/pages/AboutPage/AboutPage.stories.js
Normal file
@@ -0,0 +1,7 @@
|
||||
import AboutPage from './AboutPage'
|
||||
|
||||
export const generated = () => {
|
||||
return <AboutPage />
|
||||
}
|
||||
|
||||
export default { title: 'Pages/AboutPage' }
|
||||
11
web/src/pages/AboutPage/AboutPage.test.js
Normal file
11
web/src/pages/AboutPage/AboutPage.test.js
Normal file
@@ -0,0 +1,11 @@
|
||||
import { render } from '@redwoodjs/testing'
|
||||
|
||||
import AboutPage from './AboutPage'
|
||||
|
||||
describe('AboutPage', () => {
|
||||
it('renders successfully', () => {
|
||||
expect(() => {
|
||||
render(<AboutPage />)
|
||||
}).not.toThrow()
|
||||
})
|
||||
})
|
||||
12
web/src/pages/EditPostPage/EditPostPage.js
Normal file
12
web/src/pages/EditPostPage/EditPostPage.js
Normal file
@@ -0,0 +1,12 @@
|
||||
import PostsLayout from 'src/layouts/PostsLayout'
|
||||
import EditPostCell from 'src/components/EditPostCell'
|
||||
|
||||
const EditPostPage = ({ id }) => {
|
||||
return (
|
||||
<PostsLayout>
|
||||
<EditPostCell id={id} />
|
||||
</PostsLayout>
|
||||
)
|
||||
}
|
||||
|
||||
export default EditPostPage
|
||||
13
web/src/pages/HomePage/HomePage.js
Normal file
13
web/src/pages/HomePage/HomePage.js
Normal file
@@ -0,0 +1,13 @@
|
||||
import BlogLayout from 'src/layouts/BlogLayout'
|
||||
import BlogPostsCell from 'src/components/BlogPostsCell'
|
||||
|
||||
const HomePage = () => {
|
||||
return (
|
||||
|
||||
<BlogLayout>
|
||||
<BlogPostsCell/>
|
||||
</BlogLayout>
|
||||
)
|
||||
}
|
||||
|
||||
export default HomePage
|
||||
7
web/src/pages/HomePage/HomePage.stories.js
Normal file
7
web/src/pages/HomePage/HomePage.stories.js
Normal file
@@ -0,0 +1,7 @@
|
||||
import HomePage from './HomePage'
|
||||
|
||||
export const generated = () => {
|
||||
return <HomePage />
|
||||
}
|
||||
|
||||
export default { title: 'Pages/HomePage' }
|
||||
11
web/src/pages/HomePage/HomePage.test.js
Normal file
11
web/src/pages/HomePage/HomePage.test.js
Normal file
@@ -0,0 +1,11 @@
|
||||
import { render } from '@redwoodjs/testing'
|
||||
|
||||
import HomePage from './HomePage'
|
||||
|
||||
describe('HomePage', () => {
|
||||
it('renders successfully', () => {
|
||||
expect(() => {
|
||||
render(<HomePage />)
|
||||
}).not.toThrow()
|
||||
})
|
||||
})
|
||||
12
web/src/pages/NewPostPage/NewPostPage.js
Normal file
12
web/src/pages/NewPostPage/NewPostPage.js
Normal file
@@ -0,0 +1,12 @@
|
||||
import PostsLayout from 'src/layouts/PostsLayout'
|
||||
import NewPost from 'src/components/NewPost'
|
||||
|
||||
const NewPostPage = () => {
|
||||
return (
|
||||
<PostsLayout>
|
||||
<NewPost />
|
||||
</PostsLayout>
|
||||
)
|
||||
}
|
||||
|
||||
export default NewPostPage
|
||||
12
web/src/pages/PostPage/PostPage.js
Normal file
12
web/src/pages/PostPage/PostPage.js
Normal file
@@ -0,0 +1,12 @@
|
||||
import PostsLayout from 'src/layouts/PostsLayout'
|
||||
import PostCell from 'src/components/PostCell'
|
||||
|
||||
const PostPage = ({ id }) => {
|
||||
return (
|
||||
<PostsLayout>
|
||||
<PostCell id={id} />
|
||||
</PostsLayout>
|
||||
)
|
||||
}
|
||||
|
||||
export default PostPage
|
||||
12
web/src/pages/PostsPage/PostsPage.js
Normal file
12
web/src/pages/PostsPage/PostsPage.js
Normal file
@@ -0,0 +1,12 @@
|
||||
import PostsLayout from 'src/layouts/PostsLayout'
|
||||
import PostsCell from 'src/components/PostsCell'
|
||||
|
||||
const PostsPage = () => {
|
||||
return (
|
||||
<PostsLayout>
|
||||
<PostsCell />
|
||||
</PostsLayout>
|
||||
)
|
||||
}
|
||||
|
||||
export default PostsPage
|
||||
Reference in New Issue
Block a user