From 5e95fa7d3cd3fe47daabdc91b0af36de30782210 Mon Sep 17 00:00:00 2001 From: Thomas Weber Date: Wed, 19 May 2021 18:04:44 -0500 Subject: [PATCH] Slightly improve footer --- src/playground/interface.css | 15 +- src/playground/render-interface.jsx | 203 +++++++++++++--------------- 2 files changed, 108 insertions(+), 110 deletions(-) diff --git a/src/playground/interface.css b/src/playground/interface.css index 259f01cf2..af65eea7c 100644 --- a/src/playground/interface.css +++ b/src/playground/interface.css @@ -38,13 +38,16 @@ a { margin-top: 10px; background: #eee; } +.footer a { + font-weight: bold; + text-decoration: none; +} [theme="dark"] .footer { background-color: #151515; } .footer-content { max-width: 600px; margin: auto; - flex-wrap: wrap; } .footer-text { text-align: center; @@ -52,15 +55,19 @@ a { } .footer-columns { display: flex; - justify-content: space-between; + justify-content: center; + align-items: center; + justify-items: center; flex-wrap: wrap; } .footer-section { - max-width: 200px; + display: flex; + flex-direction: column; + width: 200px; margin-bottom: 10px; } .footer-section > * { - margin-bottom: 8px; + margin-bottom: 10px; } .footer-header { font-weight: bold; diff --git a/src/playground/render-interface.jsx b/src/playground/render-interface.jsx index 76a56e718..ec3b1331c 100644 --- a/src/playground/render-interface.jsx +++ b/src/playground/render-interface.jsx @@ -45,6 +45,7 @@ import {isRendererSupported, isEvalSupported} from '../lib/tw-environment-suppor import styles from './interface.css'; if (window.parent !== window) { + // eslint-disable-next-line no-alert alert('This page is embedding TurboWarp in a way that is unsupported and will cease to function in the near future. Please read https://github.com/TurboWarp/scratch-gui/wiki/Embedding'); } @@ -87,6 +88,100 @@ const WrappedMenuBar = compose( import(/* webpackChunkName: "addons" */ '../addons/entry'); +const Footer = () => ( + +); + class Interface extends React.Component { constructor (props) { super(props); @@ -172,6 +267,7 @@ class Interface extends React.Component {

) : null}

- {isHomepage && } + {isHomepage &&