Skip to content

Commit 1be7627

Browse files
authored
Merge pull request #96 from codeit-sprint-part3-6team/#85_공통-Header-로그인-회원가입-랜딩-제외
#85 공통 header 로그인 회원가입 랜딩 제외
2 parents 26ca881 + b2fa00a commit 1be7627

File tree

11 files changed

+666
-0
lines changed

11 files changed

+666
-0
lines changed

package-lock.json

Lines changed: 245 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
"dependencies": {
1212
"@emotion/react": "^11.14.0",
1313
"@emotion/styled": "^11.14.0",
14+
"@mui/joy": "^5.0.0-beta.51",
1415
"@mui/material": "^6.2.0",
1516
"@mui/system": "^6.2.0",
1617
"@mui/x-date-pickers": "^7.23.1",

public/favicon.ico

-10.3 KB
Binary file not shown.
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
.button {
2+
display: flex;
3+
align-items: center;
4+
5+
height: 40px;
6+
7+
border: 1px solid var(--gray-medium);
8+
border-radius: 8px;
9+
background-color: none;
10+
padding: 0 16px;
11+
12+
font-size: 16px;
13+
font-weight: 500;
14+
color: var(--gray);
15+
16+
cursor: pointer;
17+
}
18+
19+
.button + .button {
20+
margin-left: 16px;
21+
}
22+
23+
.button.management::before,
24+
.button.invite::before {
25+
content: '';
26+
27+
width: 20px;
28+
height: 20px;
29+
30+
display: inline-block;
31+
margin-right: 8px;
32+
33+
background-image: url('/ic/ic_setting.svg') no-repeat;
34+
background-size: 100%;
35+
}
36+
37+
.button.invite::before {
38+
background-image: url('/ic/ic_plus.svg') no-repeat;
39+
background-size: 100%;
40+
}
41+
42+
@media screen and (max-width: 1199px) {
43+
.button + .button {
44+
margin-left: 12px;
45+
}
46+
}
47+
48+
@media screen and (max-width: 743px) {
49+
.button {
50+
height: 30px;
51+
52+
border-radius: 6px;
53+
padding: 0 10px;
54+
55+
font-size: 14px;
56+
}
57+
58+
.button + .button {
59+
margin-left: 6px;
60+
}
61+
62+
.button.management::before,
63+
.button.invite::before {
64+
display: none;
65+
}
66+
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
import styles from './NavButton.module.css';
2+
3+
type NavButtonProps = {
4+
btnType: 'management' | 'invite';
5+
buttonName: string;
6+
onClick?: () => void;
7+
};
8+
9+
function NavButton({ btnType, buttonName, onClick }: NavButtonProps) {
10+
return (
11+
<button
12+
className={`${styles.button} ${styles[btnType]}`}
13+
type="button"
14+
onClick={onClick}
15+
>
16+
{buttonName}
17+
</button>
18+
);
19+
}
20+
21+
export default NavButton;

0 commit comments

Comments
 (0)