mirror of
https://github.com/eliasstepanik/strudel-docker.git
synced 2026-01-27 13:38:40 +00:00
add missing styles + fix demo
This commit is contained in:
parent
a29c5f1bd8
commit
7eeae4292c
@ -1,11 +1,26 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { MiniRepl } from './components/MiniRepl';
|
import { MiniRepl } from './components/MiniRepl';
|
||||||
import 'tailwindcss/tailwind.css';
|
import 'tailwindcss/tailwind.css';
|
||||||
|
import { Tone, getDefaultSynth } from '@strudel.cycles/tone';
|
||||||
|
import { evalScope } from '@strudel.cycles/eval';
|
||||||
|
|
||||||
|
const defaultSynth = getDefaultSynth();
|
||||||
|
|
||||||
|
evalScope(
|
||||||
|
Tone,
|
||||||
|
import('@strudel.cycles/core'),
|
||||||
|
import('@strudel.cycles/tone'),
|
||||||
|
import('@strudel.cycles/tonal'),
|
||||||
|
import('@strudel.cycles/mini'),
|
||||||
|
import('@strudel.cycles/midi'),
|
||||||
|
import('@strudel.cycles/xen'),
|
||||||
|
import('@strudel.cycles/webaudio'),
|
||||||
|
);
|
||||||
|
|
||||||
function App() {
|
function App() {
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<MiniRepl tune={`"c3"`} />
|
<MiniRepl tune={`"c3"`} defaultSynth={defaultSynth} />
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -5,6 +5,7 @@ import cx from '../cx';
|
|||||||
import useHighlighting from '../hooks/useHighlighting.mjs';
|
import useHighlighting from '../hooks/useHighlighting.mjs';
|
||||||
import CodeMirror6 from './CodeMirror6';
|
import CodeMirror6 from './CodeMirror6';
|
||||||
import 'tailwindcss/tailwind.css';
|
import 'tailwindcss/tailwind.css';
|
||||||
|
import './style.css';
|
||||||
import styles from './MiniRepl.module.css';
|
import styles from './MiniRepl.module.css';
|
||||||
import { Icon } from './Icon';
|
import { Icon } from './Icon';
|
||||||
|
|
||||||
|
|||||||
3
packages/react/src/components/style.css
Normal file
3
packages/react/src/components/style.css
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
.cm-editor {
|
||||||
|
background-color: transparent !important;
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user