🔍 chore: seo component on all pages
This commit is contained in:
@@ -1,9 +1,12 @@
|
||||
import MainLayout from 'src/layouts/MainLayout'
|
||||
import CommentCell from 'src/components/CommentCell'
|
||||
import Seo from 'src/components/Seo/Seo'
|
||||
|
||||
const CommentPage = ({ id }) => {
|
||||
return (
|
||||
<MainLayout>
|
||||
<Seo title="Comment" description="Comment page" lang="en-US" />
|
||||
|
||||
<CommentCell id={id} />
|
||||
</MainLayout>
|
||||
)
|
||||
|
||||
@@ -1,9 +1,12 @@
|
||||
import MainLayout from 'src/layouts/MainLayout'
|
||||
import CommentsCell from 'src/components/CommentsCell'
|
||||
import Seo from 'src/components/Seo/Seo'
|
||||
|
||||
const CommentsPage = () => {
|
||||
return (
|
||||
<MainLayout>
|
||||
<Seo title="Comments" description="Comments page" lang="en-US" />
|
||||
|
||||
<CommentsCell />
|
||||
</MainLayout>
|
||||
)
|
||||
|
||||
@@ -1,9 +1,12 @@
|
||||
import MainLayout from 'src/layouts/MainLayout'
|
||||
import EditCommentCell from 'src/components/EditCommentCell'
|
||||
import Seo from 'src/components/Seo/Seo'
|
||||
|
||||
const EditCommentPage = ({ id }) => {
|
||||
return (
|
||||
<MainLayout>
|
||||
<Seo title="Edit comment" description="Edit comment page" lang="en-US" />
|
||||
|
||||
<EditCommentCell id={id} />
|
||||
</MainLayout>
|
||||
)
|
||||
|
||||
@@ -2,11 +2,14 @@ import { useAuth } from '@redwoodjs/auth'
|
||||
|
||||
import MainLayout from 'src/layouts/MainLayout'
|
||||
import Part2Cell from 'src/components/Part2Cell'
|
||||
import Seo from 'src/components/Seo/Seo'
|
||||
|
||||
const EditPart2Page = ({ userName, partTitle }) => {
|
||||
const { currentUser } = useAuth()
|
||||
return (
|
||||
<MainLayout>
|
||||
<Seo title={partTitle} description="Edit part page" lang="en-US" />
|
||||
|
||||
<Part2Cell
|
||||
userName={userName}
|
||||
partTitle={partTitle}
|
||||
|
||||
@@ -1,9 +1,12 @@
|
||||
import MainLayout from 'src/layouts/MainLayout'
|
||||
import EditPartCell from 'src/components/EditPartCell'
|
||||
import Seo from 'src/components/Seo/Seo'
|
||||
|
||||
const EditPartPage = ({ id }) => {
|
||||
return (
|
||||
<MainLayout>
|
||||
<Seo title="Edit part" description="Edit part page" lang="en-US" />
|
||||
|
||||
<EditPartCell id={id} />
|
||||
</MainLayout>
|
||||
)
|
||||
|
||||
@@ -1,9 +1,16 @@
|
||||
import MainLayout from 'src/layouts/MainLayout'
|
||||
import EditPartReactionCell from 'src/components/EditPartReactionCell'
|
||||
import Seo from 'src/components/Seo/Seo'
|
||||
|
||||
const EditPartReactionPage = ({ id }) => {
|
||||
return (
|
||||
<MainLayout>
|
||||
<Seo
|
||||
title="Edit part reaction"
|
||||
description="Edit part reaction page"
|
||||
lang="en-US"
|
||||
/>
|
||||
|
||||
<EditPartReactionCell id={id} />
|
||||
</MainLayout>
|
||||
)
|
||||
|
||||
@@ -1,9 +1,12 @@
|
||||
import MainLayout from 'src/layouts/MainLayout'
|
||||
import EditUser2Cell from 'src/components/EditUser2Cell'
|
||||
import Seo from 'src/components/Seo/Seo'
|
||||
|
||||
const UserPage = ({ userName }) => {
|
||||
return (
|
||||
<MainLayout>
|
||||
<Seo title={userName} description="Add new part page" lang="en-US" />
|
||||
|
||||
<EditUser2Cell userName={userName} />
|
||||
</MainLayout>
|
||||
)
|
||||
|
||||
@@ -1,9 +1,12 @@
|
||||
import MainLayout from 'src/layouts/MainLayout'
|
||||
import EditUserCell from 'src/components/EditUserCell'
|
||||
import Seo from 'src/components/Seo/Seo'
|
||||
|
||||
const EditUserPage = ({ id }) => {
|
||||
return (
|
||||
<MainLayout>
|
||||
<Seo title="Edit user" description="Edit user page" lang="en-US" />
|
||||
|
||||
<EditUserCell id={id} />
|
||||
</MainLayout>
|
||||
)
|
||||
|
||||
@@ -6,9 +6,12 @@
|
||||
// avoid the possibility that it will cause its own error. If it does, Redwood will
|
||||
// still render a generic error page, but your users will prefer something a bit more
|
||||
// thoughtful. =)
|
||||
import Seo from 'src/components/Seo/Seo'
|
||||
|
||||
export default () => (
|
||||
<main>
|
||||
<Seo title="Fatal error" description="Fatal error" lang="en-US" />
|
||||
|
||||
<style
|
||||
dangerouslySetInnerHTML={{
|
||||
__html: `
|
||||
|
||||
@@ -1,9 +1,12 @@
|
||||
import MainLayout from 'src/layouts/MainLayout'
|
||||
import IdePartCell from 'src/components/IdePartCell'
|
||||
import Seo from 'src/components/Seo/Seo'
|
||||
|
||||
const IdePartPage = ({ userName, partTitle }) => {
|
||||
return (
|
||||
<MainLayout>
|
||||
<Seo title={partTitle} description={partTitle} lang="en-US" />
|
||||
|
||||
<IdePartCell userName={userName} partTitle={partTitle} />
|
||||
</MainLayout>
|
||||
)
|
||||
|
||||
@@ -1,9 +1,16 @@
|
||||
import MainLayout from 'src/layouts/MainLayout'
|
||||
import NewComment from 'src/components/NewComment'
|
||||
import Seo from 'src/components/Seo/Seo'
|
||||
|
||||
const NewCommentPage = () => {
|
||||
return (
|
||||
<MainLayout>
|
||||
<Seo
|
||||
title="New comment page"
|
||||
description="New comment page"
|
||||
lang="en-US"
|
||||
/>
|
||||
|
||||
<NewComment />
|
||||
</MainLayout>
|
||||
)
|
||||
|
||||
@@ -4,6 +4,7 @@ import { navigate, routes } from '@redwoodjs/router'
|
||||
|
||||
import MainLayout from 'src/layouts/MainLayout'
|
||||
import Part2Cell from 'src/components/Part2Cell'
|
||||
import Seo from 'src/components/Seo/Seo'
|
||||
|
||||
const NewPart2Page = ({ userName }) => {
|
||||
const { isAuthenticated, currentUser } = useAuth()
|
||||
@@ -12,6 +13,8 @@ const NewPart2Page = ({ userName }) => {
|
||||
}, [currentUser])
|
||||
return (
|
||||
<MainLayout>
|
||||
<Seo title="New part" description="Add new part page" lang="en-US" />
|
||||
|
||||
<Part2Cell
|
||||
userName={userName}
|
||||
currentUserId={currentUser?.sub}
|
||||
|
||||
@@ -1,9 +1,12 @@
|
||||
import MainLayout from 'src/layouts/MainLayout'
|
||||
import NewPart from 'src/components/NewPart'
|
||||
import Seo from 'src/components/Seo/Seo'
|
||||
|
||||
const NewPartPage = () => {
|
||||
return (
|
||||
<MainLayout>
|
||||
<Seo title="New Part" description="New part page" lang="en-US" />
|
||||
|
||||
<NewPart />
|
||||
</MainLayout>
|
||||
)
|
||||
|
||||
@@ -1,9 +1,16 @@
|
||||
import MainLayout from 'src/layouts/MainLayout'
|
||||
import NewPartReaction from 'src/components/NewPartReaction'
|
||||
import Seo from 'src/components/Seo/Seo'
|
||||
|
||||
const NewPartReactionPage = () => {
|
||||
return (
|
||||
<MainLayout>
|
||||
<Seo
|
||||
title="New part reaction"
|
||||
description="New part reaction page"
|
||||
lang="en-US"
|
||||
/>
|
||||
|
||||
<NewPartReaction />
|
||||
</MainLayout>
|
||||
)
|
||||
|
||||
@@ -1,9 +1,12 @@
|
||||
import MainLayout from 'src/layouts/MainLayout'
|
||||
import NewUser from 'src/components/NewUser'
|
||||
import Seo from 'src/components/Seo/Seo'
|
||||
|
||||
const NewUserPage = () => {
|
||||
return (
|
||||
<MainLayout>
|
||||
<Seo title="New user" description="New user page" lang="en-US" />
|
||||
|
||||
<NewUser />
|
||||
</MainLayout>
|
||||
)
|
||||
|
||||
@@ -1,7 +1,10 @@
|
||||
import MainLayout from 'src/layouts/MainLayout'
|
||||
import Seo from 'src/components/Seo/Seo'
|
||||
|
||||
export default () => (
|
||||
<MainLayout>
|
||||
<Seo title="Page not found" description="404 page not found" lang="en-US" />
|
||||
|
||||
<style
|
||||
dangerouslySetInnerHTML={{
|
||||
__html: `
|
||||
|
||||
@@ -2,11 +2,14 @@ import { useAuth } from '@redwoodjs/auth'
|
||||
|
||||
import MainLayout from 'src/layouts/MainLayout'
|
||||
import Part2Cell from 'src/components/Part2Cell'
|
||||
import Seo from 'src/components/Seo/Seo'
|
||||
|
||||
const Part2Page = ({ userName, partTitle }) => {
|
||||
const { currentUser } = useAuth()
|
||||
return (
|
||||
<MainLayout>
|
||||
<Seo title={partTitle} description={partTitle} lang="en-US" />
|
||||
|
||||
<Part2Cell
|
||||
userName={userName}
|
||||
partTitle={partTitle}
|
||||
|
||||
@@ -1,9 +1,12 @@
|
||||
import MainLayout from 'src/layouts/MainLayout'
|
||||
import PartCell from 'src/components/PartCell'
|
||||
import Seo from 'src/components/Seo/Seo'
|
||||
|
||||
const PartPage = ({ id }) => {
|
||||
return (
|
||||
<MainLayout>
|
||||
<Seo title="Part" description="Part page" lang="en-US" />
|
||||
|
||||
<PartCell id={id} />
|
||||
</MainLayout>
|
||||
)
|
||||
|
||||
@@ -1,9 +1,16 @@
|
||||
import MainLayout from 'src/layouts/MainLayout'
|
||||
import PartReactionCell from 'src/components/PartReactionCell'
|
||||
import Seo from 'src/components/Seo/Seo'
|
||||
|
||||
const PartReactionPage = ({ id }) => {
|
||||
return (
|
||||
<MainLayout>
|
||||
<Seo
|
||||
title="Part reaction"
|
||||
description="Part reaction page"
|
||||
lang="en-US"
|
||||
/>
|
||||
|
||||
<PartReactionCell id={id} />
|
||||
</MainLayout>
|
||||
)
|
||||
|
||||
@@ -1,9 +1,16 @@
|
||||
import MainLayout from 'src/layouts/MainLayout'
|
||||
import PartReactionsCell from 'src/components/PartReactionsCell'
|
||||
import Seo from 'src/components/Seo/Seo'
|
||||
|
||||
const PartReactionsPage = () => {
|
||||
return (
|
||||
<MainLayout>
|
||||
<Seo
|
||||
title="Part reactions"
|
||||
description="Part reactions page"
|
||||
lang="en-US"
|
||||
/>
|
||||
|
||||
<PartReactionsCell />
|
||||
</MainLayout>
|
||||
)
|
||||
|
||||
@@ -1,9 +1,12 @@
|
||||
import MainLayout from 'src/layouts/MainLayout'
|
||||
import PartsCell from 'src/components/PartsCell'
|
||||
import Seo from 'src/components/Seo/Seo'
|
||||
|
||||
const PartsPage = () => {
|
||||
return (
|
||||
<MainLayout>
|
||||
<Seo title="Parts page" description="Cadhub parts page" lang="en-US" />
|
||||
|
||||
<PartsCell />
|
||||
</MainLayout>
|
||||
)
|
||||
|
||||
@@ -1,9 +1,12 @@
|
||||
import MainLayout from 'src/layouts/MainLayout'
|
||||
import User2Cell from 'src/components/User2Cell'
|
||||
import Seo from 'src/components/Seo/Seo'
|
||||
|
||||
const UserPage = ({ userName }) => {
|
||||
return (
|
||||
<MainLayout>
|
||||
<Seo title={userName} description="User page" lang="en-US" />
|
||||
|
||||
<User2Cell userName={userName} />
|
||||
</MainLayout>
|
||||
)
|
||||
|
||||
@@ -1,9 +1,12 @@
|
||||
import MainLayout from 'src/layouts/MainLayout'
|
||||
import UserCell from 'src/components/UserCell'
|
||||
import Seo from 'src/components/Seo/Seo'
|
||||
|
||||
const UserPage = ({ id }) => {
|
||||
return (
|
||||
<MainLayout>
|
||||
<Seo title="User" description="User page" lang="en-US" />
|
||||
|
||||
<UserCell id={id} />
|
||||
</MainLayout>
|
||||
)
|
||||
|
||||
@@ -1,9 +1,12 @@
|
||||
import MainLayout from 'src/layouts/MainLayout'
|
||||
import UsersCell from 'src/components/UsersCell'
|
||||
import Seo from 'src/components/Seo/Seo'
|
||||
|
||||
const UsersPage = () => {
|
||||
return (
|
||||
<MainLayout>
|
||||
<Seo title="Users" description="Users page" lang="en-US" />
|
||||
|
||||
<UsersCell />
|
||||
</MainLayout>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user