Feat/hng 93 implement pagination for career page #356
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
implement pagination for career page:
(This PR introduces a pagination feature to the HNG-boiler-plate-Remix application due to the issue [FEAT] External Dynamic Pages > Career Page > Implement Pagination #93. CLOSED BY MISTAKE MERGING AN EMPTY PR)
Add Pagination Component and Job Listing Feature for Career Page
PR Description:
This PR introduces a pagination component and integrates it with the job listing feature on the career page. The new pagination system allows users to navigate through multiple pages of job listings seamlessly. Below are the key features and implementation details:
Features:
Pagination Component:
Pagination
: Container for the pagination navigation.PaginationContent
: Holds the pagination items.PaginationItem
: Represents an individual page item.PaginationLink
: Link for each page, styled according to its state (active/inactive).PaginationPrevious
andPaginationNext
: Navigation links to move to the previous or next page.PaginationEllipsis
: Ellipsis for indicating skipped pages.Job Listing Integration:
CareerPage
: A page that displays job listings with pagination controls.How to Use:
To use the pagination component and fetch a job list, follow these steps:
Loader Function:
loader
function fetches job listings based on the current page from the URL query parameters.CareerPage Component:
CareerPage
component uses theuseLoaderData
hook to fetch job listings data.Additional Notes:
dummyJobListings
function is used to simulate job listings data. Replace this with your actual data fetching logic.