Skip to content

Commit

Permalink
refresh_btn (#62)
Browse files Browse the repository at this point in the history
* refresh_btn

* Removed CSS

---------

Co-authored-by: jLynx <[email protected]>
  • Loading branch information
zxkmm and jLynx authored Apr 3, 2024
1 parent df1e583 commit 45d974f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,7 @@ next-env.d.ts
**/public/precache**

# Cloudflare
.wrangler
.wrangler

# pnpm
pnpm-lock.yaml
11 changes: 11 additions & 0 deletions src/components/Footer/Footer.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
import { faGithubAlt } from "@fortawesome/free-brands-svg-icons";
import { faRotateRight } from "@fortawesome/free-solid-svg-icons";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";

export const Footer = () => {
const refreshHandler = () => {
window.location.reload();
};

return (
<footer className="footer mt-10 items-center bg-neutral p-4 text-neutral-content">
<aside className="grid-flow-row items-center">
Expand All @@ -15,6 +20,12 @@ export const Footer = () => {
className="mr-2 max-w-6 text-2xl text-white"
/>
</a>
<button onClick={refreshHandler}>
<FontAwesomeIcon
icon={faRotateRight}
className="mr-2 max-w-6 text-2xl text-white"
/>
</button>
</nav>
</footer>
);
Expand Down

0 comments on commit 45d974f

Please sign in to comment.