Skip to content

Commit

Permalink
Added "My Games Ranking" menu item.
Browse files Browse the repository at this point in the history
  • Loading branch information
Bilge committed Jun 9, 2024
1 parent 990676e commit 83bacdd
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions assets/css/inc/func/icons.less
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@
background: linear-gradient(#d9d5ce, #adaba5);
}

.myrank {
mask-image: url(//s.steam250.com/img/cup%20star.svg);
}

.trend {
mask-image: url(https://s.steam250.com/img/trend.svg);
}
Expand Down
4 changes: 4 additions & 0 deletions assets/css/inc/nav.less
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,10 @@ ol.menu {
&.email:before {
#icons.email();
}
&.myrank:before {
--width: 1.1em;
#icons.myrank();
}
&.patreon:before {
--width: .9em;
background-image: url(//s.steam250.com/img/patreon.svg);
Expand Down
4 changes: 4 additions & 0 deletions template/layout/template.twig
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,10 @@
<a>Steam 250</a>
<ol>
<li><a href="{{ club250 }}/email%20sub/7day" class="email">Free weekly email</a>
<li><a href="{{ club250 }}/ranking/my-games" class="myrank">
My Games Ranking
{{ include('@components/micro tier.twig', {tier: 2, benefit: 'myrank'}) }}
</a>
<li><a href="/about{{ ext }}">About Steam 250</a>
<li><a href="/club250/ambassadors{{ ext }}">Club 250 Ambassadors</a>
<li><a href="/contributors{{ ext }}">Contributors</a>
Expand Down

0 comments on commit 83bacdd

Please sign in to comment.