Skip to content

Commit 6cd7419

Browse files
committed
feat: Add styles to footer part
1 parent da768e8 commit 6cd7419

File tree

3 files changed

+44
-9
lines changed

3 files changed

+44
-9
lines changed

src/assets/linkedin.svg

Lines changed: 3 additions & 0 deletions
Loading

src/components/Footer.tsx

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,28 @@
11
import React from "react";
2+
import LinkedInIcon from "../assets/linkedin.svg?react";
23

34
const Footer: React.FC = () => {
5+
const ICON_SIZE = 30;
46
return (
57
<footer>
6-
<nav>
7-
<ul>
8-
<li><a href="#about">About</a></li>
9-
<li><a href="#skills">Skills</a></li>
10-
<li><a href="#projects">Projects</a></li>
11-
<li><a href="#contact">Contact</a></li>
12-
</ul>
13-
</nav>
8+
9+
<div className="left-components">
10+
<a href="https://www.linkedin.com/in/tetsuto-hara-7822b5257/" target="_blank" id="header-title">
11+
<LinkedInIcon width={ICON_SIZE} height={ICON_SIZE}/>
12+
</a>
13+
</div>
14+
15+
<div className="right-conponents">
16+
<nav>
17+
<ul>
18+
<li><a href="#about">About</a></li>
19+
<li><a href="#skills">Skills</a></li>
20+
<li><a href="#projects">Projects</a></li>
21+
<li><a href="#contact">Contact</a></li>
22+
</ul>
23+
</nav>
24+
</div>
25+
1426
</footer>
1527
)
1628
}

src/styles/global.css

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ header {
2727
header nav ul {
2828
/* positioning */
2929
display: flex;
30-
justify-content: center;
3130
gap: 50px;
3231
list-style: none;
3332
margin-right: 150px;
@@ -212,4 +211,25 @@ form {
212211
height: 40px;
213212
align-self: center;
214213
margin-top: 10px;
214+
}
215+
216+
/* Footer part */
217+
footer {
218+
display: flex;
219+
justify-content: space-between;
220+
}
221+
222+
footer .left-components {
223+
display: flex;
224+
margin-left: 50px;
225+
}
226+
227+
footer nav ul {
228+
/* positioning */
229+
display: flex;
230+
gap: 50px;
231+
list-style: none;
232+
margin-right: 150px;
233+
/* fontsize */
234+
font-size: large;
215235
}

0 commit comments

Comments
 (0)