Skip to content

Commit 76c2edb

Browse files
committed
Updated secrets, fixed hooks, and changed XmbContext to handle menu changes
1 parent 7f0693f commit 76c2edb

24 files changed

Lines changed: 254 additions & 1604 deletions

‎package.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
"prebuild": "node ./scripts/prebuild.mjs"
1818
},
1919
"dependencies": {
20+
"@fireworks-js/react": "^2.10.8",
2021
"@fortawesome/fontawesome-svg-core": "^7.3.1",
2122
"@fortawesome/free-brands-svg-icons": "^7.3.1",
2223
"@fortawesome/free-regular-svg-icons": "^7.3.1",

‎public/svg/couple.svg‎

Lines changed: 8 additions & 13 deletions
Loading

‎src/app/brix/page.tsx‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import { BackgroundView, BrixBackground } from "@components/background";
77
import { Menu } from "@components/xmb-menu";
88
// import { useRouter } from "next/navigation";
99
import { useSettingStore } from "@stores";
10+
import BrixBootNew from "@components/boot/brix-boot";
1011

1112
export function BrixPage() {
1213

@@ -35,10 +36,10 @@ export function BrixPage() {
3536
{
3637
isBootVisible
3738
?
38-
<BootView />
39+
<BrixBootNew />
3940
:
4041
<>
41-
<BackgroundView />
42+
<BrixBackground />
4243
{clock}
4344
<Menu />
4445
</>

‎src/components/boot/boot-view.tsx‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import { BackgroundView } from "@components/background/background-view";
22
import { useBoot, useTheme } from "@context";
33
import { Boot } from "./boot";
44
import { useEffect } from "react";
5-
import useKeyboard from "@hooks/useKeyboard";
65
import { KeyPressAction } from "types";
6+
import { useKeyboard, useDoubleTap } from "@hooks";
77

88
export function BootView() {
99
const { currentTheme, font, boot } = useTheme();
@@ -14,6 +14,11 @@ export function BootView() {
1414
['enter', { repeat: false, onKeyPress: hideBootScreen }],
1515
]);
1616

17+
useDoubleTap({
18+
onDoubleTap: hideBootScreen,
19+
delay: 500,
20+
});
21+
1722
useKeyboard({
1823
actions: actions,
1924
enabledOnModal: false,

‎src/components/boot/brix-boot.scss‎

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
.brix-boot {
2+
background-color: #161616;
3+
}
4+
5+
.brix-boot-fg {
6+
animation: keyframes-fg 10s ease-in-out 0s 1 normal both;
7+
}
8+
9+
.brix-boot-fireworks {
10+
z-index: 100;
11+
animation: keyframes-fireworks 9.5s ease-in-out 0.5s 1 normal both;
12+
}
13+
14+
@keyframes keyframes-fireworks {
15+
0% {
16+
opacity: 0;
17+
}
18+
20%, 75% {
19+
opacity: 1;
20+
}
21+
100% {
22+
opacity: 0;
23+
}
24+
}
25+
26+
@keyframes keyframes-fg {
27+
0% {
28+
opacity: 0;
29+
}
30+
10%, 80% {
31+
opacity: 1;
32+
}
33+
100% {
34+
opacity: 0;
35+
}
36+
}
37+

0 commit comments

Comments
 (0)