Commit Graph

51 Commits

Author SHA1 Message Date
Hyunsujk
cd2c9ee334 ignore package-lock 2020-10-15 01:33:00 +05:30
Hyunsujk
8dbfeb1059 added key to FIELDS_TO_SORT_BY.map to resolve warning 2020-10-15 01:31:33 +05:30
Carl Dungca
9f2a822a54 Feature added: Mark to read (#252)
* Rendered a static reading list button to each bookcard component

* Attached click listener to bookmark button to log book data

* Clicking bookmark button saves book information to a localStorage array

* Updated card height to account for button

* Updated saveBookToLocalStorage function to use objects instead of arrays

* Can now toggle books in and out of localStorage

* Reverted previous 4 commits so that data isn't directly written to localStorage

* Created a sidebar link to reading list

* Added placeholder bookmarks page

* Bookmark button now updates state in index.js

* Initialized context API

* Wrote a reducer function to handle bookmark state changes

* Configured reducer to add books in and out of state

* Reading list is now preserved between state AND localStorage when changing categories

* Fixed some code format issues

* Rendered saved books in reading list component

* Toggle apperance of bookmark button

* Hacky fix for positioning of reading list sidebar link

* Adjusted style and alignment of bookmark button

* Added check to determine if window is defined in useEffect

* Exported the gatsby-ssr API
2020-10-15 01:30:46 +05:30
Elysia Ong
ef9fc03843 Style book card 2020-10-12 14:33:43 +05:30
Elysia Ong
454ada1ee6 Use goodreads icon 2020-10-12 14:33:43 +05:30
Elysia Ong
e2264c0eeb Fix typo in method name 2020-10-12 14:33:43 +05:30
Elysia Ong
695d92f465 Revert "Revert "Include goodreads image.""
This reverts commit f4446aff07.
2020-10-12 14:33:43 +05:30
Vishnu KS
f4446aff07 Revert "Include goodreads image."
This reverts commit 872b09fe52.
2020-10-12 13:28:54 +05:30
Vishnu KS
c8634462fc Remove uncessary comment on the location of utils. 2020-10-12 12:57:51 +05:30
Vishnu KS
eee53f2f60 Fix books.json path in README. 2020-10-12 12:56:03 +05:30
Vishnu KS
c527547008 Include documentation on website and utils. 2020-10-12 12:53:50 +05:30
Vishnu KS
872b09fe52 Include goodreads image. 2020-10-12 11:44:57 +05:30
Gal Elmalah
f36a9615a7 Update feed.js 2020-10-12 11:32:08 +05:30
Gal Elmalah
8cd6ba59d7 add useMemo and 3 more sortBy options 2020-10-12 11:32:08 +05:30
Gal Elmalah
e1962883f6 Update feed.js
to prevent books to be displayed out of order when the loading more books
2020-10-11 16:53:45 +05:30
Gal Elmalah
193f06bb21 Update feed.js 2020-10-11 16:53:45 +05:30
Gal Elmalah
68e0dbe1cb Update index.js 2020-10-11 16:53:45 +05:30
Gal Elmalah
dd7b9b6efb remove console.log form feed.js 2020-10-11 16:53:45 +05:30
Gal Elmalah
a1fa7011cd fix sorting by year and rating bug 2020-10-11 16:53:45 +05:30
Gal Elmalah
e50712e5bc remove console.logs 2020-10-11 16:53:45 +05:30
Gal Elmalah
c94bd9f3b3 sort by functionallity 2020-10-11 16:53:45 +05:30
Triin
de1bba855f Improved accessibility according to WCAG 2020-10-11 00:21:09 +05:30
Vishnu Ks
6bc3393293 Fix typo in installation instructions. 2020-10-11 00:05:57 +05:30
Vishnu Ks
04cc460bb5 Add instructions on setting up development environment. 2020-10-11 00:05:22 +05:30
Vishnu KS
5dc79eeca6 app: Use OutboundLink for Amazon links. 2020-09-27 22:39:41 +05:30
Vishnu KS
52e63d7c1d app: Include analytics. 2020-09-27 22:32:33 +05:30
Vishnu KS
c6197e9646 app: Include amazon links. 2020-09-27 16:02:12 +05:30
Samisha
18ef998136 app: Remove unused bookcard import. 2020-09-23 23:27:53 +05:30
Vishnu KS
02148006ae Sort books by rating. 2020-08-23 23:46:26 +05:30
Vishnu KS
76f2f431c1 app: Update emoji in sidebar. 2020-08-23 23:37:13 +05:30
Vishnu KS
9fe8505ea4 utils: Store only text as description. 2020-08-23 23:10:26 +05:30
Vishnu KS
d723ec905b Install black. 2020-08-23 15:34:58 +05:30
Vishnu KS
828a68fa75 Fix the category names. 2020-08-23 13:26:16 +05:30
Vishnu KS
1593c00620 Make category page work without errors 2020-08-23 12:49:02 +05:30
Vishnu KS
4d81bf3fe1 Configure eslint. 2020-08-23 00:58:19 +05:30
Vishnu KS
f985c157d9 Install eslint and prettier. 2020-08-23 00:57:54 +05:30
Vishnu KS
defa5cb196 Refactor feed into a component. 2020-08-23 00:28:09 +05:30
Vishnu KS
b4cde4c777 Make category pages work. 2020-08-22 23:06:37 +05:30
Vishnu KS
b8b957805e Bring back stars. 2020-08-22 16:50:14 +05:30
Vishnu KS
d620d9d08b Make basic version work using bootstrap. 2020-08-22 16:48:13 +05:30
Vishnu KS
0f3d13c58a Install react bootstrap. 2020-08-22 15:36:09 +05:30
SurajKhayamali
98013de897 Fix: Doesn't recognize scroll when html & body height are 100% 2020-06-17 22:14:46 +05:30
Suraj Khayamali
40d8e36880 Implemented infinite scroll 2020-06-17 22:14:46 +05:30
Liel Fridman
f50bdf9006 Improving the UI of book cards 2019-10-19 12:19:45 +05:30
Vishnu KS
3d24c54a6c src: Use shoe dog book as cover photo. 2019-10-18 19:43:07 +05:30
Denni Bevilacqua
b4b005460f Fix css class attribute in BookCard 2019-10-18 19:34:45 +05:30
Josh RosenHanst
fb6e2e8b5d React error fixes (#180)
* fix className errors by replacing class= with className= in templates; remove unused imports

* fix component key warning by adding the node.id key to the component
2019-10-17 11:51:25 +05:30
Josh PC
89cdab6ad2 fix <div> inside <p> warning 2019-10-17 11:47:20 +05:30
Josh PC
bba3cfe578 add and implement react-star-ratings library 2019-10-17 11:47:20 +05:30
Josh PC
b9e8ae5bbf add year and ratings text display 2019-10-17 11:47:20 +05:30