Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #376 from manuelmeister/consistent-navigation
Consistent navigation
- Loading branch information
Showing
65 changed files
with
1,717 additions
and
1,466 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 |
---|---|---|
@@ -1,25 +1,132 @@ | ||
|
||
<template> | ||
<div id="app"> | ||
<component :is="layout"> | ||
<v-app> | ||
<router-view name="topbar" /> | ||
|
||
<router-view name="aside" /> | ||
|
||
<!-- main content --> | ||
<v-content> | ||
<router-view /> | ||
</component> | ||
</div> | ||
</v-content> | ||
|
||
<router-view name="bottombar" /> | ||
|
||
<!-- footer --> | ||
<v-footer v-if="$vuetify.breakpoint.mdAndUp" | ||
app color="grey lighten-5"> | ||
eCamp v0.1.0 | ||
</v-footer> | ||
</v-app> | ||
</template> | ||
|
||
<script> | ||
const defaultLayout = 'default' | ||
export default { | ||
name: 'App', | ||
computed: { | ||
layout () { | ||
return (this.$route.meta.layout || defaultLayout) + '-layout' | ||
} | ||
} | ||
name: 'App' | ||
} | ||
</script> | ||
<style lang="scss"> | ||
@import "src/scss/global"; | ||
// consider replacing with CDN for production | ||
@import '../node_modules/@mdi/font/css/materialdesignicons.css'; | ||
.v-navigation-drawer--temporary.v-navigation-drawer--clipped { | ||
z-index: 5; | ||
margin-top: 116px; | ||
} | ||
.v-btn.ec-drawer-collapse { | ||
right: 0; | ||
} | ||
.v-content { | ||
height: 100vh; | ||
position: relative; | ||
} | ||
.v-app-bar .v-toolbar__content { | ||
padding-left: 0; | ||
padding-right: 0; | ||
width: 100%; | ||
} | ||
.v-content__wrap { | ||
overflow: scroll; | ||
position: static; | ||
} | ||
.user-nav { | ||
border-top-left-radius: 0!important; | ||
border-top-right-radius: 0!important; | ||
} | ||
.v-navigation-drawer--temporary.v-navigation-drawer--clipped { | ||
z-index: 5; | ||
margin-top: 116px; | ||
} | ||
.v-btn--open { | ||
background: #B0BEC5 !important; | ||
color: rgba(0, 0, 0, 0.87) !important; | ||
} | ||
.ec-usermenu { | ||
border-top-left-radius: 0 !important; | ||
border-top-right-radius: 0 !important; | ||
right: 0; | ||
left: inherit !important; | ||
.v-list { | ||
border-radius: 0; | ||
} | ||
} | ||
.v-app-bar .v-toolbar__content { | ||
padding-left: 0; | ||
padding-right: 0; | ||
width: 100%; | ||
} | ||
.v-navigation-drawer__content .v-card { | ||
border-top-left-radius: 0 !important; | ||
border-top-right-radius: 0 !important; | ||
} | ||
@media #{map-get($display-breakpoints, 'xs-only')}{ | ||
.v-content .container { | ||
min-height: 100%; | ||
display: flex; | ||
.v-card { | ||
margin-left: 0 !important; | ||
margin-right: 0 !important; | ||
flex: auto; | ||
} | ||
} | ||
} | ||
.ec-menu-left { | ||
left: 0 !important; | ||
font-feature-settings: 'tnum'; | ||
} | ||
@media #{map-get($display-breakpoints, 'sm-and-down')}{ | ||
.container.container--fluid { | ||
padding: 0; | ||
& > .v-card { | ||
border-radius: 0; | ||
} | ||
} | ||
.sr-only-sm-and-down { | ||
position: absolute; | ||
width: 1px; | ||
height: 1px; | ||
padding: 0; | ||
overflow: hidden; | ||
clip: rect(0, 0, 0, 0); | ||
white-space: nowrap; | ||
clip-path: inset(50%); | ||
border: 0; | ||
} | ||
} | ||
</style> |
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,16 @@ | ||
<template> | ||
<v-btn aria-label="Zurück" | ||
icon @click="$router.go(-1)"> | ||
<v-icon>mdi-arrow-left</v-icon> | ||
</v-btn> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
name: 'BackButton' | ||
} | ||
</script> | ||
|
||
<style scoped> | ||
</style> |
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
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,34 @@ | ||
<!-- | ||
Displays the content wrapped inside a card. | ||
--> | ||
|
||
<template> | ||
<v-sheet class="ec-content-group mb-8"> | ||
<slot name="title"> | ||
<div v-if="title" class="ec-content-group__title py-1 subtitle-1"> | ||
<v-icon v-if="icon" left>{{ icon }}</v-icon> | ||
{{ title }} | ||
</div> | ||
</slot> | ||
<v-skeleton-loader v-if="!loaded" type="article" /> | ||
<slot v-else /> | ||
</v-sheet> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
name: 'ContentGroup', | ||
props: { | ||
loaded: { type: Boolean, required: false, default: true }, | ||
title: { type: String, required: false, default: '' }, | ||
icon: { type: String, required: false, default: '' }, | ||
maxWidth: { type: String, default: '' } | ||
} | ||
} | ||
</script> | ||
|
||
<style lang="scss" scoped> | ||
.ec-content-group__title { | ||
border-bottom: 1px solid map-get($blue-grey, 'lighten-4'); | ||
} | ||
</style> |
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,32 @@ | ||
<template> | ||
<v-toolbar-items> | ||
<v-btn text class="px-2" | ||
min-width="0" rounded | ||
exact :to="{ name: 'home'}"> | ||
<v-toolbar-title> | ||
<i>🏕</i>️<span v-if="text" class="ml-4 mr-2">eCamp</span> | ||
</v-toolbar-title> | ||
</v-btn> | ||
<slot /> | ||
</v-toolbar-items> | ||
</template> | ||
|
||
<script> | ||
import { campRoute } from '@/router' | ||
export default { | ||
name: 'Logo', | ||
props: { | ||
text: { type: Boolean, default: false } | ||
}, | ||
computed: { | ||
campHome () { | ||
return this.camp ? campRoute(this.camp, 'program') : false | ||
} | ||
} | ||
} | ||
</script> | ||
|
||
<style scoped> | ||
</style> |
Oops, something went wrong.