Skip to content

Commit a6666b6

Browse files
committed
(v0.1.4.3-alpha) Taskbar Animation + Bug Fixes
Animation when popping up new items in the taskbar. Make ~~opaque and~~ high zIndex when dragging desktop apps, to overlay the bottom objects. In fullscreen clicking the app in taskbar toggles fullscreen, and it becomes not fullscreen.
1 parent cccca07 commit a6666b6

File tree

15 files changed

+184
-38
lines changed

15 files changed

+184
-38
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,7 @@ Your PC has been compromised by a group called the "HackClub". Can you regain co
1616
- [X] Dynamic Grid (Fixed in v0.1.4.1)
1717
- [X] the text to icon ratio is too big, maybe either increase the size of the icon or decrease the size of the text (do both) (Done in v0.1.4.2)
1818
- [X] Routers for the desktop Apps. (Done in v0.1.4.2)
19-
- [ ] Make opaque and high zIndex when dragging desktop apps, to hide the bottom objects.
19+
- [X] New apps (not pinned in the taskbar) should be shown in taskbar when opened. (Done in v0.1.4.3)
20+
- [X] Animation when popping up new items in the taskbar. (Done in v0.1.4.3)
21+
- [X] Make ~~opaque and~~ high zIndex when dragging desktop apps, to overlay the bottom objects. (Done in v0.1.4.3)
22+
- [X] BUG: In fullscreen clicking the app in taskbar toggles fullscreen, and it becomes not fullscreen. (Done in v0.1.4.3)

package-lock.json

Lines changed: 40 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"preview": "vite preview"
1212
},
1313
"dependencies": {
14+
"framer-motion": "^12.34.2",
1415
"lucide-react": "^0.574.0",
1516
"react": "^19.2.0",
1617
"react-dom": "^19.2.0",

public/assets/icons/Notepad.png

29.8 KB
Loading

public/assets/icons/Windows.svg

Lines changed: 24 additions & 0 deletions
Loading

src/App.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ function App() {
1414
<>
1515
<div className="app">
1616
<Routes>
17-
<Route path="/" Component={LockScreen}/>
18-
<Route path="/desktop" Component={Desktop}/>
17+
<Route path="/desktop" Component={LockScreen}/>
18+
<Route path="/" Component={Desktop}/>
1919

2020
<Route path="/apps/*" element={<DesktopApps />} />
2121
</Routes>

src/DesktopApps.jsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,19 @@ import Explorer from "./apps/explorer.jsx";
88
import Settings from "./apps/settings.jsx";
99
import VSCode from "./apps/vscode.jsx";
1010
import Terminal from "./apps/terminal.jsx";
11+
import Readme_txt from "./apps/README.txt.jsx";
1112

1213
function DesktopApps() {
1314
return (
14-
<div className="app-container">
15+
<div className="app-window">
1516
<Routes>
1617
<Route path="/explorer" element={<Explorer />} />
1718
<Route path="/vscode" element={<VSCode />} />
1819
<Route path="/settings" element={<Settings />} />
1920
<Route path="/chrome" element={<Chrome />} />
2021
<Route path="/terminal" element={<Terminal />} />
22+
23+
<Route path={"/readme_txt"} element={<Readme_txt />} />
2124
</Routes>
2225
</div>
2326
);

src/apps/README.txt.jsx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import "../styles/apps/readme_txt.css"
2+
3+
function Readme_txt() {
4+
5+
return (
6+
<>
7+
<p>Readme_txt</p>
8+
</>
9+
)
10+
}
11+
12+
export default Readme_txt

src/assets/icons/Notepad.png

29.8 KB
Loading

src/data/Apps.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,10 @@ export const APP_REGISTRY = {
2424
src: "/?start=/apps/terminal",
2525
imgSrc: "/assets/icons/Terminal.ico",
2626
},
27+
28+
readme_txt: {
29+
title: "README.txt",
30+
src: "/?start=/apps/readme_txt",
31+
imgSrc: "/assets/icons/Notepad.png",
32+
}
2733
};

0 commit comments

Comments
 (0)