mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-08-27 21:55:15 -05:00
add event icons for zones cup+ and plus draft cup
This commit is contained in:
@@ -96,6 +96,7 @@ const nameToImage = [
|
||||
{ code: "tg", name: "testing grounds" },
|
||||
{ code: "ut", name: "unnamed tournament" },
|
||||
{ code: "kotc", name: "king of the castle" },
|
||||
{ code: "zones", name: "area cup +" },
|
||||
] as const;
|
||||
|
||||
/**
|
||||
@@ -103,6 +104,9 @@ const nameToImage = [
|
||||
*/
|
||||
export const eventImage = (eventName: string) => {
|
||||
const eventNameLower = eventName.toLowerCase();
|
||||
if (eventNameLower.startsWith("plus server")) {
|
||||
return `/layout/plus.png`;
|
||||
}
|
||||
for (const { name, code } of nameToImage) {
|
||||
if (eventNameLower.startsWith(name)) {
|
||||
return `/events/${code}.png`;
|
||||
|
||||
BIN
public/events/zones.png
Normal file
BIN
public/events/zones.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 143 KiB |
Reference in New Issue
Block a user