-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add btn to toggle theme via a dedicated hook and context * change github calendar colors * redesign particles to cope with the white theme * change home image * add copyright * make navbar shadow always visible
- Loading branch information
1 parent
bc25ee9
commit 63f47fe
Showing
15 changed files
with
286 additions
and
165 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { useMemo } from 'react'; | ||
import { useThemeContext } from '../hooks/themeHook'; | ||
import { BsSun } from 'react-icons/bs'; | ||
import { FiMoon } from 'react-icons/fi'; | ||
import { Button } from 'react-bootstrap'; | ||
|
||
const BtnToggleTheme = ({ className }) => { | ||
const { dark, toggleTheme } = useThemeContext(); | ||
|
||
const ToggleThemeIcon = useMemo( | ||
() => (dark ? FiMoon : BsSun), | ||
[dark], | ||
); | ||
|
||
return ( | ||
<Button className={className + " btn-toggle"} onClick={toggleTheme}> | ||
<ToggleThemeIcon style={{ marginTop: "10px", fontSize: "25px" }}/> | ||
</Button> | ||
); | ||
}; | ||
|
||
export default BtnToggleTheme; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,47 +8,51 @@ import { | |
import { FaLinkedinIn } from "react-icons/fa"; | ||
|
||
function Footer() { | ||
let date = new Date(); | ||
let year = date.getFullYear(); | ||
|
||
return ( | ||
<Container fluid className="footer"> | ||
<Row> | ||
<Col md="4"> | ||
</Col> | ||
|
||
<Col md="4"> | ||
<h3>Copyright © {year} Massimiliano Pronesti</h3> | ||
</Col> | ||
|
||
<Col md="4"> | ||
<ul className="footer-icons"> | ||
<li className="social-icons"> | ||
<a | ||
<a className="footer-social-icons" | ||
href="https://github.com/mspronesti" | ||
style={{ color: "white" }} | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
> | ||
<AiFillGithub /> | ||
</a> | ||
</li> | ||
<li className="social-icons"> | ||
<a | ||
<a className="footer-social-icons" | ||
href="https://www.linkedin.com/in/massimiliano-pronesti/" | ||
style={{ color: "white" }} | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
> | ||
<FaLinkedinIn /> | ||
</a> | ||
</li> | ||
<li className="social-icons"> | ||
<a | ||
<a className="footer-social-icons" | ||
href="mailto:[email protected]" | ||
style={{ color: "white" }} | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
> | ||
<AiFillMail /> | ||
</a> | ||
</li> | ||
<li className="social-icons"> | ||
<a | ||
<a className="footer-social-icons" | ||
href="https://www.instagram.com/__mpronesti" | ||
style={{ color: "white" }} | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.