diff --git a/website/src/repl/components/Header.jsx b/website/src/repl/components/Header.jsx index 92255b990..1ed8915c0 100644 --- a/website/src/repl/components/Header.jsx +++ b/website/src/repl/components/Header.jsx @@ -5,6 +5,7 @@ import { useSettings, setIsZen } from '../../settings.mjs'; import { StrudelIcon } from '@src/repl/components/icons/StrudelIcon'; import '../Repl.css'; import { PanelToggle } from '@src/repl/components/panel/Panel'; +import { PlayIcon, StopIcon } from '@heroicons/react/16/solid'; const { BASE_URL } = import.meta.env; const baseNoTrailing = BASE_URL.endsWith('/') ? BASE_URL.slice(0, -1) : BASE_URL; @@ -17,15 +18,16 @@ export function Header({ context, isEmbedded = false }) { ); } + +export function Footer({ context, isEmbedded = false }) { + return ( +
+ +
+ ); +} + +function MainMenu({ context, isEmbedded = false }) { + const { started, pending, isDirty, activeCode, handleTogglePlay, handleEvaluate, handleShare } = context; + const { isCSSAnimationDisabled } = useSettings(); + return ( +
+ + + {!isEmbedded && ( + + )} + {!isEmbedded && ( + + learn + + )} +
+ ); +} diff --git a/website/src/repl/components/ReplEditor.jsx b/website/src/repl/components/ReplEditor.jsx index fa75e56e2..639647d61 100644 --- a/website/src/repl/components/ReplEditor.jsx +++ b/website/src/repl/components/ReplEditor.jsx @@ -2,7 +2,7 @@ import Loader from '@src/repl/components/Loader'; import { HorizontalPanel, VerticalPanel, PanelToggle } from '@src/repl/components/panel/Panel'; import { Code } from '@src/repl/components/Code'; import UserFacingErrorMessage from '@src/repl/components/UserFacingErrorMessage'; -import { Header } from './Header'; +import { Footer, Header } from './Header'; import { useSettings } from '@src/settings.mjs'; // type Props = { @@ -23,9 +23,11 @@ export default function ReplEditor(Props) {
+ {/*
{!isZen && panelPosition === 'right' && } +