Skip to content

Commit 3259a23

Browse files
committed
Added build link to menu
1 parent a724828 commit 3259a23

3 files changed

Lines changed: 13 additions & 0 deletions

File tree

‎src/components/icons/icons.tsx‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ import chocoIcon from "public/image/xmb/choco.png";
7979
import nugetIcon from "public/image/xmb/nuget.png";
8080
import halo3generalBwIcon from "public/image/halo_3_general_bw.png";
8181
import pspBatteryIcon from "public/image/psp_full_battery.png";
82+
import ghActionsIcon from "public/svg/githubactions.svg";
8283
//import statsFmIcon from "public/svg/statsfm.svg";
8384

8485
const xmbIconClassName = "xmb-icon object-contain justify-self-center w-full h-full overflow-visible";
@@ -299,3 +300,9 @@ export const nextJs: ReactElement = (
299300
</g>
300301
</svg>
301302
);
303+
export const githubActions: ReactElement = (
304+
<svg width="800px" height="800px" viewBox="0 0 24 24" role="img" xmlns="http://www.w3.org/2000/svg" className={xmbIconClassName}>
305+
<path
306+
d="M10.984 13.836a.5.5 0 0 1-.353-.146l-.745-.743a.5.5 0 1 1 .706-.708l.392.391 1.181-1.18a.5.5 0 0 1 .708.707l-1.535 1.533a.504.504 0 0 1-.354.146zm9.353-.147l1.534-1.532a.5.5 0 0 0-.707-.707l-1.181 1.18-.392-.391a.5.5 0 1 0-.706.708l.746.743a.497.497 0 0 0 .706-.001zM4.527 7.452l2.557-1.585A1 1 0 0 0 7.09 4.17L4.533 2.56A1 1 0 0 0 3 3.406v3.196a1.001 1.001 0 0 0 1.527.85zm2.03-2.436L4 6.602V3.406l2.557 1.61zM24 12.5c0 1.93-1.57 3.5-3.5 3.5a3.503 3.503 0 0 1-3.46-3h-2.08a3.503 3.503 0 0 1-3.46 3 3.502 3.502 0 0 1-3.46-3h-.558c-.972 0-1.85-.399-2.482-1.042V17c0 1.654 1.346 3 3 3h.04c.244-1.693 1.7-3 3.46-3 1.93 0 3.5 1.57 3.5 3.5S13.43 24 11.5 24a3.502 3.502 0 0 1-3.46-3H8c-2.206 0-4-1.794-4-4V9.899A5.008 5.008 0 0 1 0 5c0-2.757 2.243-5 5-5s5 2.243 5 5a5.005 5.005 0 0 1-4.952 4.998A2.482 2.482 0 0 0 7.482 12h.558c.244-1.693 1.7-3 3.46-3a3.502 3.502 0 0 1 3.46 3h2.08a3.503 3.503 0 0 1 3.46-3c1.93 0 3.5 1.57 3.5 3.5zm-15 8c0 1.378 1.122 2.5 2.5 2.5s2.5-1.122 2.5-2.5-1.122-2.5-2.5-2.5S9 19.122 9 20.5zM5 9c2.206 0 4-1.794 4-4S7.206 1 5 1 1 2.794 1 5s1.794 4 4 4zm9 3.5c0-1.378-1.122-2.5-2.5-2.5S9 11.122 9 12.5s1.122 2.5 2.5 2.5 2.5-1.122 2.5-2.5zm9 0c0-1.378-1.122-2.5-2.5-2.5S18 11.122 18 12.5s1.122 2.5 2.5 2.5 2.5-1.122 2.5-2.5zm-13 8a.5.5 0 1 0 1 0 .5.5 0 0 0-1 0zm2 0a.5.5 0 1 0 1 0 .5.5 0 0 0-1 0zm12 0c0 1.93-1.57 3.5-3.5 3.5a3.503 3.503 0 0 1-3.46-3.002c-.007.001-.013.005-.021.005l-.506.017h-.017a.5.5 0 0 1-.016-.999l.506-.017c.018-.002.035.006.052.007A3.503 3.503 0 0 1 20.5 17c1.93 0 3.5 1.57 3.5 3.5zm-1 0c0-1.378-1.122-2.5-2.5-2.5S18 19.122 18 20.5s1.122 2.5 2.5 2.5 2.5-1.122 2.5-2.5z" />
307+
</svg>
308+
);

‎src/services/menuBuilder.ts‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,9 @@ function buildSettingsCategory(): XmbCategory {
148148
viewSource.description = 'View this project on GitHub';
149149
viewSource.setActive();
150150

151+
const builds = new XmbItem("builds", "Source", icons.githubActions, 'https://github.com/syntax-tm/syntax-tm.github.io/actions');
152+
builds.description = 'View latest builds on GitHub';
153+
151154
const fork = new XmbItem("fork", "Fork", icons.codeFork, 'https://github.com/syntax-tm/syntax-tm.github.io/fork');
152155
fork.description = 'Fork this project on GitHub';
153156

@@ -159,6 +162,7 @@ function buildSettingsCategory(): XmbCategory {
159162

160163
const items: XmbItem[] = [
161164
viewSource,
165+
builds,
162166
fork,
163167
nextJs,
164168
fa,

‎src/styles/xmb.css‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
.xmb-icon {
55
filter: drop-shadow(0 0 0.25rem black);
66
color: white;
7+
fill: white;
78
width: 60px;
89
height: 60px;
910
}
@@ -13,6 +14,7 @@
1314
.xmb-icon {
1415
filter: drop-shadow(0 0 0.25rem black);
1516
color: white;
17+
fill: white;
1618
width: 80px;
1719
height: 80px;
1820
}

0 commit comments

Comments
 (0)