Skip to content

Commit

Permalink
feat: custom curtain with CTL logo for league layout
Browse files Browse the repository at this point in the history
  • Loading branch information
timotheeg committed Feb 6, 2024
1 parent 86dd95b commit 3fdd4eb
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
Binary file added public/images/league/CTL_logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
23 changes: 23 additions & 0 deletions public/views/mp/league.html
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,23 @@
<body>
<template id="player">
<div class="player">
<div class="custom_curtain">
<br />
<br />
<br />
<img src="/images/league/CTL_logo.png" style="max-width: 260px" />
<br />
<br />
<br />
<br />
<br />
<br />
<img src="/brand/logo.v3.white.3x.png" style="max-width: 95px" />
<br />
<br />
<br />
</div>

<video class="player_vid"></video>

<div class="box hearts">&nbsp;</div>
Expand Down Expand Up @@ -365,6 +382,10 @@
const player_node = player_fragment.querySelector('.player');

player_node.classList.add(`p${player_num}`);

const curtain = player_node.querySelector('.custom_curtain');
curtain.remove();

match_node.appendChild(player_node);

const player = new CompetitionPlayer(
Expand All @@ -388,6 +409,8 @@
name_box: player_node.querySelector(`.name`),

simul_tetris: player_node.querySelector(`.simul-tetris`),

curtain,
},
{
field_pixel_size: 4.25,
Expand Down

0 comments on commit 3fdd4eb

Please sign in to comment.