spec(frontend): kawaii モード (MisskeyIO#632)
This commit is contained in:
parent
23a12b9579
commit
f4fbc220d5
11 changed files with 88 additions and 8 deletions
|
@ -6,7 +6,8 @@ SPDX-License-Identifier: AGPL-3.0-only
|
|||
<template>
|
||||
<div v-if="instance" :class="$style.root">
|
||||
<div :class="[$style.main, $style.panel]">
|
||||
<img :src="instance.iconUrl || '/favicon.ico'" alt="" :class="$style.mainIcon"/>
|
||||
<img v-if="miLocalStorage.getItem('kawaii')" src="/client-assets/kawaii/misskey-io.png" alt="Logo by @sawaratsuki@misskey.io" :class="$style.mainIconAlt"/>
|
||||
<img v-else :src="instance.iconUrl || '/favicon.ico'" alt="" :class="$style.mainIcon"/>
|
||||
<button class="_button _acrylic" :class="$style.mainMenu" @click="showMenu"><i class="ti ti-dots"></i></button>
|
||||
<div :class="$style.mainFg">
|
||||
<h1 :class="$style.mainTitle">
|
||||
|
@ -81,6 +82,7 @@ import * as os from '@/os.js';
|
|||
import { misskeyApi } from '@/scripts/misskey-api.js';
|
||||
import { i18n } from '@/i18n.js';
|
||||
import { instance } from '@/instance.js';
|
||||
import { miLocalStorage } from '@/local-storage.js';
|
||||
import MkNumber from '@/components/MkNumber.vue';
|
||||
import XActiveUsersChart from '@/components/MkVisitorDashboard.ActiveUsersChart.vue';
|
||||
import { openInstanceMenu } from '@/ui/_common_/common';
|
||||
|
@ -139,6 +141,13 @@ function exploreOtherServers() {
|
|||
filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.5));
|
||||
}
|
||||
|
||||
.mainIconAlt {
|
||||
width: 85%;
|
||||
margin-top: -47px;
|
||||
vertical-align: bottom;
|
||||
filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.5));
|
||||
}
|
||||
|
||||
.mainMenu {
|
||||
position: absolute;
|
||||
top: 16px;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue