@@ -8,6 +8,7 @@ import { HtmlOverlay } from "../ui/HtmlOverlay";
88import { ApiError , authApi } from "../network/rest" ;
99import { evaluatePassword , PASSWORD_HINT } from "../managers/passwordStrength" ;
1010import { createBetaBadge } from "../ui/pixiBetaBadge" ;
11+ import { createGithubFooter } from "../ui/pixiGithubFooter" ;
1112
1213export class MainMenuScene extends Container implements IScene {
1314 private app : Application ;
@@ -657,30 +658,7 @@ export class MainMenuScene extends Container implements IScene {
657658 }
658659
659660 private createFooter ( ) : void {
660- const sha = __GIT_SHA__ ;
661- const label = sha
662- ? `github.com/joe-brothers/differ (${ sha } )`
663- : "github.com/joe-brothers/differ" ;
664- this . footerText = new Text ( {
665- text : label ,
666- style : {
667- fontFamily : "Arial, sans-serif" ,
668- fontSize : 12 ,
669- fill : COLORS . textSecondary ,
670- } ,
671- } ) ;
672- this . footerText . anchor . set ( 0.5 , 1 ) ;
673- this . footerText . eventMode = "static" ;
674- this . footerText . cursor = "pointer" ;
675- this . footerText . on ( "pointerover" , ( ) => {
676- if ( this . footerText ) this . footerText . style . fill = COLORS . text ;
677- } ) ;
678- this . footerText . on ( "pointerout" , ( ) => {
679- if ( this . footerText ) this . footerText . style . fill = COLORS . textSecondary ;
680- } ) ;
681- this . footerText . on ( "pointerdown" , ( ) => {
682- window . open ( "https://github.com/joe-brothers/differ" , "_blank" , "noopener,noreferrer" ) ;
683- } ) ;
661+ this . footerText = createGithubFooter ( ) ;
684662 this . positionFooter ( ) ;
685663 this . addChild ( this . footerText ) ;
686664 }
0 commit comments