-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(ui): ProjectNavMore + About view
- Loading branch information
Guillaume Chau
committed
Apr 21, 2018
1 parent
5df5427
commit 63b0984
Showing
5 changed files
with
119 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<template> | ||
<div class="project-nav-more"> | ||
<VueDropdown placement="right-end"> | ||
<VueButton | ||
slot="trigger" | ||
icon-left="more_horiz" | ||
class="icon-button big flat" | ||
/> | ||
|
||
<VueDropdownButton | ||
icon-left="work" | ||
:to="{ name: 'project-select' }" | ||
:label="$t('views.project-select.title')" | ||
/> | ||
<VueDropdownButton | ||
icon-left="info" | ||
:to="{ name: 'about' }" | ||
:label="$t('views.about.title')" | ||
/> | ||
</VueDropdown> | ||
</div> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,77 @@ | ||
<template> | ||
<div class="about page"> | ||
<h1>{{ $t('views.about.title') }}</h1> | ||
|
||
<p class="description" v-html="$t('views.about.description')"/> | ||
|
||
<blockquote class="quote" v-text="$t('views.about.quote')"/> | ||
|
||
<p>- <a href="https://github.com/Akryum" target="_blank">Guillaume Chau</a></p> | ||
|
||
<h2>{{ $t('views.about.links') }}</h2> | ||
|
||
<div class="links vue-ui-grid default-gap"> | ||
<VueButton href="https://github.com/vuejs/vue-cli" target="_blank">Repository</VueButton> | ||
<VueButton href="https://github.com/vuejs/vue-cli/tree/dev/docs#table-of-contents" target="_blank">Documentation</VueButton> | ||
<VueButton href="https://vuejs.org/v2/guide/" target="_blank">Vue.js Guide</VueButton> | ||
<VueButton href="https://vuejs.org/v2/api/" target="_blank">Vue.js API reference</VueButton> | ||
<VueButton href="https://forum.vuejs.org/" target="_blank">Vue.js Forums</VueButton> | ||
<VueButton href="https://chat.vuejs.org/" target="_blank">Vue.js Chat</VueButton> | ||
</div> | ||
|
||
<div class="actions"> | ||
<VueButton | ||
:to="previousRoute" | ||
class="primary big" | ||
left-icon="arrow_back" | ||
:label="$t('views.about.back')" | ||
/> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
metaInfo () { | ||
return { | ||
title: this.$t('views.about.title') | ||
} | ||
}, | ||
data () { | ||
return { | ||
previousRoute: { name: 'home' } | ||
} | ||
}, | ||
beforeRouteEnter (to, from, next) { | ||
next(vm => { | ||
if (from) vm.previousRoute = from.fullPath | ||
}) | ||
} | ||
} | ||
</script> | ||
|
||
<style lang="stylus" scoped> | ||
@import "~@/style/imports" | ||
.about | ||
padding 42px | ||
max-width 900px | ||
margin 0 auto | ||
box-sizing border-box | ||
.quote | ||
border-left solid 4px rgba($vue-ui-color-primary, .3) | ||
margin-left 0 | ||
padding-left $padding-item | ||
color lighten($vue-ui-color-dark, 30%) | ||
.links | ||
grid-template-columns repeat(auto-fill, 180px) | ||
.actions | ||
margin-top @padding | ||
h-box() | ||
box-center() | ||
</style> |