mirror of
https://github.com/UiO-Gaming/uiogaming.no.git
synced 2026-11-05 13:56:47 +01:00
make back button link to previous page
This commit is contained in:
2 files changed
+15
-2
No files matched your search
@@ -5,10 +5,13 @@ import { Link } from "gatsby"
|
||||
import { FaArrowLeft } from "react-icons/fa"
|
||||
|
||||
const Back = () => (
|
||||
<Link to="/" className={styles.container}>
|
||||
<button
|
||||
className={`${styles.container} ${styles.button}`}
|
||||
onClick={() => window.history.back()}
|
||||
>
|
||||
<FaArrowLeft />
|
||||
<p>Tilbake</p>
|
||||
</Link>
|
||||
</button>
|
||||
)
|
||||
|
||||
export default Back
|
||||
@@ -4,3 +4,13 @@
|
||||
justify-content: center;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
|
||||
.button {
|
||||
background: none;
|
||||
border: none;
|
||||
color: var(--link-color);
|
||||
}
|
||||
.button:hover,
|
||||
.button *:hover {
|
||||
color: var(--link-color-hover);
|
||||
}
|
||||
Reference in new issue
Block a user