Skip to content

Commit

Permalink
Merge pull request #19 from RileyManda/f/contact
Browse files Browse the repository at this point in the history
Added contact floating button
  • Loading branch information
RileyManda authored Dec 11, 2023
2 parents 7abd765 + dfeb54b commit 59c681a
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 2 deletions.
25 changes: 25 additions & 0 deletions src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -407,3 +407,28 @@
.experience-icons {
font-size: 30px;
}

.contact-button {
position: fixed;
bottom: 20px;
right: 20px;
z-index: 1000;
}

.fab-button {
width: 60px;
height: 60px;
border-radius: 50%;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
display: flex;
align-items: center;
justify-content: center;
border: none;
font-size: 16px;
background-color: var(--social-icons-color);
opacity: 0.9;
}

.fab-button:hover {
background-color: var(--brand);
}
9 changes: 7 additions & 2 deletions src/components/Contact.jsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
import ContactButton from './ContactButton';
import Footer from './Footer';
const Contact = () => {
return (
<div className="footer-container">
<Footer />
<div>
<ContactButton />
<div className="footer-container">
<Footer />
</div>
</div>

);
};

Expand Down
18 changes: 18 additions & 0 deletions src/components/ContactButton.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import Button from 'react-bootstrap/Button'
import { MdEmail } from "react-icons/md";
const ContactButton = () => {
const emailAddress = '[email protected]';
const handleClick = () => {
window.open(`mailto:${emailAddress}`, '_blank');
};
return (
<div className="contact-button">
<Button variant="primary" className="fab-button" onClick={handleClick}>
<MdEmail style={{ width: '50px', height: '50px' }} />
</Button>
</div>
);
}


export default ContactButton;

0 comments on commit 59c681a

Please sign in to comment.