Skip to content

Commit

Permalink
Add event name to the rankings screen
Browse files Browse the repository at this point in the history
  • Loading branch information
evanlihou committed Mar 31, 2024
1 parent 203a6fd commit 0dd3055
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/RankingDisplay/TeamRankings/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ const TeamRankings = () => {
<>
<MenuBar event={event} season={season} />
<div className={styles.teamRankings}>
{/* TODO(@evanlihou): This should be toggleable from this page */}
{event?.options.showEventName === true && (
<div className={styles.eventName}>{event.name} ({season})</div>
)}
<table>
<thead>
<tr>
Expand Down
10 changes: 10 additions & 0 deletions src/components/RankingDisplay/TeamRankings/styles.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,16 @@
z-index: 10;
}

.eventName {
position: relative;
z-index: 10;
background: #ccc;
width: 100vw;
text-align: center;
font-size: 1.3em;
padding-bottom: 0.3em;
}

table {
transform: translate3d(0, 0, 0);
position: relative;
Expand Down

0 comments on commit 0dd3055

Please sign in to comment.