David Peter 2 years ago
parent
commit
49eff616c0
3 changed files with 43 additions and 10 deletions
  1. 3 1
      numbat-wasm/www/index.html
  2. 40 9
      numbat-wasm/www/main.css
  3. BIN
      numbat-wasm/www/numbat.png

+ 3 - 1
numbat-wasm/www/index.html

@@ -34,8 +34,10 @@
   </head>
   <body>
     <div id="content">
-      
+      <div align="center">
+      <img src="numbat.png">
       <p class="desc">high precision scientific calculator with full support for physical units.</p>
+      </div>
       <div id="terminal"></div>
       <p class="links"><a href="https://numbat.dev/doc/">Documentation</a> &middot; <a href="https://github.com/sharkdp/numbat">Source code</a></p>
     </div>

+ 40 - 9
numbat-wasm/www/main.css

@@ -1,6 +1,6 @@
 html {
     font-family: 'Exo 2', sans-serif;
-    background-color: #ECF0F1;
+    background-color: #ecebe5;
 }
 
 .github-corner svg {
@@ -59,26 +59,27 @@ p.links a {
     font-family: 'Fira Mono', monospace;
 }
 
-.terminal, .terminal .terminal-fill {
+.terminal,
+.terminal .terminal-fill {
     padding: 1.2em;
     margin-bottom: 2em;
 }
 
 .terminal,
-.terminal-output > :not(.raw) span,
-.terminal-output > :not(.raw) a,
-.terminal-output > :not(.raw) div,
+.terminal-output> :not(.raw) span,
+.terminal-output> :not(.raw) a,
+.terminal-output> :not(.raw) div,
 .cmd,
 .cmd span,
 .cmd div {
     font-family: 'Fira Mono', monospace;
 }
 
-.terminal-output > div {
+.terminal-output>div {
     padding-bottom: 1em;
 }
 
-.terminal-output > div.terminal-command {
+.terminal-output>div.terminal-command {
     padding-bottom: 0em;
 }
 
@@ -116,7 +117,37 @@ p.links a {
 
 /* Github Badge */
 
-.github-corner:hover .octo-arm{animation:octocat-wave 560ms ease-in-out}@keyframes octocat-wave{0%,100%{transform:rotate(0)}20%,60%{transform:rotate(-25deg)}40%,80%{transform:rotate(10deg)}}@media (max-width:500px){.github-corner:hover .octo-arm{animation:none}.github-corner .octo-arm{animation:octocat-wave 560ms ease-in-out}}
+.github-corner:hover .octo-arm {
+    animation: octocat-wave 560ms ease-in-out
+}
+
+@keyframes octocat-wave {
+
+    0%,
+    100% {
+        transform: rotate(0)
+    }
+
+    20%,
+    60% {
+        transform: rotate(-25deg)
+    }
+
+    40%,
+    80% {
+        transform: rotate(10deg)
+    }
+}
+
+@media (max-width:500px) {
+    .github-corner:hover .octo-arm {
+        animation: none
+    }
+
+    .github-corner .octo-arm {
+        animation: octocat-wave 560ms ease-in-out
+    }
+}
 
 @media (prefers-color-scheme: dark) {
     html {
@@ -138,7 +169,7 @@ p.links a {
         filter: drop-shadow(0 0 10px #ECF0F1);
     }
 
-    #insect-logo > path {
+    #insect-logo>path {
         display: none;
     }
 }

BIN
numbat-wasm/www/numbat.png