Skip to content

Commit

Permalink
Display upcoming rounds
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkView committed Jan 16, 2025
1 parent cc3f4a0 commit d51c917
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 20 deletions.
25 changes: 6 additions & 19 deletions src/app/scoreboard/roundreasons/roundreasons.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

<div
[class]="'reason-color top ' + (record.wasAttack ? 'attacker' : 'defender')"
*ngIf="record.type !== 'lost'"
*ngIf="record.type !== 'lost' && record.type !== 'upcoming'"
>
<div class="image-container">
<img class="image" src="{{ assets }}/roundWinReason/{{ record.type }}.webp" />
Expand All @@ -24,6 +24,10 @@
<div class="reason-color lost" *ngIf="record.type === 'lost'">
<div class="round-number">{{ record.round }}</div>
</div>

<div class="reason-color lost" *ngIf="record.type === 'upcoming'">
<div class="round-number-upcoming">{{ record.round }}</div>
</div>
</div>
</div>
</div>
Expand All @@ -43,7 +47,7 @@

<div
[class]="'reason-color bottom ' + (record.wasAttack ? 'attacker' : 'defender')"
*ngIf="record.type !== 'lost'"
*ngIf="record.type !== 'lost' && record.type !== 'upcoming'"
>
<div class="image-container">
<img class="image" src="{{ assets }}/roundWinReason/{{ record.type }}.webp" />
Expand All @@ -56,21 +60,4 @@
</div>
</div>
</div>

<!-- <div class="reason-color top red">
<div class="image-container"><img class="image" src="../../assets/roundWinReason/kills.webp" /></div>
</div>
<div class="reason-color bottom green">
<div class="image-container"><img class="image" src="../../assets/roundWinReason/detonated.webp" /></div>
</div>
<div class="divider">
<img class="line" src="../../assets/roundWinReason/divider-line.svg" /> <img class="line"
src="../../assets/roundWinReason/divider-line.svg" />
</div>
<div class="reason-color bottom red">
<div class="image-container"><img class="image" src="../../assets/roundWinReason/defused.webp" /></div>
</div>
<div class="reason-color top green">
<div class="image-container"><img class="image" src="../../assets/roundWinReason/defused.webp" /></div>
</div> -->
</div>
17 changes: 16 additions & 1 deletion src/app/scoreboard/roundreasons/roundreasons.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,28 @@
line-height: 40px;

text-align: center;
color: white;
color: rgba(255, 255, 255, 0.8);

font-size: 16px;
font-weight: 800;
font-family: "Unbounded", Helvetica;
}

.round-number-upcoming {
position: absolute;
left: 0;
top: 24px;
width: 40px;

line-height: 40px;
text-align: center;
color: white;

font-size: 20px;
font-weight: 800;
font-family: "Unbounded", Helvetica;
}

.reason-color {
display: inline-flex;
flex-direction: column;
Expand Down

0 comments on commit d51c917

Please sign in to comment.