]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
chore(sfc-playground): logo, responsive
authorEvan You <yyx990803@gmail.com>
Mon, 29 Mar 2021 14:17:33 +0000 (10:17 -0400)
committerEvan You <yyx990803@gmail.com>
Mon, 29 Mar 2021 14:33:19 +0000 (10:33 -0400)
packages/sfc-playground/index.html
packages/sfc-playground/public/icon.png [new file with mode: 0644]
packages/sfc-playground/src/Header.vue

index 15915f304c13835282ff1d73924a2523f66446dd..a5e35213436ebc3b3a123909421caf6a1df6ddee 100644 (file)
@@ -4,6 +4,7 @@
   <meta charset="UTF-8">
   <meta http-equiv="X-UA-Compatible" content="IE=edge">
   <meta name="viewport" content="width=device-width, initial-scale=1.0">
+  <link rel="icon" type="image/png" href="/icon.png">
   <title>Vue SFC Playground</title>
 
   <link rel="preconnect" href="https://fonts.gstatic.com">
diff --git a/packages/sfc-playground/public/icon.png b/packages/sfc-playground/public/icon.png
new file mode 100644 (file)
index 0000000..4388bfd
Binary files /dev/null and b/packages/sfc-playground/public/icon.png differ
index 9ba1dbb63f617e48d6c943577e7c62beaa319dcb..bdea5894b33cb4582646585a14caccd9774d29db 100644 (file)
@@ -1,12 +1,12 @@
 <template>
   <nav>
-    <h1>Vue SFC Playground</h1>
+    <h1>
+      <img alt="logo" src="/icon.png">
+      <span>Vue SFC Playground</span>
+    </h1>
     <div class="links">
-      <a class="commit-link" :href="`https://github.com/vuejs/vue-next/tree/${commit}`" target="_blank">
-        vue@{{ commit }}
-      </a>
       <a class="commit-link" href="https://app.netlify.com/sites/vue-sfc-playground/deploys" target="_blank">
-        History
+        @{{ commit }}
       </a>
       <button class="share" @click="copyLink">
         <svg width="1.4em" height="1.4em" viewBox="0 0 24 24">
@@ -66,6 +66,20 @@ h1 {
   vertical-align: middle;
 }
 
+h1 img {
+  height: 24px;
+  vertical-align: middle;
+  margin-right: 10px;
+  position: relative;
+  top: -2px;
+}
+
+@media (max-width:400px) {
+  h1 span {
+    display: none;
+  }
+}
+
 .commit-link {
   color: var(--color-branding);
   text-decoration: none;
@@ -77,11 +91,13 @@ h1 {
 .share {
   position: relative;
   top: 6px;
+  margin: 0 2px;
 }
 
 .download {
   position: relative;
   top: 8px;
+  margin: 0 2px;
 }
 
 .commit-link {