Skip to content

Commit

Permalink
Say hello being directed to mailbox
Browse files Browse the repository at this point in the history
Rai-Sahil committed Dec 18, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 08fd609 commit 4b8764f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/NavBars/MainNavBar/NavBar.jsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
import './navBar.css'

function handleSayHelloClick() {
const email = 'your_email@example.com';
const mailtoLink = `mailto:${email}`;
window.location.href = mailtoLink;
}

const NavBar = () => {
return (
<nav className='navBar'>
<span className='sahil-logo'>Sahil</span>
<button className='say-hello-btn'>
<button className='say-hello-btn' onClick={ handleSayHelloClick } >
<span className='say-hello-text'>
Say Hello
</span>

0 comments on commit 4b8764f

Please sign in to comment.