This commit is contained in:
syuilo
2025-03-18 15:23:50 +09:00
parent 474155b677
commit 0a295e1bb0
11 changed files with 393 additions and 588 deletions

View File

@@ -4,31 +4,24 @@ SPDX-License-Identifier: AGPL-3.0-only
-->
<template>
<div v-if="meta" class="rsqzvsbo">
<MkFeaturedPhotos class="bg"/>
<XTimeline class="tl"/>
<div class="shape1"></div>
<div class="shape2"></div>
<div class="logo-wrapper">
<div class="powered-by">Powered by</div>
<img :src="misskeysvg" class="misskey"/>
<div v-if="meta" :class="$style.root">
<MkFeaturedPhotos :class="$style.bg"/>
<XTimeline :class="$style.tl"/>
<div :class="$style.shape1"></div>
<div :class="$style.shape2"></div>
<div :class="$style.logoWrapper">
<div :class="$style.poweredBy">Powered by</div>
<img :src="misskeysvg" :class="$style.misskey"/>
</div>
<div class="emojis">
<MkEmoji :normal="true" :noStyle="true" emoji="👍"/>
<MkEmoji :normal="true" :noStyle="true" emoji="❤"/>
<MkEmoji :normal="true" :noStyle="true" emoji="😆"/>
<MkEmoji :normal="true" :noStyle="true" emoji="🎉"/>
<MkEmoji :normal="true" :noStyle="true" emoji="🍮"/>
</div>
<div class="contents">
<div :class="$style.contents">
<MkVisitorDashboard/>
</div>
<div v-if="instances && instances.length > 0" class="federation">
<div v-if="instances && instances.length > 0" :class="$style.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="getInstanceIcon(instance)" alt=""/>
<span class="name _monospace">{{ instance.host }}</span>
<img v-if="instance.iconUrl" :class="$style.federationInstanceIcon" :src="getInstanceIcon(instance)" alt=""/>
<span class="_monospace">{{ instance.host }}</span>
</MkA>
</MarqueeText>
</div>
@@ -66,122 +59,111 @@ misskeyApiGet('federation/instances', {
});
</script>
<style lang="scss" scoped>
.rsqzvsbo {
> .bg {
position: fixed;
top: 0;
right: 0;
width: 80vw; // 100%からshapeの幅を引いている
height: 100vh;
}
<style lang="scss" module>
.root {
height: 100cqh;
overflow: auto;
overscroll-behavior: contain;
}
> .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%);
.bg {
position: fixed;
top: 0;
right: 0;
width: 80vw; // 100%からshapeの幅を引いている
height: 100vh;
}
@media (max-width: 1200px) {
display: none;
}
}
.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%);
> .shape1 {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
background: var(--MI_THEME-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(--MI_THEME-accent);
clip-path: polygon(0% 0%, 25% 0%, 35% 100%, 0% 100%);
opacity: 0.5;
}
> .logo-wrapper {
position: fixed;
top: 36px;
left: 36px;
flex: auto;
color: #fff;
user-select: none;
pointer-events: none;
> .powered-by {
margin-bottom: 2px;
}
> .misskey {
width: 140px;
@media (max-width: 450px) {
width: 130px;
}
}
}
> .emojis {
position: fixed;
bottom: 32px;
left: 35px;
> * {
margin-right: 8px;
}
@media (max-width: 1200px) {
display: none;
}
}
> .contents {
position: relative;
width: min(430px, calc(100% - 32px));
margin-left: 128px;
padding: 100px 0 100px 0;
@media (max-width: 1200px) {
margin: auto;
}
}
> .federation {
position: fixed;
bottom: 16px;
left: 0;
right: 0;
margin: auto;
background: var(--MI_THEME-acrylicPanel);
-webkit-backdrop-filter: var(--MI-blur, blur(15px));
backdrop-filter: var(--MI-blur, blur(15px));
border-radius: 999px;
overflow: clip;
width: 800px;
padding: 8px 0;
@media (max-width: 900px) {
display: none;
}
@media (max-width: 1200px) {
display: none;
}
}
.shape1 {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
background: var(--MI_THEME-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(--MI_THEME-accent);
clip-path: polygon(0% 0%, 25% 0%, 35% 100%, 0% 100%);
opacity: 0.5;
}
.logoWrapper {
position: fixed;
top: 36px;
left: 36px;
flex: auto;
color: #fff;
user-select: none;
pointer-events: none;
}
.poweredBy {
margin-bottom: 2px;
}
.misskey {
width: 120px;
@media (max-width: 450px) {
width: 100px;
}
}
.contents {
position: relative;
width: min(430px, calc(100% - 32px));
margin-left: 128px;
padding: 100px 0 100px 0;
@media (max-width: 1200px) {
margin: auto;
}
}
.federation {
position: fixed;
bottom: 16px;
left: 0;
right: 0;
margin: auto;
background: var(--MI_THEME-acrylicPanel);
-webkit-backdrop-filter: var(--MI-blur, blur(15px));
backdrop-filter: var(--MI-blur, blur(15px));
border-radius: 999px;
overflow: clip;
width: 800px;
padding: 8px 0;
@media (max-width: 900px) {
display: none;
}
}
</style>
<style lang="scss" module>
.federationInstance {
display: inline-flex;
align-items: center;
@@ -190,13 +172,13 @@ misskeyApiGet('federation/instances', {
margin: 0 10px 0 0;
background: var(--MI_THEME-panel);
border-radius: 999px;
}
> :global(.icon) {
display: inline-block;
width: 20px;
height: 20px;
margin-right: 5px;
border-radius: 999px;
}
.federationInstanceIcon {
display: inline-block;
width: 20px;
height: 20px;
margin-right: 5px;
border-radius: 999px;
}
</style>