-
-
Notifications
You must be signed in to change notification settings - Fork 163
/
Copy pathHeader.vue
67 lines (64 loc) · 1.68 KB
/
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
56
57
58
59
60
61
62
63
64
65
66
67
<template>
<b-navbar wrapper-class="container">
<template slot="brand">
<b-navbar-item>
<img
src="https://creativecommons.org/wp-content/uploads/2016/05/cc-site-icon-300x300.png"
alt="Creative Commons License chooser"
>
<h1 class="app-heading">
{{ $t('app.title') }}
</h1>
</b-navbar-item>
</template>
<template slot="end">
<b-navbar-item
href="https://docs.google.com/forms/d/e/1FAIpQLSfF7MCKxlPsPuMn17v_sLYWMkxBkudQSPXCXoJKjh5GCtx63g/viewform"
title="Feedback"
:class="'navbar-item-feedback'"
>
{{ $t('header.nav-feedback') }}
</b-navbar-item>
</template>
</b-navbar>
</template>
<script>
export default {
name: 'Header'
}
</script>
<style lang="scss">
.navbar-item-feedback {
padding-right: 30%;
font-family: Roboto Condensed,sans-serif;
font-size: 16px;
font-weight: bold;
color: #787878!important;
}
.app-heading {
font-family: Source Sans Pro,sans-serif;
font-style: normal;
font-weight: bold;
font-size: 28px;
line-height: 33px;
color: #333333;
margin-left:5px;
}
.navbar-item-feedback {
&:hover {
color: #fb7729!important;
}
&:after {
display:block;
content: '';
border-bottom: solid 2px #fb7729;
transform: scaleX(0);
transition: transform 250ms ease-in-out;
transform-origin:100% 50%
}
&:hover:after {
transform: scaleX(1);
transform-origin:0 50%;
}
}
</style>