diff --git a/web/src/components/Parts/Parts.js b/web/src/components/Parts/Parts.js index c868554..21f66bc 100644 --- a/web/src/components/Parts/Parts.js +++ b/web/src/components/Parts/Parts.js @@ -1,6 +1,8 @@ import { useMutation, useFlash } from '@redwoodjs/web' import { Link, routes } from '@redwoodjs/router' +import avatar from 'src/assets/harold.jpg' + const DELETE_PART_MUTATION = gql` mutation DeletePartMutation($id: Int!) { deletePart(id: $id) { @@ -50,58 +52,27 @@ const PartsList = ({ parts }) => { } return ( -
- - - - - - - - - - - - - - {parts.map((part) => ( - - - - - - - - - - ))} - -
IdTitleDescriptionCodeMain imageCreated at 
{truncate(part.id)}{truncate(part.title)}{truncate(part.description)}{truncate(part.code)}{truncate(part.mainImage)}{timeTag(part.createdAt)} - -
+
+ {parts.map((part) => { + return ( + +
+
+
?
+
+

{part.title}

+
+
+ +
+
+ + )})}
) } diff --git a/web/src/index.css b/web/src/index.css index 9939187..862eccf 100644 --- a/web/src/index.css +++ b/web/src/index.css @@ -12,6 +12,11 @@ * END --- TAILWIND GENERATOR EDIT */ +body { + /* TODO can I use a tailwind class here? */ + background-color: #4a5568; +} + button, input, label, textarea { display: block; outline: none; diff --git a/web/src/layouts/MainLayout/MainLayout.js b/web/src/layouts/MainLayout/MainLayout.js index f5bdb7d..685985f 100644 --- a/web/src/layouts/MainLayout/MainLayout.js +++ b/web/src/layouts/MainLayout/MainLayout.js @@ -1,8 +1,10 @@ import { Link, routes } from '@redwoodjs/router' import { useAuth } from '@redwoodjs/auth' +import { Flash } from '@redwoodjs/web' +import Tooltip from '@material-ui/core/Tooltip'; + import avatar from 'src/assets/harold.jpg' import Svg from 'src/components/Svg' -import Tooltip from '@material-ui/core/Tooltip'; const MainLayout = ({ children }) => { const { logIn, logOut, isAuthenticated } = useAuth() @@ -28,11 +30,16 @@ const MainLayout = ({ children }) => { +
{children}
) diff --git a/web/src/layouts/PartsLayout/PartsLayout.js b/web/src/layouts/PartsLayout/PartsLayout.js index f0ecd0c..7234e1d 100644 --- a/web/src/layouts/PartsLayout/PartsLayout.js +++ b/web/src/layouts/PartsLayout/PartsLayout.js @@ -1,21 +1,9 @@ -import { Link, routes } from '@redwoodjs/router' -import { Flash } from '@redwoodjs/web' + const PartsLayout = (props) => { return ( -
- -
-

- - Parts - -

- -
+
New Part - -
-
{props.children}
+
+
{props.children}
) } diff --git a/web/src/layouts/PostsLayout/PostsLayout.js b/web/src/layouts/PostsLayout/PostsLayout.js index b08e8fa..45578ce 100644 --- a/web/src/layouts/PostsLayout/PostsLayout.js +++ b/web/src/layouts/PostsLayout/PostsLayout.js @@ -15,7 +15,7 @@ const PostsLayout = (props) => {
+
New Post -
{props.children}
+
{props.children}
) }