chore(sfc-playground): logo, responsive

This commit is contained in:
Evan You 2021-03-29 10:17:33 -04:00
parent 4a24a6b0a2
commit 24a90abeda
3 changed files with 22 additions and 5 deletions

View File

@ -4,6 +4,7 @@
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <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> <title>Vue SFC Playground</title>
<link rel="preconnect" href="https://fonts.gstatic.com"> <link rel="preconnect" href="https://fonts.gstatic.com">

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

View File

@ -1,12 +1,12 @@
<template> <template>
<nav> <nav>
<h1>Vue SFC Playground</h1> <h1>
<img alt="logo" src="/icon.png">
<span>Vue SFC Playground</span>
</h1>
<div class="links"> <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"> <a class="commit-link" href="https://app.netlify.com/sites/vue-sfc-playground/deploys" target="_blank">
History @{{ commit }}
</a> </a>
<button class="share" @click="copyLink"> <button class="share" @click="copyLink">
<svg width="1.4em" height="1.4em" viewBox="0 0 24 24"> <svg width="1.4em" height="1.4em" viewBox="0 0 24 24">
@ -66,6 +66,20 @@ h1 {
vertical-align: middle; 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 { .commit-link {
color: var(--color-branding); color: var(--color-branding);
text-decoration: none; text-decoration: none;
@ -77,11 +91,13 @@ h1 {
.share { .share {
position: relative; position: relative;
top: 6px; top: 6px;
margin: 0 2px;
} }
.download { .download {
position: relative; position: relative;
top: 8px; top: 8px;
margin: 0 2px;
} }
.commit-link { .commit-link {