From f50bdf9006e2341266cf9da49dd809e9c471d8f6 Mon Sep 17 00:00:00 2001 From: Liel Fridman Date: Sat, 19 Oct 2019 00:37:07 +0300 Subject: [PATCH] Improving the UI of book cards --- app/src/components/bookcard.js | 14 +++++++------- app/src/pages/index.js | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/app/src/components/bookcard.js b/app/src/components/bookcard.js index 45c07e1..e1c3b69 100644 --- a/app/src/components/bookcard.js +++ b/app/src/components/bookcard.js @@ -3,13 +3,13 @@ import React from "react" import StarRatings from 'react-star-ratings'; const BookCard = ({ book }) => ( -
- Sunset in the mountains -
+
+ Sunset in the mountains +
{ book.title }
- { book.year } - { book.year } + ( { book.author }

-
- {book.category} +
+ {book.category}
) diff --git a/app/src/pages/index.js b/app/src/pages/index.js index b5245e9..25b0de0 100644 --- a/app/src/pages/index.js +++ b/app/src/pages/index.js @@ -8,7 +8,7 @@ export default ({data}) => { return ( -
+
{data.allBooksJson.edges.map(function(x) { return (