From ce5399a1de9feb6f70b5f2aba98cdc53c76f7240 Mon Sep 17 00:00:00 2001 From: Luca Bonavita Date: Tue, 23 Apr 2019 21:16:15 +0100 Subject: [PATCH] Site examples: add a cache and show a loading icon Add a loading icon I made in SVG: it uses SMIL animation so it might not be well supported on IE/Edge but I think Edge will be powered by Chromium pretty soon. Also set the REPL orientation based on the width as discussed in #2466 Closes #2527 --- .../routes/examples/_TableOfContents.svelte | 8 ++ site/src/routes/examples/index.svelte | 77 ++++++++++++------- site/static/icons/loading.svg | 6 ++ 3 files changed, 64 insertions(+), 27 deletions(-) create mode 100644 site/static/icons/loading.svg diff --git a/site/src/routes/examples/_TableOfContents.svelte b/site/src/routes/examples/_TableOfContents.svelte index ec7310c5fa..0de742b172 100644 --- a/site/src/routes/examples/_TableOfContents.svelte +++ b/site/src/routes/examples/_TableOfContents.svelte @@ -1,6 +1,7 @@