Skip to content

Commit

Permalink
add links
Browse files Browse the repository at this point in the history
  • Loading branch information
joshbtay committed Jul 29, 2024
1 parent 08a952f commit 348d195
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
13 changes: 11 additions & 2 deletions src/components/Leaderboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,16 +42,25 @@ export function Leaderboard() {
solvedProblems.codeforces.set(problem.id, 2);
}
}
const links = thisWeek.links ?? {};
return (
<div className="Leaderboard flexCol w-full align-center">
{!!thisWeek?.topic && (
{thisWeek.topic && (
<div className="responsive-fg bg-secondary flexCol">
<div className="align-center">
<h4 className="large text-green-400">
Weekly Topic: {thisWeek?.topic}
</h4>
</div>
<div>{}</div>
<div className="align-center flexCol">
<div className="flexRow align-center gap-12 mb-12">
{Object.keys(links)
.sort()
.map((key) => (
<a href={links[key]}>{key}</a>
))}
</div>
</div>
<div className="flexRow">
{!!thisWeek?.kattis &&
thisWeek.kattis.map((problemId: string) => (
Expand Down
3 changes: 3 additions & 0 deletions src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ code {
padding-top: 10px;
padding-bottom: 10px;
}
.mb-12 {
margin-bottom: 12px;
}

.flexCol {
display: flex;
Expand Down

0 comments on commit 348d195

Please sign in to comment.