2020-10-17 06:12:00 -05:00
|
|
|
<template>
|
2020-12-29 22:07:16 -06:00
|
|
|
<div class="rsqzvsbo" v-if="meta">
|
|
|
|
<div class="top">
|
2020-12-30 09:22:20 -06:00
|
|
|
<MkFeaturedPhotos class="bg"/>
|
|
|
|
<XTimeline class="tl"/>
|
2021-03-05 21:18:46 -06:00
|
|
|
<div class="shape1"></div>
|
|
|
|
<div class="shape2"></div>
|
2021-03-06 23:40:57 -06:00
|
|
|
<img src="/static-assets/client/misskey.svg" class="misskey"/>
|
2020-12-30 09:22:20 -06:00
|
|
|
<div class="emojis">
|
|
|
|
<MkEmoji :normal="true" :no-style="true" emoji="👍"/>
|
|
|
|
<MkEmoji :normal="true" :no-style="true" emoji="❤"/>
|
|
|
|
<MkEmoji :normal="true" :no-style="true" emoji="😆"/>
|
|
|
|
<MkEmoji :normal="true" :no-style="true" emoji="🎉"/>
|
|
|
|
<MkEmoji :normal="true" :no-style="true" emoji="🍮"/>
|
|
|
|
</div>
|
2020-12-29 22:07:16 -06:00
|
|
|
<div class="main _panel">
|
2020-12-30 04:26:47 -06:00
|
|
|
<div class="bg">
|
2020-12-29 22:07:16 -06:00
|
|
|
<div class="fade"></div>
|
|
|
|
</div>
|
|
|
|
<div class="fg">
|
|
|
|
<h1>
|
2021-03-05 21:18:46 -06:00
|
|
|
<!-- 背景色によってはロゴが見えなくなるのでとりあえず無効に -->
|
|
|
|
<!-- <img class="logo" v-if="meta.logoImageUrl" :src="meta.logoImageUrl"><span v-else class="text">{{ instanceName }}</span> -->
|
|
|
|
<span class="text">{{ instanceName }}</span>
|
2020-12-29 22:07:16 -06:00
|
|
|
</h1>
|
|
|
|
<div class="about">
|
2020-12-30 09:22:20 -06:00
|
|
|
<div class="desc" v-html="meta.description || $ts.headlineMisskey"></div>
|
2020-12-29 22:07:16 -06:00
|
|
|
</div>
|
|
|
|
<div class="action">
|
2021-10-13 11:27:45 -05:00
|
|
|
<MkButton @click="signup()" inline gradate data-cy-signup style="margin-right: 12px;">{{ $ts.signup }}</MkButton>
|
2021-08-12 05:05:07 -05:00
|
|
|
<MkButton @click="signin()" inline data-cy-signin>{{ $ts.login }}</MkButton>
|
2020-12-29 22:07:16 -06:00
|
|
|
</div>
|
2020-12-30 09:22:20 -06:00
|
|
|
<div class="status" v-if="onlineUsersCount && stats">
|
|
|
|
<div>
|
|
|
|
<I18n :src="$ts.nUsers" text-tag="span" class="users">
|
|
|
|
<template #n><b>{{ number(stats.originalUsersCount) }}</b></template>
|
|
|
|
</I18n>
|
|
|
|
<I18n :src="$ts.nNotes" text-tag="span" class="notes">
|
|
|
|
<template #n><b>{{ number(stats.originalNotesCount) }}</b></template>
|
|
|
|
</I18n>
|
|
|
|
</div>
|
2020-12-29 22:07:16 -06:00
|
|
|
<I18n :src="$ts.onlineUsersCount" text-tag="span" class="online">
|
|
|
|
<template #n><b>{{ onlineUsersCount }}</b></template>
|
|
|
|
</I18n>
|
|
|
|
</div>
|
2021-04-20 09:22:59 -05:00
|
|
|
<button class="_button _acrylic menu" @click="showMenu"><i class="fas fa-ellipsis-h"></i></button>
|
2020-12-29 22:07:16 -06:00
|
|
|
</div>
|
2020-12-05 03:18:37 -06:00
|
|
|
</div>
|
|
|
|
</div>
|
2020-10-17 06:12:00 -05:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
|
|
|
import { defineComponent } from 'vue';
|
2021-04-03 23:00:39 -05:00
|
|
|
import { toUnicode } from 'punycode/';
|
2021-03-23 03:30:14 -05:00
|
|
|
import XSigninDialog from '@client/components/signin-dialog.vue';
|
|
|
|
import XSignupDialog from '@client/components/signup-dialog.vue';
|
|
|
|
import MkButton from '@client/components/ui/button.vue';
|
|
|
|
import XNote from '@client/components/note.vue';
|
|
|
|
import MkFeaturedPhotos from '@client/components/featured-photos.vue';
|
2020-12-30 09:22:20 -06:00
|
|
|
import XTimeline from './welcome.timeline.vue';
|
2021-03-23 03:30:14 -05:00
|
|
|
import { host, instanceName } from '@client/config';
|
|
|
|
import * as os from '@client/os';
|
|
|
|
import number from '@client/filters/number';
|
2020-10-17 06:12:00 -05:00
|
|
|
|
|
|
|
export default defineComponent({
|
|
|
|
components: {
|
|
|
|
MkButton,
|
2020-12-05 01:05:40 -06:00
|
|
|
XNote,
|
2020-12-30 09:22:20 -06:00
|
|
|
MkFeaturedPhotos,
|
|
|
|
XTimeline,
|
2020-10-17 06:12:00 -05:00
|
|
|
},
|
|
|
|
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
host: toUnicode(host),
|
2020-11-16 23:59:15 -06:00
|
|
|
instanceName,
|
|
|
|
meta: null,
|
2020-12-05 03:18:37 -06:00
|
|
|
stats: null,
|
|
|
|
tags: [],
|
2020-12-29 22:07:16 -06:00
|
|
|
onlineUsersCount: null,
|
2020-10-17 06:12:00 -05:00
|
|
|
};
|
|
|
|
},
|
|
|
|
|
|
|
|
created() {
|
2020-11-16 23:59:15 -06:00
|
|
|
os.api('meta', { detail: true }).then(meta => {
|
|
|
|
this.meta = meta;
|
|
|
|
});
|
|
|
|
|
2020-10-17 06:12:00 -05:00
|
|
|
os.api('stats').then(stats => {
|
|
|
|
this.stats = stats;
|
|
|
|
});
|
2020-12-05 03:18:37 -06:00
|
|
|
|
2020-12-29 22:07:16 -06:00
|
|
|
os.api('get-online-users-count').then(res => {
|
|
|
|
this.onlineUsersCount = res.count;
|
|
|
|
});
|
|
|
|
|
2020-12-05 03:18:37 -06:00
|
|
|
os.api('hashtags/list', {
|
|
|
|
sort: '+mentionedLocalUsers',
|
|
|
|
limit: 8
|
|
|
|
}).then(tags => {
|
|
|
|
this.tags = tags;
|
|
|
|
});
|
2020-10-17 06:12:00 -05:00
|
|
|
},
|
|
|
|
|
|
|
|
methods: {
|
|
|
|
signin() {
|
|
|
|
os.popup(XSigninDialog, {
|
|
|
|
autoSet: true
|
|
|
|
}, {}, 'closed');
|
|
|
|
},
|
|
|
|
|
|
|
|
signup() {
|
|
|
|
os.popup(XSignupDialog, {
|
|
|
|
autoSet: true
|
|
|
|
}, {}, 'closed');
|
2020-12-05 03:18:37 -06:00
|
|
|
},
|
|
|
|
|
2020-12-29 22:07:16 -06:00
|
|
|
showMenu(ev) {
|
2021-08-07 22:19:10 -05:00
|
|
|
os.popupMenu([{
|
2020-12-29 22:07:16 -06:00
|
|
|
text: this.$t('aboutX', { x: instanceName }),
|
2021-04-20 09:22:59 -05:00
|
|
|
icon: 'fas fa-info-circle',
|
2020-12-29 22:07:16 -06:00
|
|
|
action: () => {
|
|
|
|
os.pageWindow('/about');
|
|
|
|
}
|
|
|
|
}, {
|
|
|
|
text: this.$ts.aboutMisskey,
|
2021-04-20 09:22:59 -05:00
|
|
|
icon: 'fas fa-info-circle',
|
2020-12-29 22:07:16 -06:00
|
|
|
action: () => {
|
|
|
|
os.pageWindow('/about-misskey');
|
|
|
|
}
|
|
|
|
}, null, {
|
|
|
|
text: this.$ts.help,
|
2021-04-20 09:22:59 -05:00
|
|
|
icon: 'fas fa-question-circle',
|
2020-12-29 22:07:16 -06:00
|
|
|
action: () => {
|
|
|
|
os.pageWindow('/docs');
|
|
|
|
}
|
|
|
|
}], ev.currentTarget || ev.target);
|
|
|
|
},
|
|
|
|
|
2020-12-05 03:18:37 -06:00
|
|
|
number
|
2020-10-17 06:12:00 -05:00
|
|
|
}
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
.rsqzvsbo {
|
2020-12-29 22:07:16 -06:00
|
|
|
> .top {
|
|
|
|
display: flex;
|
|
|
|
text-align: center;
|
|
|
|
min-height: 100vh;
|
|
|
|
box-sizing: border-box;
|
|
|
|
padding: 16px;
|
|
|
|
|
2020-12-30 09:22:20 -06:00
|
|
|
> .bg {
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
2021-03-05 21:18:46 -06:00
|
|
|
right: 0;
|
|
|
|
width: 80%; // 100%からshapeの幅を引いている
|
2020-12-30 09:22:20 -06:00
|
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
> .tl {
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
bottom: 0;
|
|
|
|
right: 64px;
|
|
|
|
margin: auto;
|
|
|
|
width: 500px;
|
|
|
|
height: calc(100% - 128px);
|
2021-03-02 07:57:16 -06:00
|
|
|
overflow: hidden;
|
2020-12-30 09:22:20 -06:00
|
|
|
-webkit-mask-image: linear-gradient(0deg, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 128px, rgba(0,0,0,1) calc(100% - 128px), rgba(0,0,0,0) 100%);
|
|
|
|
mask-image: linear-gradient(0deg, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 128px, rgba(0,0,0,1) calc(100% - 128px), rgba(0,0,0,0) 100%);
|
|
|
|
|
|
|
|
@media (max-width: 1200px) {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-03-05 21:18:46 -06:00
|
|
|
> .shape1 {
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
background: var(--accent);
|
|
|
|
clip-path: polygon(0% 0%, 45% 0%, 20% 100%, 0% 100%);
|
|
|
|
}
|
|
|
|
> .shape2 {
|
2020-12-30 04:24:01 -06:00
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
background: var(--accent);
|
2021-03-05 21:18:46 -06:00
|
|
|
clip-path: polygon(0% 0%, 25% 0%, 35% 100%, 0% 100%);
|
|
|
|
opacity: 0.5;
|
2020-12-30 04:24:01 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
> .misskey {
|
|
|
|
position: absolute;
|
2020-12-30 09:22:20 -06:00
|
|
|
top: 42px;
|
|
|
|
left: 42px;
|
2020-12-30 04:24:01 -06:00
|
|
|
width: 160px;
|
2020-12-30 09:22:20 -06:00
|
|
|
|
|
|
|
@media (max-width: 450px) {
|
|
|
|
width: 130px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
> .emojis {
|
|
|
|
position: absolute;
|
|
|
|
bottom: 32px;
|
|
|
|
left: 35px;
|
|
|
|
|
|
|
|
> * {
|
|
|
|
margin-right: 8px;
|
|
|
|
}
|
|
|
|
|
|
|
|
@media (max-width: 1200px) {
|
|
|
|
display: none;
|
|
|
|
}
|
2020-12-30 04:24:01 -06:00
|
|
|
}
|
|
|
|
|
2020-12-29 22:07:16 -06:00
|
|
|
> .main {
|
|
|
|
position: relative;
|
2020-12-30 09:22:20 -06:00
|
|
|
width: min(480px, 100%);
|
2020-12-30 04:24:01 -06:00
|
|
|
margin: auto auto auto 128px;
|
2020-12-29 22:07:16 -06:00
|
|
|
box-shadow: 0 12px 32px rgb(0 0 0 / 25%);
|
|
|
|
|
2020-12-30 04:24:01 -06:00
|
|
|
@media (max-width: 1200px) {
|
|
|
|
margin: auto;
|
|
|
|
}
|
|
|
|
|
2020-12-29 22:07:16 -06:00
|
|
|
> .bg {
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
2020-12-05 03:18:37 -06:00
|
|
|
width: 100%;
|
2020-12-29 22:07:16 -06:00
|
|
|
height: 128px;
|
|
|
|
background-position: center;
|
|
|
|
background-size: cover;
|
|
|
|
opacity: 0.75;
|
|
|
|
|
|
|
|
> .fade {
|
|
|
|
position: absolute;
|
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
|
|
|
width: 100%;
|
|
|
|
height: 128px;
|
|
|
|
background: linear-gradient(0deg, var(--panel), var(--X15));
|
|
|
|
}
|
2020-12-05 03:18:37 -06:00
|
|
|
}
|
|
|
|
|
2020-12-29 22:07:16 -06:00
|
|
|
> .fg {
|
|
|
|
position: relative;
|
|
|
|
z-index: 1;
|
2020-12-05 03:18:37 -06:00
|
|
|
|
2020-12-29 22:07:16 -06:00
|
|
|
> h1 {
|
|
|
|
display: block;
|
|
|
|
margin: 0;
|
|
|
|
padding: 32px 32px 24px 32px;
|
2021-08-11 07:05:26 -05:00
|
|
|
font-size: 1.5em;
|
2020-12-05 03:18:37 -06:00
|
|
|
|
2020-12-29 22:07:16 -06:00
|
|
|
> .logo {
|
|
|
|
vertical-align: bottom;
|
|
|
|
max-height: 120px;
|
2020-12-31 10:31:29 -06:00
|
|
|
max-width: min(100%, 300px);
|
2020-12-29 22:07:16 -06:00
|
|
|
}
|
2020-12-05 03:18:37 -06:00
|
|
|
}
|
|
|
|
|
2020-12-29 22:07:16 -06:00
|
|
|
> .about {
|
|
|
|
padding: 0 32px;
|
2020-12-05 03:18:37 -06:00
|
|
|
}
|
|
|
|
|
2020-12-29 22:07:16 -06:00
|
|
|
> .action {
|
|
|
|
padding: 32px;
|
2020-12-30 09:22:20 -06:00
|
|
|
|
|
|
|
> * {
|
|
|
|
line-height: 28px;
|
|
|
|
}
|
2020-12-29 22:07:16 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
> .status {
|
2021-04-09 22:40:50 -05:00
|
|
|
border-top: solid 0.5px var(--divider);
|
2020-12-29 22:07:16 -06:00
|
|
|
padding: 32px;
|
2020-12-30 09:22:20 -06:00
|
|
|
font-size: 90%;
|
|
|
|
|
|
|
|
> div {
|
|
|
|
> span:not(:last-child) {
|
|
|
|
padding-right: 1em;
|
|
|
|
margin-right: 1em;
|
2021-04-09 22:40:50 -05:00
|
|
|
border-right: solid 0.5px var(--divider);
|
2020-12-30 09:22:20 -06:00
|
|
|
}
|
|
|
|
}
|
2020-12-29 22:07:16 -06:00
|
|
|
|
|
|
|
> .online {
|
|
|
|
::v-deep(b) {
|
|
|
|
color: #41b781;
|
|
|
|
}
|
2020-12-05 03:18:37 -06:00
|
|
|
|
2020-12-29 22:07:16 -06:00
|
|
|
::v-deep(span) {
|
|
|
|
opacity: 0.7;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
> .menu {
|
|
|
|
position: absolute;
|
|
|
|
top: 16px;
|
|
|
|
right: 16px;
|
|
|
|
width: 32px;
|
|
|
|
height: 32px;
|
|
|
|
border-radius: 8px;
|
|
|
|
}
|
2020-12-05 03:18:37 -06:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-12-05 01:05:40 -06:00
|
|
|
}
|
2020-10-17 06:12:00 -05:00
|
|
|
</style>
|