Add Xbox & 3DS platforms

This commit is contained in:
Luke Street
2026-01-02 20:13:35 -07:00
parent 7319c8715e
commit 75c2d0f079
5 changed files with 21 additions and 3 deletions
Binary file not shown.
+3
View File
@@ -0,0 +1,3 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor">
<path d="M6.588 11.75s1.541-.252 1.541-1.22c0-.931-1.649-1.326-3.405-1.326-1.577 0-2.616.18-2.616.18v.86c.716-.18 1.397-.323 2.33-.323 1.003 0 1.756.287 1.756.717 0 .502-.753.789-2.402.789h-.717v.788h.717c1.72 0 2.688.251 2.688.896 0 .574-.86.896-1.971.896-.968 0-1.828-.215-2.509-.394v.932c.358.071 1.254.25 2.903.25 1.864 0 3.477-.609 3.477-1.648 0-.896-1.147-1.398-1.792-1.398m13.19-.25c-1.04-.36-1.613-.574-1.613-1.004 0-.287.394-.574 1.254-.574.825 0 1.362.18 1.972.323v-.86c-.61-.108-.932-.18-1.9-.18-1.792 0-2.975.538-2.975 1.434 0 .86.968 1.254 2.33 1.756 1.003.359 1.362.574 1.362.932 0 .394-.359.717-1.29.717-.825 0-1.864-.143-2.402-.358v.931c.717.108 1.326.18 2.258.18 2.222 0 3.226-.645 3.226-1.506 0-.896-.789-1.29-2.222-1.792m-5.162-1.865c-.537-.25-1.505-.394-2.4-.394H8.881v5.556h3.333c.86 0 1.864-.144 2.401-.395 1.29-.573 1.685-1.505 1.685-2.365.036-.896-.394-1.828-1.685-2.402m-2.831 4.373H10.71V9.993h1.075c1.649 0 2.652.717 2.652 2.007 0 1.326-1.04 2.007-2.652 2.007"/>
</svg>

After

Width:  |  Height:  |  Size: 1.1 KiB

+3
View File
@@ -0,0 +1,3 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor">
<path d="M3.232 3.889q.195.215.394.428c.687.768 1.566 1.647 2.605 2.685l2.877 2.781-.016 1.037C6.408 14.94 4.04 18.034 2 20.111l.374-.232a55.2 55.2 0 0 0 9.67-7.624c2.94 2.605 6.2 5.067 9.765 7.416l.191.123a118 118 0 0 1-6.958-9.024l-.032-1c1.071-1.006 2.926-2.936 5.565-5.778L12.05 8.01z"/>
</svg>

After

Width:  |  Height:  |  Size: 384 B

+13 -3
View File
@@ -205,9 +205,11 @@ pub enum Platform {
PS2, // 2000
GBA, // 2001
GC, // 2001
Xbox, // 2001
DS, // 2004
Xbox360, // 2005
Wii, // 2006
_3DS, // 2011
Switch, // 2017
}
@@ -217,9 +219,11 @@ pub const ALL_PLATFORMS: &[Platform] = &[
Platform::PS2,
Platform::GBA,
Platform::GC,
Platform::Xbox,
Platform::DS,
Platform::Xbox360,
Platform::Wii,
Platform::_3DS,
Platform::Switch,
];
@@ -231,9 +235,11 @@ impl Platform {
Self::PS2 => "ps2",
Self::GBA => "gba",
Self::GC => "gc",
Self::Xbox => "xbox",
Self::DS => "nds",
Self::Wii => "wii",
Self::Xbox360 => "xbox360",
Self::Wii => "wii",
Self::_3DS => "3ds",
Self::Switch => "switch",
}
}
@@ -245,9 +251,11 @@ impl Platform {
Platform::PS2 => "PlayStation 2",
Platform::GBA => "Game Boy Advance",
Platform::GC => "GameCube",
Platform::Xbox => "Xbox",
Platform::DS => "Nintendo DS",
Platform::Wii => "Wii",
Platform::Xbox360 => "Xbox 360",
Platform::Wii => "Wii",
Platform::_3DS => "Nintendo 3DS",
Platform::Switch => "Switch",
}
}
@@ -263,9 +271,11 @@ impl FromStr for Platform {
"ps2" => Ok(Self::PS2),
"gba" => Ok(Self::GBA),
"gc" => Ok(Self::GC),
"xbox" => Ok(Self::Xbox),
"nds" => Ok(Self::DS),
"wii" => Ok(Self::Wii),
"xbox360" => Ok(Self::Xbox360),
"wii" => Ok(Self::Wii),
"3ds" => Ok(Self::_3DS),
"switch" => Ok(Self::Switch),
_ => Err(()),
}
+2
View File
@@ -178,6 +178,8 @@ $breakpoints: (
.icon-ps:before { content: '\ea06'; }
.icon-ps2:before { content: '\ea07'; }
.icon-xbox360:before { content: '\ea08'; }
.icon-3ds:before { content: '\ea09'; }
.icon-xbox:before { content: '\ea0a'; }
// Override the tooltip component
[data-tooltip]:not(a, button, input) {