Skip to content

Commit a591fd5

Browse files
committed
style: 글꼴 변경
세종체, 샐러드체
1 parent 5275eb8 commit a591fd5

19 files changed

+129
-169
lines changed
790 KB
Binary file not shown.
790 KB
Binary file not shown.
788 KB
Binary file not shown.
784 KB
Binary file not shown.
785 KB
Binary file not shown.
779 KB
Binary file not shown.
780 KB
Binary file not shown.
781 KB
Binary file not shown.
782 KB
Binary file not shown.

src/components/Book/Application/DropBox.tsx

+3-2
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,8 @@ const Dropbox = styled.div<DropboxProps>`
142142
position: absolute;
143143
width: 100px;
144144
max-height: ${({ isOpened }) => (isOpened ? "200px" : "0px")};
145-
transition: max-height 0.3s ease-in-out;
145+
padding: ${({ isOpened }) => (isOpened ? "10px" : "0px")};
146+
transition: max-height, padding 0.3s ease-in-out;
146147
border-radius: 10px;
147148
overflow-y: scroll;
148149
overflow-x: hidden;
@@ -152,7 +153,7 @@ const Dropbox = styled.div<DropboxProps>`
152153
z-index: 1;
153154
gap: 5px;
154155
top: 30px;
155-
padding: 10px;
156+
156157
background-color: #fff;
157158
158159
${({ isOpened }) =>

src/components/navBar/Menu.tsx

+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
import styled from "@emotion/styled";
2+
3+
interface MobileMenuProps {
4+
isOpened: boolean;
5+
}
6+
const MobileMenu = styled.div<MobileMenuProps>`
7+
display: flex;
8+
flex-direction: column;
9+
position: absolute;
10+
width: 100%;
11+
height: ${({ isOpened }) => (isOpened ? "175px" : "0px")};
12+
transition: height 0.3s ease-in-out;
13+
z-index: 1;
14+
gap: 5px;
15+
top: 55px;
16+
17+
overflow: hidden;
18+
background-color: #fff;
19+
${({ isOpened }) =>
20+
isOpened &&
21+
`
22+
box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.05);
23+
`}
24+
`;
25+
const Menu = styled.div<MenuProps>`
26+
position: fixed;
27+
@media (max-width: 768px) {
28+
gap: 0px;
29+
}
30+
gap: 200px;
31+
z-index: 3;
32+
width: calc(100%);
33+
height: 55px;
34+
background-color: white;
35+
box-sizing: border-box;
36+
top: 0px;
37+
display: flex;
38+
justify-content: space-between;
39+
align-items: center;
40+
${({ isMove }) =>
41+
isMove ? `border-bottom:1px solid #E6E8EA` : `box-shadow:none`}
42+
`;
43+
interface MenuProps {
44+
isMove: boolean;
45+
}
46+
47+
export { MobileMenu, Menu };

src/components/navBar/Space.tsx

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
import styled from "@emotion/styled";
2+
3+
const Space = styled.div<{ isActive?: boolean }>`
4+
cursor: pointer;
5+
font-family: SejongGeulggot;
6+
display: flex;
7+
align-items: center;
8+
height: 110%;
9+
border: none;
10+
color: ${({ isActive }) => (isActive ? "#ffaa00" : "inherit")};
11+
border-bottom: ${({ isActive }) => (isActive ? "1px solid #ffaa00" : "none")};
12+
&:hover {
13+
color: #ffaa00;
14+
border-bottom: 1px solid #ffaa00;
15+
}
16+
@media (max-width: 768px) {
17+
padding: 10px 30px;
18+
margin-top: 10px;
19+
&:hover {
20+
background-color: #f1f1f1;
21+
border-bottom: none;
22+
color: black;
23+
}
24+
}
25+
font-weight: 300;
26+
font-size: 16px;
27+
padding: 5px;
28+
width: auto;
29+
`;
30+
31+
export default Space;

src/components/navBar/navBar.tsx

+2-35
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,10 @@
1-
import styled from "@emotion/styled";
21
import { css } from "@emotion/css";
32
import React, { useEffect, useState, useContext } from "react";
43
import logo from "/image/logo.svg";
54
import { Link, useLocation } from "react-router-dom";
65
import { AuthContext } from "../../contexts/AuthContext";
7-
8-
const Menu = styled.div<MenuProps>`
9-
position: fixed;
10-
z-index: 3;
11-
width: calc(100%);
12-
height: 55px;
13-
background-color: white;
14-
box-sizing: border-box;
15-
top: 0px;
16-
display: flex;
17-
justify-content: space-between;
18-
align-items: center;
19-
${({ isMove }) =>
20-
isMove ? `border-bottom:1px solid #E6E8EA` : `box-shadow:none`}
21-
`;
22-
type MenuProps = {
23-
isMove: boolean;
24-
};
25-
26-
const Space = styled.div<{ isActive?: boolean }>`
27-
cursor: pointer;
28-
box-sizing: border-box;
29-
border: none;
30-
color: ${({ isActive }) => (isActive ? "#ffaa00" : "inherit")};
31-
border-bottom: ${({ isActive }) => (isActive ? "3px solid #ffaa00" : "none")};
32-
&:hover {
33-
color: #ffaa00;
34-
border-bottom: 3px solid #ffaa00;
35-
}
36-
font-weight: 300;
37-
font-size: 16px;
38-
padding: 5px;
39-
width: auto;
40-
`;
6+
import { Menu } from "./Menu.tsx";
7+
import Space from "./Space.tsx";
418

429
const NavBar: React.FC = () => {
4310
const { user } = useContext(AuthContext);

src/components/navBar/navBar2.tsx

+23-89
Original file line numberDiff line numberDiff line change
@@ -5,56 +5,20 @@ import logo from "/image/logo.svg";
55
import { Link, useLocation } from "react-router-dom";
66
import useIsMobile from "../mobile/useIsMobile";
77
import { IoClose, IoMenu } from "react-icons/io5";
8+
import Space from "./Space.tsx";
9+
import { Menu, MobileMenu } from "./Menu.tsx";
810

9-
const Menu = styled.div<MenuProps>`
10-
position: fixed;
11-
@media (max-width: 768px) {
12-
gap: 0px;
13-
}
14-
gap: 200px;
15-
z-index: 3;
16-
width: calc(100%);
17-
height: 55px;
18-
background-color: white;
19-
box-sizing: border-box;
20-
top: 0px;
21-
display: flex;
22-
justify-content: space-between;
23-
align-items: center;
24-
${({ isMove }) =>
25-
isMove ? `border-bottom:1px solid #E6E8EA` : `box-shadow:none`}
26-
`;
27-
type MenuProps = {
28-
isMove: boolean;
29-
};
30-
31-
const Space = styled.div<{ isActive?: boolean; isMobile?: boolean }>`
32-
cursor: pointer;
33-
display: flex;
34-
align-items: center;
35-
height: 110%;
36-
border: none;
37-
38-
color: ${({ isActive }) => (isActive ? "#ffaa00" : "inherit")};
39-
border-bottom: ${({ isActive }) => (isActive ? "3px solid #ffaa00" : "none")};
40-
&:hover {
41-
color: ${({ isMobile }) => (isMobile ? "inherit" : "#ffaa00")};
42-
border-bottom: ${({ isMobile }) =>
43-
isMobile ? "none" : "3px solid #ffaa00"};
44-
background-color: ${({ isMobile }) => (isMobile ? "#f1f1f1" : "none")};
45-
}
46-
font-weight: 300;
47-
font-size: 16px;
48-
padding: ${({ isMobile }) => (isMobile ? "10px 30px" : "5px")};
49-
margin-top: ${({ isMobile }) => (isMobile ? "10px" : "0px")};
50-
width: auto;
51-
`;
5211
const NavBar2: React.FC = () => {
5312
const [isMove, setIsMove] = useState(false);
5413
const location = useLocation();
5514
const isMobile = useIsMobile();
5615
const [isOpen, setIsOpen] = useState(false);
57-
16+
const LogoutUser = () => {
17+
localStorage.removeItem("accessToken");
18+
localStorage.removeItem("refreshToken");
19+
localStorage.removeItem("accessTokenExpireTime");
20+
window.location.href = "/";
21+
};
5822
useEffect(() => {
5923
const handleScroll = () => {
6024
setIsMove(window.scrollY > 0);
@@ -93,26 +57,15 @@ const NavBar2: React.FC = () => {
9357
`}
9458
>
9559
<Link to="/book">
96-
<Space isActive={location.pathname === "/book"} isMobile={isMobile}>
97-
예약하기
98-
</Space>
60+
<Space isActive={location.pathname === "/book"}>연습실</Space>
9961
</Link>
10062
<Link to="/board">
101-
<Space
102-
isActive={location.pathname === "/board"}
103-
isMobile={isMobile}
104-
>
105-
게시판
106-
</Space>
63+
<Space isActive={location.pathname === "/board"}>게시판</Space>
10764
</Link>
10865
<Link to="/mypage">
109-
<Space
110-
isActive={location.pathname === "/mypage"}
111-
isMobile={isMobile}
112-
>
113-
마이페이지
114-
</Space>
66+
<Space isActive={location.pathname === "/mypage"}>마이페이지</Space>
11567
</Link>
68+
<LogOutButton onClick={LogoutUser}>로그아웃</LogOutButton>
11669
</div>
11770
) : (
11871
<>
@@ -125,19 +78,13 @@ const NavBar2: React.FC = () => {
12578
</Button>
12679
<MobileMenu isOpened={isOpen}>
12780
<Link to="/book">
128-
<Space isActive={false} isMobile={isMobile}>
129-
예약하기
130-
</Space>
81+
<Space isActive={false}>예약하기</Space>
13182
</Link>
13283
<Link to="/board">
133-
<Space isActive={false} isMobile={isMobile}>
134-
게시판
135-
</Space>
84+
<Space isActive={false}>게시판</Space>
13685
</Link>
13786
<Link to="/mypage">
138-
<Space isActive={false} isMobile={isMobile}>
139-
마이페이지
140-
</Space>
87+
<Space isActive={false}>마이페이지</Space>
14188
</Link>
14289
</MobileMenu>
14390
</>
@@ -155,25 +102,12 @@ const Button = styled.button`
155102
font-size: 20px;
156103
margin-right: 30px;
157104
`;
158-
interface MobileMenuProps {
159-
isOpened: boolean;
160-
}
161-
const MobileMenu = styled.div<MobileMenuProps>`
162-
display: flex;
163-
flex-direction: column;
164-
position: absolute;
165-
width: 100%;
166-
height: ${({ isOpened }) => (isOpened ? "175px" : "0px")};
167-
transition: height 0.3s ease-in-out;
168-
z-index: 1;
169-
gap: 5px;
170-
top: 55px;
171-
172-
overflow: hidden;
173-
background-color: #fff;
174-
${({ isOpened }) =>
175-
isOpened &&
176-
`
177-
box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.05);
178-
`}
105+
const LogOutButton = styled.button`
106+
background-color: transparent;
107+
border: 1.5px solid #fec511;
108+
border-radius: 25px;
109+
padding: 5px 15px;
110+
cursor: pointer;
111+
font-size: 13px;
112+
margin-right: 30px;
179113
`;

src/components/navBar/navBar3.tsx

+2-36
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,9 @@
1-
import styled from "@emotion/styled";
21
import { css } from "@emotion/css";
32
import React, { useEffect, useState } from "react";
43
import logo from "/image/logo.svg";
54
import { Link, useLocation } from "react-router-dom";
6-
7-
const Menu = styled.div<MenuProps>`
8-
position: fixed;
9-
z-index: 3;
10-
width: calc(100%);
11-
height: 55px;
12-
background-color: white;
13-
box-sizing: border-box;
14-
top: 0px;
15-
display: flex;
16-
justify-content: space-between;
17-
align-items: center;
18-
${({ isMove }) =>
19-
isMove ? `border-bottom:1px solid #E6E8EA` : `box-shadow:none`}
20-
`;
21-
type MenuProps = {
22-
isMove: boolean;
23-
};
24-
25-
const Space = styled.div<{ isActive?: boolean }>`
26-
cursor: pointer;
27-
box-sizing: border-box;
28-
border: none;
29-
color: ${({ isActive }) => (isActive ? "#ffaa00" : "inherit")};
30-
border-bottom: ${({ isActive }) => (isActive ? "3px solid #ffaa00" : "none")};
31-
&:hover {
32-
color: #ffaa00;
33-
border-bottom: 3px solid #ffaa00;
34-
}
35-
font-weight: 300;
36-
font-size: 16px;
37-
padding: 5px;
38-
width: auto;
39-
`;
40-
5+
import Space from "./Space";
6+
import { Menu } from "./Menu";
417
const NavBar3: React.FC = () => {
428
const [isMove, setIsMove] = useState(false);
439
const location = useLocation();

src/pages/BookPage.tsx

+4-2
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,21 @@ interface NavProps {
1111
isActive: boolean;
1212
}
1313
const Nav = styled.button<NavProps>`
14+
SejongGeulggot
1415
font-size: 17px;
16+
font-family: S-CoreDream, sans-serif;
1517
min-width: 80px;
18+
font-weight: 100;
19+
font-size: 15px;
1620
@media (max-width: 768px) {
1721
min-width: 40px;
1822
font-size: 15px;
1923
}
2024
background-color: ${({ isActive }) => (isActive ? "#FFF4D5" : "transparent")};
21-
font-weight: 300;
2225
white-space: nowrap;
2326
border-radius: 10px;
2427
padding: 10px;
2528
color: black;
26-
2729
&:hover,
2830
&:active {
2931
background-color: #fff4d5;

src/pages/HomePage.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { css } from "@emotion/css";
22
import NavBar from "../components/navBar/navBar.tsx";
3-
import monkey from "/monkey.svg";
3+
import monkey from "/image/monkey.svg";
44
import { useNavigate } from "react-router-dom";
55
import { useEffect } from "react";
66
const HomePage = () => {

src/styles/GlobalStyle.tsx

+13-1
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,22 @@ import fonts from "../assets/font/font.ts";
33
const GlobalStyle = () => (
44
<Global
55
styles={css`
6+
@font-face {
7+
font-family: "S-CoreDream";
8+
src: url(/fonts/S-Core_Dream/SCDream2.ttf) format("trueType");
9+
font-weight: 200;
10+
font-style: normal;
11+
}
12+
@font-face {
13+
font-family: SejongGeulggot;
14+
src: url(/fonts/SejongGeulggot.ttf) format("truetype");
15+
font-weight: 300;
16+
font-style: normal;
17+
}
618
${fonts}
719
* {
820
box-sizing: border-box;
9-
font-family: "Spoqa Han Sans Neo", "Spoqa Han Sans JP", sans-serif;
21+
font-family: "S-CoreDream", "Spoqa Han Sans JP", sans-serif;
1022
font-size: 15px;
1123
font-weight: 300;
1224
}

0 commit comments

Comments
 (0)