2019-04-10 04:10:24 +09:00
|
|
|
<template>
|
2019-04-22 23:59:37 +09:00
|
|
|
<div id="welcome">
|
|
|
|
<img alt="Vue logo" src="@/assets/logo.png">
|
2019-04-23 00:11:19 +09:00
|
|
|
<h1>Welcome to TheDesk</h1>
|
2019-04-25 00:52:40 +09:00
|
|
|
<BaseButton @click.native="status = 'login'" class="primary fill">{{ loginButton }}</BaseButton>
|
2019-04-23 04:46:17 +09:00
|
|
|
<BaseButton @click.native="status = 'public_timeline'" class="primary">{{ publicTLButton }}</BaseButton>
|
2019-04-26 23:36:39 +09:00
|
|
|
<BaseButton @click.native="status = 'timeline'" class="primary">{{ TLButton }}</BaseButton>
|
2019-04-23 04:46:17 +09:00
|
|
|
|
|
|
|
<BaseOverlay
|
|
|
|
v-show="status !== 'welcome'"
|
|
|
|
@close="status = 'welcome'"
|
|
|
|
:title="status === 'login' ? loginButton : publicTLButton"
|
|
|
|
>
|
|
|
|
<Login v-if="status === 'login'"/>
|
|
|
|
<PublicTimeline v-else-if="status === 'public_timeline'"/>
|
|
|
|
</BaseOverlay>
|
2019-04-10 04:10:24 +09:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
2019-04-23 04:46:17 +09:00
|
|
|
import { Component, Vue } from 'vue-property-decorator'
|
|
|
|
|
2019-04-25 00:52:40 +09:00
|
|
|
import Login from './Preference/AccountManager.vue'
|
2019-04-26 23:36:39 +09:00
|
|
|
import Timeline from './Timeliine/Timeliine.vue'
|
|
|
|
import PublicTimeline from './AddColumn/PublicTimeline.vue'
|
2019-04-23 04:46:17 +09:00
|
|
|
|
2019-04-26 23:36:39 +09:00
|
|
|
type Status = 'welcome' | 'login' | 'public_timeline' | 'timeline'
|
2019-04-10 04:10:24 +09:00
|
|
|
|
2019-04-23 04:46:17 +09:00
|
|
|
@Component({
|
|
|
|
components: {
|
2019-04-25 00:52:40 +09:00
|
|
|
Login,
|
2019-04-26 23:36:39 +09:00
|
|
|
Timeline,
|
2019-04-23 04:46:17 +09:00
|
|
|
PublicTimeline,
|
|
|
|
}
|
|
|
|
})
|
2019-04-22 23:59:37 +09:00
|
|
|
export default class Welcome extends Vue {
|
2019-04-23 04:46:17 +09:00
|
|
|
public status: Status = 'welcome'
|
|
|
|
public loginButton: string = 'Login'
|
|
|
|
public publicTLButton: string = 'Streaming Public Timeline'
|
2019-04-26 23:36:39 +09:00
|
|
|
public TLButton: string = 'Timeline'
|
2019-04-22 23:59:37 +09:00
|
|
|
}
|
|
|
|
</script>=
|
|
|
|
|
|
|
|
<style lang="postcss">
|
|
|
|
#welcome {
|
2019-04-23 04:41:20 +09:00
|
|
|
position: absolute;
|
|
|
|
top: 50%;
|
|
|
|
transform: translateY(-50%);
|
|
|
|
width: 100%;
|
2019-04-22 23:59:37 +09:00
|
|
|
}
|
|
|
|
</style>
|