/
Header.vue
55 lines (53 loc) · 999 Bytes
/
Header.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<template>
<header>
<h1>
{{ $options.title }}
<nuxt-link
to="/auth"
name="auth"
aria-label="Login"
v-bind:aria-current="'/auth' === $nuxt.$route.path ? 'page' : false"
/>
</h1>
</header>
</template>
<script>
export default {
title: 'Cher is Listening'
}
</script>
<style scoped>
h1 {
line-height: 0.65em;
font-family: 'Oswald', monospace;
letter-spacing: 1px;
font-size: 15em;
transform: rotate(-3deg) translateY(-50%);
-webkit-box-reflect: below 0px
linear-gradient(transparent, rgba(255, 255, 255, 0.3));
}
h1 a {
display: inline-block;
height: 20px;
width: 20px;
background-image: url(~assets/spotify.svg);
background-size: cover;
filter: brightness(300%) opacity(30%);
}
h1 a:hover {
filter: brightness(300%) opacity(60%);
}
h1 a:after,
h1 a:before {
content: none;
}
header {
filter: blur(0);
transition: all 600ms ease-out;
}
p {
width: 40%;
margin: auto;
min-width: 320px;
}
</style>