2020-11-01 18:36:00 +01:00
|
|
|
<template>
|
|
|
|
<div
|
2021-05-19 17:41:04 +02:00
|
|
|
:class="[background ? 'has-background' : '', $route.name+'-view']"
|
2020-11-01 18:36:00 +01:00
|
|
|
:style="{'background-image': `url(${background})`}"
|
|
|
|
class="link-share-container"
|
|
|
|
>
|
|
|
|
<div class="container has-text-centered link-share-view">
|
|
|
|
<div class="column is-10 is-offset-1">
|
2021-10-03 20:48:02 +02:00
|
|
|
<img alt="Vikunja" class="logo" :src="logoUrl" />
|
2020-11-01 18:36:00 +01:00
|
|
|
<h1
|
|
|
|
:style="{ 'opacity': currentList.title === '' ? '0': '1' }"
|
|
|
|
class="title">
|
2021-06-24 01:24:57 +02:00
|
|
|
{{ currentList.title === '' ? $t('misc.loading') : currentList.title }}
|
2020-11-01 18:36:00 +01:00
|
|
|
</h1>
|
|
|
|
<div class="box has-text-left view">
|
|
|
|
<router-view/>
|
2021-07-28 22:58:12 +02:00
|
|
|
<a class="menu-bottom-link" href="https://vikunja.io" target="_blank" rel="noreferrer noopener nofollow">
|
2021-06-24 01:24:57 +02:00
|
|
|
{{ $t('misc.poweredBy') }}
|
2021-01-10 18:33:33 +01:00
|
|
|
</a>
|
2020-11-01 18:36:00 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
import {mapState} from 'vuex'
|
|
|
|
import {CURRENT_LIST} from '@/store/mutation-types'
|
|
|
|
|
2021-10-03 20:48:02 +02:00
|
|
|
import logoUrl from '@/assets/logo-full.svg'
|
|
|
|
|
2020-11-01 18:36:00 +01:00
|
|
|
export default {
|
|
|
|
name: 'contentLinkShare',
|
2021-10-03 20:48:02 +02:00
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
logoUrl,
|
|
|
|
}
|
|
|
|
},
|
2020-11-01 18:36:00 +01:00
|
|
|
computed: mapState({
|
|
|
|
currentList: CURRENT_LIST,
|
|
|
|
background: 'background',
|
|
|
|
}),
|
|
|
|
}
|
|
|
|
</script>
|
2021-10-18 14:23:25 +02:00
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
.link-share-container.has-background .view {
|
|
|
|
background: transparent;
|
|
|
|
border: none;
|
|
|
|
|
|
|
|
.logout .button {
|
|
|
|
box-shadow: none;
|
|
|
|
}
|
|
|
|
}
|
2021-10-18 14:33:13 +02:00
|
|
|
|
|
|
|
.link-share-view {
|
|
|
|
.logo {
|
|
|
|
max-width: 300px;
|
|
|
|
width: 90%;
|
|
|
|
margin: 2rem 0 1.5rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.column {
|
|
|
|
max-width: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.card {
|
|
|
|
background: $white;
|
|
|
|
}
|
|
|
|
|
|
|
|
.title {
|
|
|
|
text-shadow: 0 0 1rem $white;
|
|
|
|
}
|
|
|
|
}
|
2021-10-18 14:23:25 +02:00
|
|
|
</style>
|