Skip to content

Commit f448e5a

Browse files
authored
Added: social in burger menu (#13)
* fix: wa url * update version to v3.2.2-beta * added: social in burger menu
1 parent 2524139 commit f448e5a

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

src/App.jsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import './App.css'
22
import About from './components/about'
3-
import Certifications from './components/certifications'
43
import Contact from './components/contact'
54
import Divider from './components/divider'
65
import Footer from './components/footer'
@@ -14,7 +13,7 @@ function App() {
1413
return (
1514
<div className="App mx-auto md:mockup-window md:border bg-base-300 md:my-2 mx-2">
1615
<div className="md:px-16 md:py-4 max-[640px]:px-4 bg-base-100">
17-
<Navbar />
16+
<Navbar bio={bio} />
1817
<Header bio={bio} />
1918
<About aboutMe={bio.aboutMe} />
2019
<Divider />

src/components/navbar.jsx

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
import { bio } from '../data'
2-
function Navbar () {
1+
function Navbar ({ bio }) {
32
return (
43
<div className="navbar">
54
<div className="navbar-start">
@@ -11,6 +10,15 @@ function Navbar () {
1110
<li><a>Home</a></li>
1211
<li><a href="#about">About</a></li>
1312
<li><a href="#contact">Contact</a></li>
13+
{
14+
bio.socials.map(social => {
15+
return (
16+
<li key={social.id}>
17+
<a href={social.link} target="_blank">{social.title}</a>
18+
</li>
19+
)
20+
})
21+
}
1422
<li><a href={bio.resumeUrl} target="_blank">Resume</a></li>
1523
</ul>
1624
</div>

0 commit comments

Comments
 (0)