Skip to content

Commit 62679e9

Browse files
committed
feat: header
1 parent 34df0dc commit 62679e9

13 files changed

+484
-8
lines changed

src/App.tsx

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,20 @@
11
import './App.css';
2+
// import { HashRouter as Router, Route, Routes } from "react-router-dom";
3+
import Header from './Layout/Header/Header';
24

35
function App() {
4-
return <>코드이지</>;
6+
return (
7+
<>
8+
<Header />
9+
{/* <Routes>
10+
<Route path="/home" element={<Main />} />
11+
<Route path="/Algorithm" element={<Algorithm />} />
12+
<Route path="/Theme" element={<Theme />} />
13+
<Route path="/Login" element={<Login />} />
14+
<Route path="/Register" element={<Register/>} />
15+
</Routes> */}
16+
</>
17+
);
518
}
619

720
export default App;

src/Layout/Header/Header.scss

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
.header {
2+
position: fixed;
3+
width: 99%;
4+
top: 0;
5+
left: 0;
6+
z-index: 1000;
7+
background-color: #000;
8+
color: #fff;
9+
padding: 10px 20px;
10+
}
11+
12+
.top-section,
13+
.menu,
14+
.user-section {
15+
display: flex;
16+
justify-content: space-between;
17+
align-items: center;
18+
margin-right: 10px;
19+
}
20+
21+
.nav-container {
22+
display: flex;
23+
flex-direction: column;
24+
justify-content: space-between;
25+
width: 100%;
26+
}
27+
28+
.logo {
29+
font-size: 24px;
30+
color: #fff;
31+
text-decoration: none;
32+
margin-right: 20px;
33+
}
34+
35+
.icons {
36+
margin-right: 10px;
37+
display: flex;
38+
}
39+
40+
.icons button {
41+
border: none;
42+
background-color: transparent;
43+
cursor: pointer;
44+
padding: 3px;
45+
}
46+
47+
.menu {
48+
display: flex;
49+
flex-direction: row;
50+
justify-content: space-between;
51+
}
52+
53+
.menu-item {
54+
margin-right: 10px;
55+
}
56+
57+
58+
//인사말과 로그인 부분
59+
.greeting {
60+
margin-right: 10px;
61+
}
62+
63+
.login-link,
64+
.signup-link {
65+
margin-left: 10px;
66+
text-decoration: none;
67+
color: #fff;
68+
}
69+

src/Layout/Header/Header.tsx

Lines changed: 193 additions & 0 deletions
Large diffs are not rendered by default.

src/assets/volumeUp.svg

Lines changed: 3 additions & 0 deletions
Loading

src/assets/로고.svg

Lines changed: 18 additions & 0 deletions
Loading

src/assets/마이너스.svg

Lines changed: 4 additions & 0 deletions
Loading

src/assets/문제풀이 일러스트.svg

Lines changed: 10 additions & 0 deletions
Loading

src/assets/사용자.svg

Lines changed: 10 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)