Tailwind, Prettier, ESLint, Typescript runner!

This commit is contained in:
Gregory Schier
2023-02-17 12:19:13 -08:00
parent 5b09b7b613
commit 23ed3f3a42
27 changed files with 3347 additions and 300 deletions

View File

@@ -0,0 +1,23 @@
.iframe-wrapper, .cm-editor {
width: 100%;
height: 30rem;
border-radius: 0.5rem;
overflow: hidden;
}
.cm-editor.cm-focused {
outline: 0;
box-shadow: 0 0 0 2pt rgba(180, 180, 180, 0.1);
}
.cm-editor .cm-cursor {
border-left: 2px solid red;
}
.cm-editor .cm-selectionBackground {
background-color: rgba(180, 180, 180, 0.3);
}
.cm-editor.cm-focused .cm-selectionBackground {
background-color: rgba(180, 180, 180, 0.3);
}

View File

@@ -0,0 +1,11 @@
import useCodeMirror from '../../hooks/useCodemirror';
import './Editor.css';
interface Props {
value: string;
}
export default function Editor(props: Props) {
const { ref } = useCodeMirror({ value: props.value });
return <div ref={ref} className="m-0 text-sm rounded-lg bg-gray-800 overflow-hidden" />;
}