2020-10-17 20:12:00 +09:00
|
|
|
<template>
|
2021-11-19 19:36:12 +09:00
|
|
|
<div v-if="meta" class="rsqzvsbo">
|
2023-02-22 11:00:34 +09:00
|
|
|
<MkFeaturedPhotos class="bg"/>
|
|
|
|
<XTimeline class="tl"/>
|
|
|
|
<div class="shape1"></div>
|
|
|
|
<div class="shape2"></div>
|
|
|
|
<img src="/client-assets/misskey.svg" class="misskey"/>
|
|
|
|
<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>
|
|
|
|
<div class="contents">
|
2022-07-01 15:06:17 +09:00
|
|
|
<div class="main">
|
|
|
|
<img :src="$instance.iconUrl || $instance.faviconUrl || '/favicon.ico'" alt="" class="icon"/>
|
2022-12-19 19:01:30 +09:00
|
|
|
<button class="_button _acrylic menu" @click="showMenu"><i class="ti ti-dots"></i></button>
|
2020-12-30 13:07:16 +09:00
|
|
|
<div class="fg">
|
|
|
|
<h1>
|
2021-03-06 12:18:46 +09: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-30 13:07:16 +09:00
|
|
|
</h1>
|
|
|
|
<div class="about">
|
2022-07-05 11:21:59 +09:00
|
|
|
<!-- eslint-disable-next-line vue/no-v-html -->
|
2022-07-01 15:06:17 +09:00
|
|
|
<div class="desc" v-html="meta.description || i18n.ts.headlineMisskey"></div>
|
2020-12-30 13:07:16 +09:00
|
|
|
</div>
|
2023-02-22 11:00:34 +09:00
|
|
|
<div class="action _gaps_s">
|
|
|
|
<MkButton full rounded gradate data-cy-signup style="margin-right: 12px;" @click="signup()">{{ i18n.ts.joinThisServer }}</MkButton>
|
2023-02-22 15:03:30 +09:00
|
|
|
<MkButton full rounded @click="exploreOtherServers()">{{ i18n.ts.exploreOtherServers }}</MkButton>
|
2023-02-22 11:00:34 +09:00
|
|
|
<MkButton full rounded data-cy-signin @click="signin()">{{ i18n.ts.login }}</MkButton>
|
2020-12-30 13:07:16 +09:00
|
|
|
</div>
|
|
|
|
</div>
|
2020-12-05 18:18:37 +09:00
|
|
|
</div>
|
2023-02-22 17:14:23 +09:00
|
|
|
<div v-if="instance.policies.ltlAvailable" class="tl">
|
2023-02-22 11:00:34 +09:00
|
|
|
<div class="title">{{ i18n.ts.letsLookAtTimeline }}</div>
|
|
|
|
<div class="body">
|
|
|
|
<MkTimeline src="local"/>
|
|
|
|
</div>
|
2022-07-01 15:06:17 +09:00
|
|
|
</div>
|
2020-12-05 18:18:37 +09:00
|
|
|
</div>
|
2023-02-22 11:00:34 +09:00
|
|
|
<div v-if="instances && instances.length > 0" class="federation">
|
|
|
|
<MarqueeText :duration="40">
|
|
|
|
<MkA v-for="instance in instances" :key="instance.id" :class="$style.federationInstance" :to="`/instance-info/${instance.host}`" behavior="window">
|
|
|
|
<!--<MkInstanceCardMini :instance="instance"/>-->
|
|
|
|
<img v-if="instance.iconUrl" class="icon" :src="instance.iconUrl" alt=""/>
|
|
|
|
<span class="name _monospace">{{ instance.host }}</span>
|
|
|
|
</MkA>
|
|
|
|
</MarqueeText>
|
|
|
|
</div>
|
2020-10-17 20:12:00 +09:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
2022-07-01 15:06:17 +09:00
|
|
|
<script lang="ts" setup>
|
|
|
|
import { } from 'vue';
|
2023-02-22 11:00:34 +09:00
|
|
|
import { Instance } from 'misskey-js/built/entities';
|
2022-07-01 15:06:17 +09:00
|
|
|
import XTimeline from './welcome.timeline.vue';
|
2022-08-31 00:24:33 +09:00
|
|
|
import MarqueeText from '@/components/MkMarquee.vue';
|
|
|
|
import XSigninDialog from '@/components/MkSigninDialog.vue';
|
|
|
|
import XSignupDialog from '@/components/MkSignupDialog.vue';
|
2022-09-06 18:21:49 +09:00
|
|
|
import MkButton from '@/components/MkButton.vue';
|
2022-08-31 00:24:33 +09:00
|
|
|
import MkFeaturedPhotos from '@/components/MkFeaturedPhotos.vue';
|
2023-02-22 11:00:34 +09:00
|
|
|
import MkTimeline from '@/components/MkTimeline.vue';
|
2023-02-16 23:09:41 +09:00
|
|
|
import { instanceName } from '@/config';
|
2021-11-12 02:02:25 +09:00
|
|
|
import * as os from '@/os';
|
2022-07-01 15:06:17 +09:00
|
|
|
import { i18n } from '@/i18n';
|
2023-02-22 17:14:23 +09:00
|
|
|
import { instance } from '@/instance';
|
2020-10-17 20:12:00 +09:00
|
|
|
|
2023-02-17 12:38:30 +09:00
|
|
|
let meta = $ref<Instance>();
|
|
|
|
let instances = $ref<any[]>();
|
2020-10-17 20:12:00 +09:00
|
|
|
|
2022-07-01 15:06:17 +09:00
|
|
|
os.api('meta', { detail: true }).then(_meta => {
|
|
|
|
meta = _meta;
|
|
|
|
});
|
2020-12-05 18:18:37 +09:00
|
|
|
|
2023-02-17 12:38:30 +09:00
|
|
|
os.apiGet('federation/instances', {
|
2022-07-01 15:06:17 +09:00
|
|
|
sort: '+pubSub',
|
|
|
|
limit: 20,
|
|
|
|
}).then(_instances => {
|
|
|
|
instances = _instances;
|
|
|
|
});
|
|
|
|
|
|
|
|
function signin() {
|
|
|
|
os.popup(XSigninDialog, {
|
|
|
|
autoSet: true,
|
|
|
|
}, {}, 'closed');
|
|
|
|
}
|
|
|
|
|
|
|
|
function signup() {
|
|
|
|
os.popup(XSignupDialog, {
|
|
|
|
autoSet: true,
|
|
|
|
}, {}, 'closed');
|
|
|
|
}
|
|
|
|
|
|
|
|
function showMenu(ev) {
|
|
|
|
os.popupMenu([{
|
|
|
|
text: i18n.ts.instanceInfo,
|
2022-12-19 19:01:30 +09:00
|
|
|
icon: 'ti ti-info-circle',
|
2022-07-01 15:06:17 +09:00
|
|
|
action: () => {
|
|
|
|
os.pageWindow('/about');
|
|
|
|
},
|
|
|
|
}, {
|
|
|
|
text: i18n.ts.aboutMisskey,
|
2022-12-19 19:01:30 +09:00
|
|
|
icon: 'ti ti-info-circle',
|
2022-07-01 15:06:17 +09:00
|
|
|
action: () => {
|
|
|
|
os.pageWindow('/about-misskey');
|
|
|
|
},
|
|
|
|
}, null, {
|
|
|
|
text: i18n.ts.help,
|
2022-12-19 19:01:30 +09:00
|
|
|
icon: 'ti ti-question-circle',
|
2022-07-01 15:06:17 +09:00
|
|
|
action: () => {
|
|
|
|
window.open('https://misskey-hub.net/help.md', '_blank');
|
|
|
|
},
|
|
|
|
}], ev.currentTarget ?? ev.target);
|
|
|
|
}
|
2023-02-22 11:00:34 +09:00
|
|
|
|
|
|
|
function exploreOtherServers() {
|
|
|
|
// TODO: 言語をよしなに
|
|
|
|
window.open('https://join.misskey.page/ja-JP/instances', '_blank');
|
|
|
|
}
|
2020-10-17 20:12:00 +09:00
|
|
|
</script>
|
|
|
|
|
2022-12-27 18:29:39 +09:00
|
|
|
<style lang="scss" scoped>
|
2020-10-17 20:12:00 +09:00
|
|
|
.rsqzvsbo {
|
2023-02-22 11:00:34 +09:00
|
|
|
> .bg {
|
|
|
|
position: fixed;
|
|
|
|
top: 0;
|
|
|
|
right: 0;
|
|
|
|
width: 80vw; // 100%からshapeの幅を引いている
|
|
|
|
height: 100vh;
|
|
|
|
}
|
2020-12-31 00:22:20 +09:00
|
|
|
|
2023-02-22 11:00:34 +09:00
|
|
|
> .tl {
|
|
|
|
position: fixed;
|
|
|
|
top: 0;
|
|
|
|
bottom: 0;
|
|
|
|
right: 64px;
|
|
|
|
margin: auto;
|
|
|
|
padding: 128px 0;
|
|
|
|
width: 500px;
|
|
|
|
height: calc(100% - 256px);
|
|
|
|
overflow: hidden;
|
|
|
|
-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%);
|
2020-12-31 00:22:20 +09:00
|
|
|
|
2023-02-22 11:00:34 +09:00
|
|
|
@media (max-width: 1200px) {
|
|
|
|
display: none;
|
2021-03-06 12:18:46 +09:00
|
|
|
}
|
2023-02-22 11:00:34 +09:00
|
|
|
}
|
|
|
|
|
|
|
|
> .shape1 {
|
|
|
|
position: fixed;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
width: 100vw;
|
|
|
|
height: 100vh;
|
|
|
|
background: var(--accent);
|
|
|
|
clip-path: polygon(0% 0%, 45% 0%, 20% 100%, 0% 100%);
|
|
|
|
}
|
|
|
|
> .shape2 {
|
|
|
|
position: fixed;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
width: 100vw;
|
|
|
|
height: 100vh;
|
|
|
|
background: var(--accent);
|
|
|
|
clip-path: polygon(0% 0%, 25% 0%, 35% 100%, 0% 100%);
|
|
|
|
opacity: 0.5;
|
|
|
|
}
|
|
|
|
|
|
|
|
> .misskey {
|
|
|
|
position: fixed;
|
|
|
|
top: 42px;
|
|
|
|
left: 42px;
|
|
|
|
width: 140px;
|
|
|
|
|
|
|
|
@media (max-width: 450px) {
|
|
|
|
width: 130px;
|
2020-12-30 19:24:01 +09:00
|
|
|
}
|
2023-02-22 11:00:34 +09:00
|
|
|
}
|
2020-12-30 19:24:01 +09:00
|
|
|
|
2023-02-22 11:00:34 +09:00
|
|
|
> .emojis {
|
|
|
|
position: fixed;
|
|
|
|
bottom: 32px;
|
|
|
|
left: 35px;
|
2020-12-31 00:22:20 +09:00
|
|
|
|
2023-02-22 11:00:34 +09:00
|
|
|
> * {
|
|
|
|
margin-right: 8px;
|
2020-12-31 00:22:20 +09:00
|
|
|
}
|
|
|
|
|
2023-02-22 11:00:34 +09:00
|
|
|
@media (max-width: 1200px) {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
2020-12-31 00:22:20 +09:00
|
|
|
|
2023-02-22 11:00:34 +09:00
|
|
|
> .contents {
|
|
|
|
position: relative;
|
|
|
|
width: min(430px, calc(100% - 32px));
|
|
|
|
margin-left: 128px;
|
|
|
|
padding: 150px 0 100px 0;
|
2020-12-31 00:22:20 +09:00
|
|
|
|
2023-02-22 11:00:34 +09:00
|
|
|
@media (max-width: 1200px) {
|
|
|
|
margin: auto;
|
2020-12-30 19:24:01 +09:00
|
|
|
}
|
|
|
|
|
2020-12-30 13:07:16 +09:00
|
|
|
> .main {
|
|
|
|
position: relative;
|
2022-07-01 15:06:17 +09:00
|
|
|
background: var(--panel);
|
|
|
|
border-radius: var(--radius);
|
2020-12-30 13:07:16 +09:00
|
|
|
box-shadow: 0 12px 32px rgb(0 0 0 / 25%);
|
2023-02-22 11:00:34 +09:00
|
|
|
text-align: center;
|
|
|
|
|
2022-07-01 15:06:17 +09:00
|
|
|
> .icon {
|
|
|
|
width: 85px;
|
|
|
|
margin-top: -47px;
|
|
|
|
border-radius: 100%;
|
|
|
|
vertical-align: bottom;
|
|
|
|
}
|
|
|
|
|
|
|
|
> .menu {
|
2020-12-30 13:07:16 +09:00
|
|
|
position: absolute;
|
2022-07-01 15:06:17 +09:00
|
|
|
top: 16px;
|
|
|
|
right: 16px;
|
|
|
|
width: 32px;
|
|
|
|
height: 32px;
|
|
|
|
border-radius: 8px;
|
|
|
|
font-size: 18px;
|
2020-12-05 18:18:37 +09:00
|
|
|
}
|
|
|
|
|
2020-12-30 13:07:16 +09:00
|
|
|
> .fg {
|
|
|
|
position: relative;
|
|
|
|
z-index: 1;
|
2020-12-05 18:18:37 +09:00
|
|
|
|
2020-12-30 13:07:16 +09:00
|
|
|
> h1 {
|
|
|
|
display: block;
|
|
|
|
margin: 0;
|
2022-07-01 15:06:17 +09:00
|
|
|
padding: 16px 32px 24px 32px;
|
|
|
|
font-size: 1.4em;
|
2020-12-05 18:18:37 +09:00
|
|
|
|
2020-12-30 13:07:16 +09:00
|
|
|
> .logo {
|
|
|
|
vertical-align: bottom;
|
|
|
|
max-height: 120px;
|
2021-01-01 01:31:29 +09:00
|
|
|
max-width: min(100%, 300px);
|
2020-12-30 13:07:16 +09:00
|
|
|
}
|
2020-12-05 18:18:37 +09:00
|
|
|
}
|
|
|
|
|
2020-12-30 13:07:16 +09:00
|
|
|
> .about {
|
|
|
|
padding: 0 32px;
|
2020-12-05 18:18:37 +09:00
|
|
|
}
|
|
|
|
|
2020-12-30 13:07:16 +09:00
|
|
|
> .action {
|
|
|
|
padding: 32px;
|
2020-12-31 00:22:20 +09:00
|
|
|
|
|
|
|
> * {
|
|
|
|
line-height: 28px;
|
|
|
|
}
|
2020-12-30 13:07:16 +09:00
|
|
|
}
|
2022-07-01 15:06:17 +09:00
|
|
|
}
|
|
|
|
}
|
2020-12-30 13:07:16 +09:00
|
|
|
|
2023-02-22 11:00:34 +09:00
|
|
|
> .tl {
|
|
|
|
position: relative;
|
|
|
|
background: var(--panel);
|
|
|
|
border-radius: var(--radius);
|
2022-07-13 21:41:06 +09:00
|
|
|
overflow: clip;
|
2023-02-22 11:00:34 +09:00
|
|
|
box-shadow: 0 12px 32px rgb(0 0 0 / 25%);
|
2023-02-22 17:14:23 +09:00
|
|
|
margin-top: 16px;
|
2023-02-22 11:00:34 +09:00
|
|
|
|
|
|
|
> .title {
|
|
|
|
padding: 12px 16px;
|
|
|
|
border-bottom: solid 1px var(--divider);
|
|
|
|
}
|
2022-07-01 15:06:17 +09:00
|
|
|
|
2023-02-22 11:00:34 +09:00
|
|
|
> .body {
|
|
|
|
height: 350px;
|
|
|
|
overflow: auto;
|
2020-12-05 18:18:37 +09:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2023-02-22 11:00:34 +09:00
|
|
|
|
|
|
|
> .federation {
|
|
|
|
position: fixed;
|
|
|
|
bottom: 16px;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
margin: auto;
|
|
|
|
background: var(--acrylicPanel);
|
|
|
|
-webkit-backdrop-filter: var(--blur, blur(15px));
|
|
|
|
backdrop-filter: var(--blur, blur(15px));
|
|
|
|
border-radius: 999px;
|
|
|
|
overflow: clip;
|
|
|
|
width: 800px;
|
|
|
|
padding: 8px 0;
|
|
|
|
|
|
|
|
@media (max-width: 900px) {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
2020-12-05 16:05:40 +09:00
|
|
|
}
|
2020-10-17 20:12:00 +09:00
|
|
|
</style>
|
2022-07-01 15:06:17 +09:00
|
|
|
|
|
|
|
<style lang="scss" module>
|
|
|
|
.federationInstance {
|
|
|
|
display: inline-flex;
|
|
|
|
align-items: center;
|
|
|
|
vertical-align: bottom;
|
|
|
|
padding: 6px 12px 6px 6px;
|
|
|
|
margin: 0 10px 0 0;
|
|
|
|
background: var(--panel);
|
|
|
|
border-radius: 999px;
|
|
|
|
|
|
|
|
> :global(.icon) {
|
|
|
|
display: inline-block;
|
|
|
|
width: 20px;
|
|
|
|
height: 20px;
|
|
|
|
margin-right: 5px;
|
|
|
|
border-radius: 999px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|