Skip to content

Commit 452c15b

Browse files
committed
feat: faah soundeffect
1 parent d0fb591 commit 452c15b

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

public/sounds/faah.mp3

36.7 KB
Binary file not shown.

src/pages/brutalist-views/BrutalistHomePage.jsx

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import {
1111
BroadcastIcon,
1212
LightningIcon,
1313
CpuIcon,
14+
SpeakerHighIcon,
1415
} from '@phosphor-icons/react';
1516
import PostTile from '../../components/PostTile';
1617
import ProjectTile from '../../components/ProjectTile';
@@ -41,6 +42,11 @@ const StatusPill = () => {
4142
return () => clearInterval(timer);
4243
}, []);
4344

45+
const playAttackSound = () => {
46+
const audio = new Audio('/sounds/faah.mp3');
47+
audio.play().catch((e) => console.error('Audio play failed', e));
48+
};
49+
4450
return (
4551
<div className="fixed bottom-6 right-6 z-40 flex flex-col items-end gap-0">
4652
<AnimatePresence>
@@ -64,6 +70,17 @@ const StatusPill = () => {
6470
</div>
6571
<div className="h-px bg-transparent border-t border-dashed border-blue-100/30 my-1" />
6672

73+
<div className="flex justify-between items-center text-gray-400">
74+
<span>AUDIO</span>
75+
<button
76+
onClick={playAttackSound}
77+
className="text-[10px] border border-white/40 text-white px-2 py-0.5 hover:bg-white hover:text-black transition-colors flex items-center gap-2"
78+
>
79+
<span>[ATTACK!!!]</span>
80+
<SpeakerHighIcon size={12} weight="fill" />
81+
</button>
82+
</div>
83+
6784
<div className="flex justify-between items-center text-gray-400">
6885
<span>THEME</span>
6986
<button
@@ -74,7 +91,7 @@ const StatusPill = () => {
7491
}
7592
className="text-[10px] border border-white/40 text-white px-2 py-0.5 hover:bg-white hover:text-black transition-colors"
7693
>
77-
[{fezcodexTheme}]
94+
[{fezcodexTheme.toUpperCase()}]
7895
</button>
7996
</div>
8097

0 commit comments

Comments
 (0)