Skip to content

Commit 734b68e

Browse files
authored
Merge pull request #26 from Seol-JY/feature/new
[FEAT]: 다양한 기능 추가
2 parents 6a99c15 + 7371ed7 commit 734b68e

File tree

5 files changed

+700
-13
lines changed

5 files changed

+700
-13
lines changed

client/src/App.js

+13-3
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,12 @@ function App() {
7171
};
7272

7373
function easteregg() {
74-
alert("Remove the window");
74+
alert("ㅎㅇ");
7575
}
7676

7777
return (
7878
<Provider store={store}>
79-
<div
79+
{/* <div
8080
style={{
8181
margin: "0",
8282
fontSize: "20px",
@@ -114,7 +114,7 @@ function App() {
114114
Can you press it?
115115
</button>
116116
)}
117-
</div>
117+
</div> */}
118118
<div className="scale-wrapper" style={{ transform: `scale(${scale})` }}>
119119
<Draggable onDrag={(e, data) => trackPos(data)}>
120120
<div className="form no-drag">
@@ -125,6 +125,16 @@ function App() {
125125
>
126126
Speed Coder - Insiders
127127
</h1>
128+
<img
129+
style={{
130+
position: "absolute",
131+
right: "10px",
132+
top: "770px",
133+
left: "1148px",
134+
width: "6%",
135+
}}
136+
src="https://hits.seeyoufarm.com/api/count/incr/badge.svg?url=https%3A%2F%2Fspeedcoder.seol.pro&count_bg=%2379C83D&title_bg=%23555555&icon=&icon_color=%23E7E7E7&edge_flat=false"
137+
/>
128138

129139
<ul className="circlewrapper" onClick={easteregg}>
130140
<li className="circle">

client/src/components/Sidebar.jsx

+2
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ export default function Sidebar(props) {
1111
"server.js",
1212
"RectangleArea.java",
1313
"say_hello.py",
14+
"Example.java",
15+
"Fibonacci.java",
1416
];
1517
useEffect(() => {
1618
if (props.section === "1") {

client/src/components/SidebarButton.jsx

+4-4
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export default function SidebarButton(props) {
66

77
useEffect(() => {
88
checker();
9-
}, []);
9+
}, [props.daynight]);
1010

1111
function checker() {
1212
if (props.daynight === 1) {
@@ -16,13 +16,14 @@ export default function SidebarButton(props) {
1616
) {
1717
document.documentElement.setAttribute("data-theme", "dark");
1818
setdaynightico("light_mode");
19+
props.setdaynight(2);
1920
}
2021
} else {
2122
if (props.daynight % 2 === 1) {
22-
document.documentElement.setAttribute("data-theme", "dark");
23+
document.documentElement.setAttribute("data-theme", "light");
2324
setdaynightico("light_mode");
2425
} else {
25-
document.documentElement.setAttribute("data-theme", "light");
26+
document.documentElement.setAttribute("data-theme", "dark");
2627
setdaynightico("dark_mode");
2728
}
2829
}
@@ -58,7 +59,6 @@ export default function SidebarButton(props) {
5859
id="onlymargin"
5960
onClick={() => {
6061
props.setdaynight(props.daynight + 1);
61-
checker();
6262
}}
6363
>
6464
{daynightico}

client/src/utils/egg.js

-4
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,4 @@ can manipulate speed, please report
5050
"color: balck; font-size: 10px;",
5151
"color: #fff530; background-color: #212121; font-size: 11px;"
5252
);
53-
console.log(
54-
`%cCareful. This might not do what you think.`,
55-
"color: yellow; background-color: red; font-size: 14px; font-weight: bold;"
56-
);
5753
}

0 commit comments

Comments
 (0)