11 | may the force be with you
12 |
13 | Welcome
14 |
15 |
16 | The directory is a listing of Hack Clubs in the APAC region, click on a
17 | Hack Club to explore more about them!
18 |
19 |
20 | );
21 | };
22 |
23 | export default Intro;
24 |
--------------------------------------------------------------------------------
/components/leaderboard.js:
--------------------------------------------------------------------------------
1 | /**
2 | * @format
3 | * @jsxImportSource theme-ui
4 | */
5 |
6 | import { Container, Box, Grid, Button } from 'theme-ui';
7 | import Link from 'next/link';
8 | import { findIndex } from 'ramda';
9 |
10 | const find_rank = (obj, dictionary) => {
11 | let rank = -1;
12 |
13 | dictionary.forEach(({ name }, idx) => {
14 | if (name === obj.name) rank = idx + 1;
15 | });
16 | return rank;
17 | };
18 |
19 | const Leaderboard = ({ data, original_data, ...props }) => {
20 | return (
21 |