From b245d44220a335ced00303affa9bb22743efff88 Mon Sep 17 00:00:00 2001 From: Felix Roos Date: Sun, 29 Oct 2023 13:14:25 +0100 Subject: [PATCH] hide patterns tab for now + add examples to welcome tab --- website/src/repl/panel/Panel.jsx | 6 +++--- website/src/repl/panel/WelcomeTab.jsx | 16 +++++++++++++++- 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/website/src/repl/panel/Panel.jsx b/website/src/repl/panel/Panel.jsx index 0642bdea7..a38bdd24f 100644 --- a/website/src/repl/panel/Panel.jsx +++ b/website/src/repl/panel/Panel.jsx @@ -86,7 +86,7 @@ export function Panel({ context }) { - + {/* */} {TAURI && } @@ -100,8 +100,8 @@ export function Panel({ context }) { {activeFooter !== '' && (
- {activeFooter === 'intro' && } - {activeFooter === 'patterns' && } + {activeFooter === 'intro' && } + {/* {activeFooter === 'patterns' && } */} {activeFooter === 'console' && } {activeFooter === 'sounds' && } {activeFooter === 'reference' && } diff --git a/website/src/repl/panel/WelcomeTab.jsx b/website/src/repl/panel/WelcomeTab.jsx index aca5a8133..5ab8abafe 100644 --- a/website/src/repl/panel/WelcomeTab.jsx +++ b/website/src/repl/panel/WelcomeTab.jsx @@ -1,7 +1,8 @@ import { cx } from '@strudel.cycles/react'; import React from 'react'; +import * as tunes from '../tunes.mjs'; -export function WelcomeTab() { +export function WelcomeTab({ context }) { return (

@@ -44,6 +45,19 @@ export function WelcomeTab() { {' '} to ensure ongoing development 💖

+

examples

+ {Object.entries(tunes).map(([key, tune]) => ( + { + console.log('clikkk', tune); + context.handleUpdate(tune); + }} + > + {key} + + ))}
); }