forked from misskey-dev/misskey
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
69 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
The logo and derivative works contained in this folder are copyrighted by SAWARATSUKI | ||
and used by Misskey Project under license from SAWARATSUKI. | ||
The assets in this folder are exempt from CC BY 4.0 as well as AGPLv3. | ||
Please note that any use outside of the intended use may violate the copyright. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 @[email protected]" :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; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,9 @@ SPDX-License-Identifier: AGPL-3.0-only | |
<div class="_gaps_m znqjceqz"> | ||
<div v-panel class="about"> | ||
<div ref="containerEl" class="container" :class="{ playing: easterEggEngine != null }"> | ||
<img src="/client-assets/about-icon.png" alt="" class="icon" draggable="false" @load="iconLoaded" @click="gravity"/> | ||
<img v-if="miLocalStorage.getItem('kawaii')" src="/client-assets/kawaii/about-icon.png" alt="" class="iconAlt" draggable="false" @load="iconLoaded" @click="gravity"/> | ||
<img v-else src="/client-assets/about-icon.png" alt="" class="icon" draggable="false" @load="iconLoaded" @click="gravity"/> | ||
<Mfm v-if="miLocalStorage.getItem('kawaii')" text="Logo by @[email protected]" class="iconCredit"/> | ||
<div class="misskey">Misskey</div> | ||
<div class="version">v{{ version }}</div> | ||
<span v-for="emoji in easterEggEmojis" :key="emoji.id" class="emoji" :data-physics-x="emoji.left" :data-physics-y="emoji.top" :class="{ _physics_circle_: !emoji.emoji.startsWith(':') }"> | ||
|
@@ -137,6 +139,7 @@ import { physics } from '@/scripts/physics.js'; | |
import { i18n } from '@/i18n.js'; | ||
import { instance } from '@/instance.js'; | ||
import { defaultStore } from '@/store.js'; | ||
import { miLocalStorage } from '@/local-storage.js'; | ||
import * as os from '@/os.js'; | ||
import { definePageMetadata } from '@/scripts/page-metadata.js'; | ||
import { claimAchievement, claimedAchievements } from '@/scripts/achievements.js'; | ||
|
@@ -443,6 +446,21 @@ definePageMetadata(() => ({ | |
z-index: 1; | ||
} | ||
|
||
> .iconAlt { | ||
display: block; | ||
width: 85%; | ||
margin: 0 auto; | ||
position: relative; | ||
z-index: 1; | ||
} | ||
|
||
> .iconCredit { | ||
margin: 0 auto; | ||
width: max-content; | ||
position: relative; | ||
z-index: 1; | ||
} | ||
|
||
> .misskey { | ||
margin: 0.75em auto 0 auto; | ||
width: max-content; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,9 @@ SPDX-License-Identifier: AGPL-3.0-only | |
<div class="_gaps_m"> | ||
<div :class="$style.banner" :style="{ backgroundImage: `url(${ instance.bannerUrl })` }"> | ||
<div style="overflow: clip;"> | ||
<img :src="instance.iconUrl ?? instance.faviconUrl ?? '/favicon.ico'" alt="" :class="$style.bannerIcon"/> | ||
<img v-if="miLocalStorage.getItem('kawaii')" src="/client-assets/kawaii/misskey-io.png" alt="" :class="$style.bannerIconAlt"/> | ||
<img v-else :src="instance.iconUrl ?? instance.faviconUrl ?? '/favicon.ico'" alt="" :class="$style.bannerIcon"/> | ||
<Mfm v-if="miLocalStorage.getItem('kawaii')" text="Logo by @[email protected]" :class="$style.iconCredit"/> | ||
<div :class="$style.bannerName"> | ||
<b>{{ instance.name ?? host }}</b> | ||
</div> | ||
|
@@ -168,6 +170,7 @@ import { i18n } from '@/i18n.js'; | |
import { definePageMetadata } from '@/scripts/page-metadata.js'; | ||
import { claimAchievement } from '@/scripts/achievements.js'; | ||
import { instance } from '@/instance.js'; | ||
import { miLocalStorage } from '@/local-storage.js'; | ||
|
||
const props = withDefaults(defineProps<{ | ||
initialTab?: string; | ||
|
@@ -230,6 +233,12 @@ definePageMetadata(() => ({ | |
border-radius: 8px; | ||
} | ||
|
||
.bannerIconAlt { | ||
display: block; | ||
margin: 16px auto 0 auto; | ||
width: 85%; | ||
} | ||
|
||
.bannerName { | ||
display: block; | ||
padding: 16px; | ||
|
@@ -238,6 +247,13 @@ definePageMetadata(() => ({ | |
background: linear-gradient(transparent, rgba(0, 0, 0, 0.7)); | ||
} | ||
|
||
> .iconCredit { | ||
margin: 0 auto; | ||
width: max-content; | ||
position: relative; | ||
z-index: 1; | ||
} | ||
|
||
.rules { | ||
counter-reset: item; | ||
list-style: none; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters