Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Added Home and Shop pages #1

Merged
merged 9 commits into from
Mar 13, 2022
Merged

Conversation

Naman-Saxena1
Copy link
Owner

@Naman-Saxena1 Naman-Saxena1 commented Mar 11, 2022

Added Home and Shop Pages with all working filters

I understand that I made a mistake of adding both pages in 1 PR but I can't revert it because everything is inter-connected and site will start breaking if I unstage some files. Also it will be un-manageable to track all files if I start unstaging them because there are a lot of files.
So I understand if you can skim through code, just to check if everything looks fine.
From next PR I will make sure to create small PRs 😅
Thanks! 😄

Capture1

Genre Cards

Capture2

New Arrivals

Capture3

Footer

Capture4

Shop Page

Capture5

@netlify
Copy link

netlify bot commented Mar 11, 2022

✔️ Deploy Preview for bookztron-dev-branch ready!

🔨 Explore the source changes: fe4fdbd

🔍 Inspect the deploy log: https://app.netlify.com/sites/bookztron-dev-branch/deploys/622dc6c6bace8f0008a2856c

😎 Browse the preview: https://deploy-preview-1--bookztron-dev-branch.netlify.app/

Copy link

@Ankur9669 Ankur9669 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PR is very big, but i have suggested some changes you can work on them.
Most of the coding conventions are nice so great work and app is also working very nicely

src/Components/Card/ProductCard.js Show resolved Hide resolved
src/Components/Footer/Footer.css Show resolved Hide resolved
src/Components/GenreCards/GenreCard.js Show resolved Hide resolved
src/Components/Navbar/Navbar.css Show resolved Hide resolved
src/Components/Navbar/Navbar.css Show resolved Hide resolved
src/Context/product-context.js Show resolved Hide resolved
{
const [ productsAvailableList, dispatchSortedProductsList] = useReducer(productsOrderFunc,productList)
const [ productFilterOptions, dispatchProductFilterOptions ] = useReducer(updateProductFilters,filterOptionsObject)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggestion: I think this violates the rules of hooks read this https://reactjs.org/docs/hooks-rules.html

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe no rules were broken, I called useReducer at the top level of a component. Would be great if you can elaborate a little more 😅

src/Pages/Home/Home.css Outdated Show resolved Hide resolved
src/Pages/Home/Home.jsx Show resolved Hide resolved
src/Pages/Shop/Shop.js Show resolved Hide resolved
Copy link

@mehulsatardekar mehulsatardekar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apart from the Changes, the Code looks good and self-explanatory what each function are doing

src/Components/GenreCards/GenreCard.js Outdated Show resolved Hide resolved
src/Components/Sidebar/Sidebar.js Show resolved Hide resolved
@Naman-Saxena1 Naman-Saxena1 merged commit 1562086 into development Mar 13, 2022
@Naman-Saxena1 Naman-Saxena1 changed the title feat: Added Home and product pages feat: Added Home and Shop pages Mar 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants