joinpeertube/app/components/Header.vue

100 lines
2.2 KiB
Vue
Raw Normal View History

2019-09-06 13:42:29 +00:00
<template>
<header id="main-header">
<nav class="navbar navbar-expand-lg">
<router-link :to="'/' + $t('lang') + '/'" class="navbar-brand">
2019-09-10 09:59:21 +00:00
<img alt="PeerTube" :src="`${$root['/']}img/brand-small.png`">
2019-09-11 09:05:31 +00:00
<div>
soutenu par
</div>
2019-09-06 13:42:29 +00:00
</router-link>
<button class="navbar-toggler collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<div id="navbar" class="collapse navbar-collapse">
<ul class="navbar-nav ml-auto">
<li class="nav-item">
<router-link class="nav-link" :to="'/' + $t('lang') + '/'">Home</router-link>
</li>
2019-09-11 09:05:31 +00:00
<li class="nav-item ">
<router-link class="nav-link create-account" :to="'/' + $t('lang') + '/'">Create an account</router-link>
2019-09-06 13:42:29 +00:00
</li>
<li class="nav-item">
<router-link class="nav-link" :to="'/' + $t('lang') + '/news'" v-html="$t('menu.faq')">News</router-link>
</li>
<li class="nav-item">
<a class="nav-link">Help</a>
</li>
<li class="nav-item">
<a class="nav-link">Contribute</a>
</li>
<li class="nav-item">
<a class="nav-link" :href="$root.link.gitPT">Git</a>
</li>
<div class="pull-right">
<I18n />
</div>
</ul>
</div>
</nav>
</header>
</template>
2019-09-11 09:05:31 +00:00
<style lang="scss" scoped>
@import '../assets/scss/_variables.scss';
2019-09-06 13:42:29 +00:00
header {
margin-bottom: 30px;
}
nav {
height: 60px;
background-color: #fff;
box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.2);
}
.navbar-nav {
align-items: center;
}
.nav-item {
margin-right: 40px;
}
.nav-link {
padding-right: 0 !important;
padding-left: 0 !important;
color: #000;
2019-09-11 09:05:31 +00:00
font-family: 'Proza Libre', sans-serif;
&.create-account {
font-weight: $font-semibold;
}
2019-09-06 13:42:29 +00:00
}
</style>
<script>
import I18n from './I18n.vue'
export default {
components: {
I18n,
},
}
</script>