Skip to content

Commit 24a90ab

Browse files
committed
chore(sfc-playground): logo, responsive
1 parent 4a24a6b commit 24a90ab

File tree

3 files changed

+22
-5
lines changed

3 files changed

+22
-5
lines changed

packages/sfc-playground/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
<meta charset="UTF-8">
55
<meta http-equiv="X-UA-Compatible" content="IE=edge">
66
<meta name="viewport" content="width=device-width, initial-scale=1.0">
7+
<link rel="icon" type="image/png" href="/icon.png">
78
<title>Vue SFC Playground</title>
89

910
<link rel="preconnect" href="https://fonts.gstatic.com">
3.32 KB
Loading

packages/sfc-playground/src/Header.vue

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<template>
22
<nav>
3-
<h1>Vue SFC Playground</h1>
3+
<h1>
4+
<img alt="logo" src="/icon.png">
5+
<span>Vue SFC Playground</span>
6+
</h1>
47
<div class="links">
5-
<a class="commit-link" :href="`https://github.com/vuejs/vue-next/tree/${commit}`" target="_blank">
6-
vue@{{ commit }}
7-
</a>
88
<a class="commit-link" href="https://app.netlify.com/sites/vue-sfc-playground/deploys" target="_blank">
9-
History
9+
@{{ commit }}
1010
</a>
1111
<button class="share" @click="copyLink">
1212
<svg width="1.4em" height="1.4em" viewBox="0 0 24 24">
@@ -66,6 +66,20 @@ h1 {
6666
vertical-align: middle;
6767
}
6868
69+
h1 img {
70+
height: 24px;
71+
vertical-align: middle;
72+
margin-right: 10px;
73+
position: relative;
74+
top: -2px;
75+
}
76+
77+
@media (max-width:400px) {
78+
h1 span {
79+
display: none;
80+
}
81+
}
82+
6983
.commit-link {
7084
color: var(--color-branding);
7185
text-decoration: none;
@@ -77,11 +91,13 @@ h1 {
7791
.share {
7892
position: relative;
7993
top: 6px;
94+
margin: 0 2px;
8095
}
8196
8297
.download {
8398
position: relative;
8499
top: 8px;
100+
margin: 0 2px;
85101
}
86102
87103
.commit-link {

0 commit comments

Comments
 (0)