From 2a67698616aec788d53dbaacd1ff68dd9c7d740c Mon Sep 17 00:00:00 2001 From: Felix Roos Date: Wed, 23 Oct 2024 02:29:23 +0200 Subject: [PATCH] - remove header icons (except play/stop button) - use unicode spiral instead of emoji spiral - fix header height on mobile --- website/src/components/Header/Header.astro | 5 ++-- website/src/repl/components/Header.jsx | 30 +++++++++---------- .../src/repl/components/panel/WelcomeTab.jsx | 6 ++-- 3 files changed, 19 insertions(+), 22 deletions(-) diff --git a/website/src/components/Header/Header.astro b/website/src/components/Header/Header.astro index c3b1b9c30..e96266777 100644 --- a/website/src/components/Header/Header.astro +++ b/website/src/components/Header/Header.astro @@ -28,11 +28,10 @@ const baseNoTrailing = BASE_URL.endsWith('/') ? BASE_URL.slice(0, -1) : BASE_URL

- 🌀 + ꩜
strudel - DOCS - REPL + DOCS

diff --git a/website/src/repl/components/Header.jsx b/website/src/repl/components/Header.jsx index 2789e4a1e..f65dac688 100644 --- a/website/src/repl/components/Header.jsx +++ b/website/src/repl/components/Header.jsx @@ -1,8 +1,8 @@ -import AcademicCapIcon from '@heroicons/react/20/solid/AcademicCapIcon'; +/* import AcademicCapIcon from '@heroicons/react/20/solid/AcademicCapIcon'; import ArrowPathIcon from '@heroicons/react/20/solid/ArrowPathIcon'; import LinkIcon from '@heroicons/react/20/solid/LinkIcon'; +import SparklesIcon from '@heroicons/react/20/solid/SparklesIcon'; */ import PlayCircleIcon from '@heroicons/react/20/solid/PlayCircleIcon'; -import SparklesIcon from '@heroicons/react/20/solid/SparklesIcon'; import StopCircleIcon from '@heroicons/react/20/solid/StopCircleIcon'; import cx from '@src/cx.mjs'; import { useSettings, setIsZen } from '../../settings.mjs'; @@ -21,7 +21,7 @@ export function Header({ context, embedded = false }) {
{!isZen && ( -
+
strudel - REPL - {!isEmbedded && ( - + REPL + {!isEmbedded && isButtonRowHidden && ( + DOCS )} @@ -66,7 +66,7 @@ export function Header({ context, embedded = false }) {
{!isZen && !isButtonRowHidden && ( -
+
{!isEmbedded && ( @@ -104,7 +104,7 @@ export function Header({ context, embedded = false }) { className="hover:opacity-50 p-2 flex items-center space-x-1" onClick={handleShuffle} > - + {/* */} shuffle )} @@ -117,7 +117,7 @@ export function Header({ context, embedded = false }) { )} onClick={handleShare} > - + {/* */} share )} @@ -127,7 +127,7 @@ export function Header({ context, embedded = false }) { href={`${baseNoTrailing}/workshop/getting-started/`} className={cx('hover:opacity-50 flex items-center space-x-1', !isEmbedded ? 'p-2' : 'px-2')} > - + {/* */} learn )} diff --git a/website/src/repl/components/panel/WelcomeTab.jsx b/website/src/repl/components/panel/WelcomeTab.jsx index b7d45bfd8..3e77e71b1 100644 --- a/website/src/repl/components/panel/WelcomeTab.jsx +++ b/website/src/repl/components/panel/WelcomeTab.jsx @@ -6,9 +6,7 @@ const baseNoTrailing = BASE_URL.endsWith('/') ? BASE_URL.slice(0, -1) : BASE_URL export function WelcomeTab({ context }) { return (
-

- 🌀 welcome -

+

꩜ welcome

You have found strudel, a new live coding platform to write dynamic music pieces in the browser! It is free and open-source and made for beginners and experts alike. To get started: @@ -30,7 +28,7 @@ export function WelcomeTab({ context }) { {' '} to ask any questions, give feedback or just say hello.

-

about

+

꩜ about

strudel is a JavaScript version of{' '}