Skip to content

Commit a4043e6

Browse files
committed
feat: retro mode
1 parent fed57e3 commit a4043e6

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

src/components/CommandPalette.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,15 @@ const CommandPalette = ({ isOpen, setIsOpen, openGenericModal, toggleDigitalRain
175175
addToast({ title: 'Let\'s Party!', message: 'Boots and cats and boots and cats!', duration: 2000 });
176176
}
177177
break;
178+
case 'toggleRetroMode':
179+
if (document.documentElement.classList.contains('retro-mode')) {
180+
document.documentElement.classList.remove('retro-mode');
181+
addToast({ title: 'Retro Mode Off', message: 'Back to the future!', duration: 2000 });
182+
} else {
183+
document.documentElement.classList.add('retro-mode');
184+
addToast({ title: 'Retro Mode On', message: '80s Vibes Initiated.', duration: 2000 });
185+
}
186+
break;
178187
case 'showTime': {
179188
openGenericModal('Current Time', <LiveClock />);
180189
break;

src/hooks/useSearchableData.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ const useSearchableData = () => {
106106
{ title: 'Do a Barrel Roll', type: 'command', commandId: 'doBarrelRoll' },
107107
{ title: 'Toggle Invert Colors', type: 'command', commandId: 'toggleInvertColors' },
108108
{ title: 'Party Mode', type: 'command', commandId: 'partyMode' },
109+
{ title: 'Toggle Retro Mode', type: 'command', commandId: 'toggleRetroMode' },
109110
];
110111

111112
setItems([...staticRoutes, ...customCommands, ...allPosts, ...allProjects, ...allLogs, ...allApps]);

0 commit comments

Comments
 (0)