-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add CTF link (#360) (#361) * Fix scanning on iPhone (#375) * Deploy "blue" (#397) * Fixing user spamming the wheel (#391) * Add links, order members by name and improve labels (#381) * 🎨 Improve login design (#367) * Fix typo (#394) * Fixed date displayed on Schedule * Change date shown to first day * Fix build (#395) Co-authored-by: Enzo Vieira <[email protected]> Co-authored-by: Nelson Estevão <[email protected]> Co-authored-by: Filipe Felício <[email protected]> Co-authored-by: Rui Lopes <[email protected]> Co-authored-by: tiago-bacelar <[email protected]> * Add 2023 schedule * Finish team members * Sponsor list * More data * More data * Remove hackathons * Remove hackathons * Change FAQ date * Remove login entry & Fix register link * Update informations in team and schedule page (#421) * update infos * Remove login * Add recruitment forms link * update eurotux and fujitsu logo (#424) * Update website informations (#426) * Update talk schedule (#427) * Fix mistake * Update informations 24/06 (#429) * Update informations (#431) * Join Our Staff * add schedule informations * Change max date (#432) * Update schedule (#433) * Update informations (#434) * add talks & workshops information * Fix Ricardo Rocha image * Update information (#436) * update informations * report a problem * fix typos * Update Informations (#438) * add informations talk subvisual * fix typo * Update informations (#439) * update informations * resolve typo * Update Informations (#440) * Update informations (#442) * Update information (#445) * Update informations (#447) * Update informations (#449) * add informations * change 'report a problem' to footer * Update photos (#450) * Update Informations (#456) * update informations * add media team * Update Informations (#461) * Update Prizes (#464) * Fix small merge errors * Fix last details * Fix typo * Add login back to navbar * Bump to prod * Add pagination to badgedex (#474) Co-authored-by: Rui Lopes <[email protected]> * Change login to signup when logged in * Fix retail consult logo * Add pagination to badges (#475) * Add pagination to badges * Run formatter * Fix build * Revert some changes --------- Co-authored-by: Rui Lopes <[email protected]> * update saber logo * Fix Pagination Component (#478) * Fix Pagination Component * Fix signup validation (#479) * feat(pages/identifier): Page that generates qrcode to identify attendee (#476) Co-authored-by: Rui Lopes <[email protected]> * Fixed that thing where some people can't see their prizes in the vault (#480) * Solved typo * Run Formatter --------- Co-authored-by: Rui Lopes <[email protected]> Co-authored-by: Enzo Vieira <[email protected]> Co-authored-by: tiago-bacelar <[email protected]> * Minor change * Update regulamento * Update details * Remove pagination from company page * Fix pagination icons * small update --------- Co-authored-by: Miguel Brandão <[email protected]> Co-authored-by: Filipe Felício <[email protected]> Co-authored-by: Nelson Estevão <[email protected]> Co-authored-by: LAraujo7 <[email protected]> Co-authored-by: Ruben Adão <[email protected]> Co-authored-by: Francisco Neves <[email protected]> Co-authored-by: Enzo Vieira <[email protected]> Co-authored-by: Rui Lopes <[email protected]> Co-authored-by: tiago-bacelar <[email protected]> Co-authored-by: Rui Lopes <[email protected]> Co-authored-by: Mário Rodrigues <[email protected]> Co-authored-by: Mário Rodrigues <[email protected]> Co-authored-by: Enzo Vieira <[email protected]> Co-authored-by: tiago-bacelar <[email protected]>
- Loading branch information
1 parent
dea8b41
commit 5538926
Showing
17 changed files
with
131 additions
and
178 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import { ArrowRightIcon, ArrowLeftIcon } from "@heroicons/react/solid"; | ||
|
||
const Pagination = ({ badgesPerPage, totalBadges, paginate, currentPage }) => { | ||
const pageNumbers = []; | ||
|
||
for (let i = 1; i <= Math.ceil(totalBadges / badgesPerPage); i++) { | ||
pageNumbers.push(i); | ||
} | ||
|
||
return ( | ||
<nav> | ||
<ul className="flex flex-row justify-center"> | ||
{totalBadges !== 0 && currentPage !== 1 && ( | ||
<li className="page-item mr-1"> | ||
<button onClick={() => paginate(currentPage - 1)}> | ||
<ArrowLeftIcon className="h-5 w-5" /> | ||
</button> | ||
</li> | ||
)} | ||
{totalBadges !== 0 && currentPage !== pageNumbers.length && ( | ||
<li className="mx-1"> | ||
<button onClick={() => paginate(currentPage + 1)}> | ||
<ArrowRightIcon className="h-5 w-5" /> | ||
</button> | ||
</li> | ||
)} | ||
</ul> | ||
</nav> | ||
); | ||
}; | ||
|
||
export default Pagination; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,13 @@ | ||
module.exports = { | ||
reactStrictMode: true, | ||
images: { | ||
remotePatterns: [ | ||
{ | ||
protocol: "http", | ||
hostname: "localhost", | ||
port: "3000", | ||
pathname: "**", | ||
}, | ||
], | ||
}, | ||
}; |
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Oops, something went wrong.