Bring back navigation buttons.

This commit is contained in:
vdv committed 2022-11-26 12:33:26 +01:00
1 parent 2c79c74376
commit 02f02984e5
5 files changed
+66

No files matched your search

@@ -0,0 +1,16 @@
.common {
--opacity: 0.6;
--ion-background-color: white;
position: fixed !important;
top: 6px;
}
.back {
composes: common;
margin-left: 6px !important;
}
.forward {
composes: common;
margin-left: 40px !important;
}
@@ -0,0 +1,30 @@
import { Component, createEffect, createSignal } from 'solid-js';
import { IconButton } from '@suid/material';
import ArrowBackIcon from '@suid/icons-material/ArrowBack';
import ArrowForwardIcon from '@suid/icons-material/ArrowForward';
import styles from './BackForward.module.css';
export const Back: Component = () => {
const onClickHandler = (event: any) => {
window.history.back();
};
return (
<IconButton onClick={onClickHandler} class={styles.back}>
<ArrowBackIcon />
</IconButton>
);
};
export const Forward: Component = () => {
const onClickHandler = (event: any) => {
window.history.forward();
};
return (
<IconButton onClick={onClickHandler} class={styles.forward}>
<ArrowForwardIcon />
</IconButton>
);
};
+1
View File
@@ -0,0 +1 @@
export { Back, Forward } from './BackForward';