Starting to implement a node component
This commit is contained in:
parent
951deb5fef
commit
3fd108177b
|
@ -0,0 +1,15 @@
|
|||
.control {
|
||||
opacity: 1;
|
||||
position: fixed !important;
|
||||
top: 0px;
|
||||
margin-left: calc(100% - 260px) !important;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.control_web {
|
||||
opacity: 1;
|
||||
position: fixed !important;
|
||||
top: 0px;
|
||||
margin-left: calc(100% - 220px) !important;
|
||||
z-index: 1;
|
||||
}
|
|
@ -0,0 +1,35 @@
|
|||
import { IconButton } from '@suid/material';
|
||||
import { Component, createSignal } from 'solid-js';
|
||||
|
||||
import NoteIcon from '@suid/icons-material/Note';
|
||||
|
||||
import style from './Note.module.css';
|
||||
|
||||
interface Props {}
|
||||
|
||||
const Note: Component<Props> = (props) => {
|
||||
const [open, setOpen] = createSignal<boolean>();
|
||||
|
||||
return (
|
||||
<>
|
||||
<div
|
||||
class={
|
||||
window.Capacitor.platform === 'web'
|
||||
? style.control_web
|
||||
: style.control
|
||||
}
|
||||
>
|
||||
{' '}
|
||||
<IconButton
|
||||
onClick={() => {
|
||||
setOpen(true);
|
||||
}}
|
||||
>
|
||||
<NoteIcon />
|
||||
</IconButton>
|
||||
</div>
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
export default Note;
|
|
@ -0,0 +1 @@
|
|||
export { default } from './Note';
|
Loading…
Reference in New Issue