Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- "**"
pull_request:
branches:
- "**"
- master
workflow_dispatch:

jobs:
Expand Down
10 changes: 8 additions & 2 deletions app/[id]/PlayerAvatar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ type PlayerProps = {

const PlayerAvatar = ({ avatar, nickname }: PlayerProps) => {
const [imageError, setImageError] = useState(false);

return (
<>
{avatar && !imageError ? (
<Image
className="player-ava"
src={avatar}
alt={nickname}
width={78}
Expand All @@ -21,7 +21,13 @@ const PlayerAvatar = ({ avatar, nickname }: PlayerProps) => {
/>
) : (
<div id="avatar">
<Image src="/Group1.png" alt="avatar" width={78} height={78} />
<Image
className="player-ava"
src="/Group1.png"
alt="avatar"
width={78}
height={78}
/>
</div>
)}
</>
Expand Down
7 changes: 6 additions & 1 deletion app/[id]/Team.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ export default function Team({ rounds, team, players, pos }: TeamProps) {
{rounds &&
(pos == "right" ? (
<h1
className="team-result"
style={{
color: `${
Number(rounds[1]) > Number(rounds[0]) ? "#66bb6a" : "#ff4d4f"
Expand All @@ -95,10 +96,12 @@ export default function Team({ rounds, team, players, pos }: TeamProps) {
width: "fit-content",
}}
>
<h1 className="team-name">{team.name}</h1>
{rounds[1]}
</h1>
) : (
<h1
className="team-result"
style={{
color: `${
Number(rounds[0]) > Number(rounds[1]) ? "#66bb6a" : "#ff4d4f"
Expand All @@ -108,6 +111,7 @@ export default function Team({ rounds, team, players, pos }: TeamProps) {
}}
>
{rounds[0]}
<h1 className="team-name">{team.name}</h1>
</h1>
))}
<div className={`${pos == "right" ? "left l" : "right r"}-container`}>
Expand Down Expand Up @@ -145,7 +149,7 @@ export default function Team({ rounds, team, players, pos }: TeamProps) {
border: "none",
}}
/>
<h1>{team.name}</h1>
<h1 className="team-name">{team.name}</h1>
{pos == "left" && (
<>
<button
Expand Down Expand Up @@ -189,6 +193,7 @@ export default function Team({ rounds, team, players, pos }: TeamProps) {
src={`https://cdn-frontend.faceit-cdn.net/web/static/media/assets_images_skill-icons_skill_level_${getLVL(
player.elo,
)}_svg.svg`}
className="lvl-player"
alt={getLVL(player.elo)}
width={32}
height={32}
Expand Down
2 changes: 1 addition & 1 deletion app/[id]/idPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ export default function IdPage({ params, fromPar }: IdPageProps) {
pos="left"
/>
)}
<div className="">
<div className="match-info">
<h2 className="team-win">
Winner is{" "}
{match.summaryResults.winner == "faction1"
Expand Down
Loading