mirror of
https://github.com/kremalicious/blog.git
synced 2024-06-28 08:37:57 +02:00
25 lines
453 B
Plaintext
25 lines
453 B
Plaintext
|
---
|
||
|
import { ChevronLeft } from '@images/components'
|
||
|
---
|
||
|
|
||
|
<style>
|
||
|
.buttonBack {
|
||
|
display: block;
|
||
|
}
|
||
|
|
||
|
.buttonBack svg {
|
||
|
stroke: var(--text-color-light);
|
||
|
display: inline-block;
|
||
|
margin-bottom: -0.15rem;
|
||
|
}
|
||
|
</style>
|
||
|
|
||
|
<button class={`link buttonBack`}>
|
||
|
<ChevronLeft /> Go Back
|
||
|
</button>
|
||
|
|
||
|
<script>
|
||
|
const buttonBack = document.querySelector('.buttonBack')
|
||
|
buttonBack?.addEventListener('click', () => window.history.back())
|
||
|
</script>
|