mirror of
https://github.com/eliasstepanik/strudel-docker.git
synced 2026-01-26 13:08:28 +00:00
hide patterns tab for now
+ add examples to welcome tab
This commit is contained in:
parent
b15f7bcf45
commit
b245d44220
@ -86,7 +86,7 @@ export function Panel({ context }) {
|
|||||||
<PanelTab name="intro" label="welcome" />
|
<PanelTab name="intro" label="welcome" />
|
||||||
<PanelTab name="sounds" />
|
<PanelTab name="sounds" />
|
||||||
<PanelTab name="console" />
|
<PanelTab name="console" />
|
||||||
<PanelTab name="patterns" />
|
{/* <PanelTab name="patterns" /> */}
|
||||||
<PanelTab name="reference" />
|
<PanelTab name="reference" />
|
||||||
<PanelTab name="settings" />
|
<PanelTab name="settings" />
|
||||||
{TAURI && <PanelTab name="files" />}
|
{TAURI && <PanelTab name="files" />}
|
||||||
@ -100,8 +100,8 @@ export function Panel({ context }) {
|
|||||||
{activeFooter !== '' && (
|
{activeFooter !== '' && (
|
||||||
<div className="relative overflow-hidden">
|
<div className="relative overflow-hidden">
|
||||||
<div className="text-white overflow-auto h-full max-w-full" ref={footerContent}>
|
<div className="text-white overflow-auto h-full max-w-full" ref={footerContent}>
|
||||||
{activeFooter === 'intro' && <WelcomeTab />}
|
{activeFooter === 'intro' && <WelcomeTab context={context} />}
|
||||||
{activeFooter === 'patterns' && <PatternsTab context={context} />}
|
{/* {activeFooter === 'patterns' && <PatternsTab context={context} />} */}
|
||||||
{activeFooter === 'console' && <ConsoleTab log={log} />}
|
{activeFooter === 'console' && <ConsoleTab log={log} />}
|
||||||
{activeFooter === 'sounds' && <SoundsTab />}
|
{activeFooter === 'sounds' && <SoundsTab />}
|
||||||
{activeFooter === 'reference' && <Reference />}
|
{activeFooter === 'reference' && <Reference />}
|
||||||
|
|||||||
@ -1,7 +1,8 @@
|
|||||||
import { cx } from '@strudel.cycles/react';
|
import { cx } from '@strudel.cycles/react';
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
import * as tunes from '../tunes.mjs';
|
||||||
|
|
||||||
export function WelcomeTab() {
|
export function WelcomeTab({ context }) {
|
||||||
return (
|
return (
|
||||||
<div className="prose dark:prose-invert max-w-[600px] pt-2 font-sans pb-8 px-4">
|
<div className="prose dark:prose-invert max-w-[600px] pt-2 font-sans pb-8 px-4">
|
||||||
<h3>
|
<h3>
|
||||||
@ -44,6 +45,19 @@ export function WelcomeTab() {
|
|||||||
</a>{' '}
|
</a>{' '}
|
||||||
to ensure ongoing development 💖
|
to ensure ongoing development 💖
|
||||||
</p>
|
</p>
|
||||||
|
<h2 className="text-xl mb-2">examples</h2>
|
||||||
|
{Object.entries(tunes).map(([key, tune]) => (
|
||||||
|
<a
|
||||||
|
key={key}
|
||||||
|
className="mr-4 hover:opacity-50 cursor-pointer inline-block"
|
||||||
|
onClick={() => {
|
||||||
|
console.log('clikkk', tune);
|
||||||
|
context.handleUpdate(tune);
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
{key}
|
||||||
|
</a>
|
||||||
|
))}
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user