Skip to content

Commit 5d2d05d

Browse files
committed
(v0.3.1-beta) Dialogue/Alert!
Made a windows like dialogue/alert box for showing the hints and all. Its not completed but i think ill add a way to open and close it in the next commit
1 parent 622a650 commit 5d2d05d

File tree

5 files changed

+95
-3
lines changed

5 files changed

+95
-3
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ Your PC has been compromised by a group called the "HackClub". Can you regain co
8080
- [ ] Lock some apps (Hacked yk)
8181
- [ ] Stress test the terminal.
8282
- [ ] Add games like MC(https://classic.minecraft.net/) and sm others.
83+
- [ ] the grid snapping is offset from the place where icons snap when u release (Snxhit_)
8384

8485

8586
Playtesters & Contributors: Flux3tor, Snxhit_, Matthias, Nx75, Keyboard1000n17, abtheinnovator, redac1ed, TruthEntity

src/components/ProgressPanel.jsx

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import "../styles/components/ProgressPanel.css";
22

3-
import {Info} from "lucide-react";
3+
import {Info, Spotlight} from "lucide-react";
44
import {useElapsedTime} from "./DateTime.jsx";
55

66
export function ProgressPanel({
@@ -12,6 +12,21 @@ export function ProgressPanel({
1212

1313
return (
1414
<>
15+
<div className={"alert-hint-viewport"}>
16+
<div className={"alert-hint-header"}>
17+
<div className={"header"}>
18+
<Spotlight />
19+
<p className={"header-text"}>HINT</p>
20+
</div>
21+
<div className={"body"}>
22+
<p className={"body-text"}>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna <aliqua className=""></aliqua></p>
23+
</div>
24+
</div>
25+
<div className={"alert-hint-footer"}>
26+
<div className={"button cancel"}>Cancel</div>
27+
<div className={"button confirm"}>Confirm</div>
28+
</div>
29+
</div>
1530
<div
1631
className={`progress-button ${ isOpenProgressPanel ? "progress-button-active" : "" }`}
1732
onClick={() => setIsOpenProgressPanel(!isOpenProgressPanel)}

src/styles/apps/terminal.css

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11

2-
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,100..800;1,100..800&family=Urbanist:ital,wght@0,100..900;1,100..900&display=swap');@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,100..800;1,100..800&family=Urbanist:ital,wght@0,100..900;1,100..900&display=swap');
3-
42
.terminal-app {
53
cursor: text;
64

src/styles/components/ProgressPanel.css

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,79 @@
11

2+
.alert-hint-viewport {
3+
z-index: calc(var(--z-taskbar) + 10);
4+
position: fixed;
5+
width: 100vw;
6+
height: 100vh;
7+
8+
display: flex;
9+
flex-direction: column;
10+
align-items: center;
11+
justify-content: center;
12+
13+
background-color: #77777777;
14+
}
15+
16+
.alert-hint-header {
17+
display: flex;
18+
flex-direction: column;
19+
/*align-items: center;*/
20+
21+
background-color: var(--secondary);
22+
23+
min-height: 7rem;
24+
width: 18rem;
25+
26+
border-radius: 0.5rem 0.5rem 0 0;
27+
padding: 1.25rem 2.25rem;
28+
29+
gap: 0.5rem;
30+
}
31+
.alert-hint-header .header{
32+
display: flex;
33+
flex-direction: row;
34+
gap: 0.25rem;
35+
}
36+
.alert-hint-header .header-text {
37+
font-size: 1.2rem;
38+
font-weight: bold;
39+
}
40+
41+
.alert-hint-footer {
42+
display: flex;
43+
flex-direction: row;
44+
align-items: center;
45+
justify-content: flex-end;
46+
47+
gap: 0.75rem;
48+
49+
padding-right: 1rem;
50+
51+
background-color: var(--primary-foreground);
52+
53+
height: 4rem;
54+
width: 21.5rem;
55+
56+
border-radius: 0 0 0.5rem 0.5rem;
57+
}
58+
.alert-hint-footer .button {
59+
display: flex;
60+
flex-direction: row;
61+
align-items: center;
62+
justify-content: center;
63+
64+
cursor: pointer;
65+
user-select: none;
66+
padding: 6px 11px;
67+
border-radius: 0.3rem;
68+
}
69+
.alert-hint-footer .button.cancel {
70+
background-color: var(--border);
71+
}
72+
.alert-hint-footer .button.confirm {
73+
background-color: #60cdff;
74+
color: black;
75+
}
76+
277
.progress-button {
378
z-index: 2;
479

src/styles/index.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2+
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,100..800;1,100..800&family=Urbanist:ital,wght@0,100..900;1,100..900&display=swap');@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,100..800;1,100..800&family=Urbanist:ital,wght@0,100..900;1,100..900&display=swap');
3+
14
body {
25
/*font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;*/
36
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, "Apple Color Emoji", "Segoe UI Emoji", sans-serif;

0 commit comments

Comments
 (0)