diff --git a/src/snek/static/sandbox.css b/src/snek/static/sandbox.css new file mode 100644 index 0000000..1419fe4 --- /dev/null +++ b/src/snek/static/sandbox.css @@ -0,0 +1,28 @@ +/* each star */ + .star { + position: absolute; + width: 2px; + height: 2px; + background: #fff; + border-radius: 50%; + opacity: 0; + /* flicker animation */ + animation: twinkle ease-in-out infinite; + } + + @keyframes twinkle { + 0%, 100% { opacity: 0; } + 50% { opacity: 1; } + } + + /* optional page content */ + .content { + position: relative; + z-index: 1; + color: #eee; + font-family: sans-serif; + text-align: center; + top: 40%; + transform: translateY(-40%); + } + diff --git a/src/snek/templates/app.html b/src/snek/templates/app.html index 596b5d1..ceef196 100644 --- a/src/snek/templates/app.html +++ b/src/snek/templates/app.html @@ -19,6 +19,7 @@ + @@ -78,5 +79,6 @@ let installPrompt = null ; + {% include "sandbox.html" %} diff --git a/src/snek/templates/sandbox.html b/src/snek/templates/sandbox.html new file mode 100644 index 0000000..6fd9b3f --- /dev/null +++ b/src/snek/templates/sandbox.html @@ -0,0 +1,31 @@ + +