Skip to content

Commit a52d492

Browse files
committed
메인화면 작업중인부분가지 커밋
1 parent 7b991e0 commit a52d492

File tree

3 files changed

+82
-17
lines changed

3 files changed

+82
-17
lines changed

src/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ function App() {
2121
<CssBaseline />
2222
<Container className="App">
2323
<Header />
24-
<Routes>
24+
<Routes>
2525
<Route path="/" Component={Home} />
2626
<Route path="/builder" element={<IntroduceBuilder />} />
2727
<Route path="/runner" element={<Test />} />

src/modules/Header/Header.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import {
1111
Button,
1212
Drawer,
1313
IconButton,
14-
Typography,
1514
} from "@mui/material";
1615
import { Menu, Close } from "@mui/icons-material";
1716
import PseudoLabLogo from "../../components/common/PseudoLabLogo";

src/modules/Home/Home.tsx

Lines changed: 81 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import MainBanner from "./components/MainBanner";
2-
import { Container, Typography, Theme, Input } from "@mui/material";
2+
import { Container, Typography, Theme, Input, Button } from "@mui/material";
3+
import { toast, ToastContainer } from "react-toastify";
34
import PseudoLabLogo from "../../components/common/PseudoLabLogo";
45
import { styled } from "@mui/system";
56

@@ -20,50 +21,115 @@ const Description = styled(Typography)({
2021
marginBottom: (theme: Theme) => theme.spacing(4),
2122
});
2223

23-
24-
2524
const InputBox = styled(Input)({
2625
marginTop: "1rem",
2726
});
2827

2928
const Home = () => {
30-
let loginId = ""
31-
let password = ""
29+
let loginId = "";
30+
let password = "";
3231
const handLogin = () => {
33-
34-
}
32+
console.log(loginId);
33+
console.log(password);
34+
};
3535

3636
return (
3737
<StyledContainer>
38-
<Typography sx={{ whiteSpace: "pre-wrap", fontSize: "5vw", textAlign: "left", fontFamily: "Spoqa Han Sans Neo", fontWeight: "bold" }}>
38+
<Typography
39+
sx={{
40+
whiteSpace: "pre-wrap",
41+
fontSize: "5vw",
42+
textAlign: "left",
43+
fontFamily: "Spoqa Han Sans Neo",
44+
fontWeight: "bold",
45+
}}
46+
>
3947
빙고 네트워킹
4048
</Typography>
4149

42-
<Typography sx={{ whiteSpace: "pre-wrap", fontSize: "4vw", textAlign: "left", fontFamily: "Spoqa Han Sans Neo", fontWeight: "bold" }}>
50+
<Typography
51+
sx={{
52+
whiteSpace: "pre-wrap",
53+
fontSize: "4vw",
54+
textAlign: "left",
55+
fontFamily: "Spoqa Han Sans Neo",
56+
fontWeight: "bold",
57+
}}
58+
>
4359
Sudo Pseudo Explore
4460
</Typography>
4561

46-
<Typography sx={{ whiteSpace: "pre-wrap", fontSize: "3.5vw", textAlign: "left", fontFamily: "Spoqa Han Sans Neo", fontWeight: "bold" }}>
62+
<Typography
63+
sx={{
64+
whiteSpace: "pre-wrap",
65+
fontSize: "3.5vw",
66+
textAlign: "left",
67+
fontFamily: "Spoqa Han Sans Neo",
68+
fontWeight: "bold",
69+
}}
70+
>
4771
1st Grand Gathering
4872
</Typography>
4973

50-
<Typography sx={{ whiteSpace: "pre-wrap", fontSize: "3vw", textAlign: "left", fontFamily: "Spoqa Han Sans Neo", fontWeight: "bold" }}>
74+
<Typography
75+
sx={{
76+
whiteSpace: "pre-wrap",
77+
fontSize: "3vw",
78+
textAlign: "left",
79+
fontFamily: "Spoqa Han Sans Neo",
80+
fontWeight: "bold",
81+
}}
82+
>
5183
2024.11.23
5284
</Typography>
5385

86+
<br />
87+
5488
<InputBox
5589
placeholder="아이디 입력"
5690
value={loginId}
57-
onChange={handLogin}
91+
onChange={async (event: React.ChangeEvent<HTMLInputElement>) => {
92+
loginId = event.target.value;
93+
}}
5894
></InputBox>
5995

6096
<InputBox
6197
placeholder="비밀번호 입력"
6298
value={password}
63-
onChange={handLogin}
99+
onChange={async (event: React.ChangeEvent<HTMLInputElement>) => {
100+
password = event.target.value;
101+
}}
64102
></InputBox>
65-
66-
</StyledContainer >
103+
<br />
104+
<br />
105+
<Button
106+
onClick={async () => {
107+
if (loginId === "") {
108+
toast.error("아이디를 입력해주세요.");
109+
return;
110+
} else if (password === "") {
111+
toast.error("비밀번호를 입력해주세요.");
112+
return;
113+
} else {
114+
await handLogin();
115+
}
116+
}}
117+
>
118+
계정 생성 or 로그인
119+
</Button>
120+
<ToastContainer
121+
position="top-right" // 알람 위치 지정
122+
autoClose={3000} // 자동 off 시간
123+
hideProgressBar={false} // 진행시간바 숨김
124+
closeOnClick // 클릭으로 알람 닫기
125+
rtl={false} // 알림 좌우 반전
126+
pauseOnFocusLoss // 화면을 벗어나면 알람 정지
127+
draggable // 드래그 가능
128+
pauseOnHover // 마우스를 올리면 알람 정지
129+
theme="light"
130+
// limit={1} // 알람 개수 제한
131+
/>
132+
</StyledContainer>
67133
);
68134
};
69135

0 commit comments

Comments
 (0)