2020-01-29 20:37:25 +01:00
|
|
|
<template>
|
2021-04-17 04:40:47 +02:00
|
|
|
<transition name="fade" mode="out-in">
|
|
|
|
<div class="ftskorzw wide" v-if="user && narrow === false">
|
2021-04-10 11:17:42 +02:00
|
|
|
<MkRemoteCaution v-if="user.host != null" :href="user.url" class="_gap"/>
|
2020-11-29 04:46:05 +01:00
|
|
|
|
2021-04-10 11:17:42 +02:00
|
|
|
<div class="banner-container _gap" :style="style">
|
2020-11-28 16:43:03 +01:00
|
|
|
<div class="banner" ref="banner" :style="style"></div>
|
2020-11-28 16:18:54 +01:00
|
|
|
</div>
|
2020-11-28 16:43:03 +01:00
|
|
|
<div class="contents">
|
|
|
|
<div class="side _forceContainerFull_">
|
2021-04-17 16:52:54 +02:00
|
|
|
<MkAvatar class="avatar" :user="user" :disable-preview="true" :show-indicator="true"/>
|
2020-11-28 16:43:03 +01:00
|
|
|
<div class="name">
|
|
|
|
<MkUserName :user="user" :nowrap="false" class="name"/>
|
|
|
|
<MkAcct :user="user" :detail="true" class="acct"/>
|
2020-10-17 13:12:00 +02:00
|
|
|
</div>
|
2020-12-26 02:47:36 +01:00
|
|
|
<div class="followed" v-if="$i && $i.id != user.id && user.isFollowed"><span>{{ $ts.followsYou }}</span></div>
|
2020-11-28 16:43:03 +01:00
|
|
|
<div class="status">
|
|
|
|
<MkA :to="userPage(user)" :class="{ active: page === 'index' }">
|
|
|
|
<b>{{ number(user.notesCount) }}</b>
|
2020-12-26 02:47:36 +01:00
|
|
|
<span>{{ $ts.notes }}</span>
|
2020-11-28 16:43:03 +01:00
|
|
|
</MkA>
|
|
|
|
<MkA :to="userPage(user, 'following')" :class="{ active: page === 'following' }">
|
|
|
|
<b>{{ number(user.followingCount) }}</b>
|
2020-12-26 02:47:36 +01:00
|
|
|
<span>{{ $ts.following }}</span>
|
2020-11-28 16:43:03 +01:00
|
|
|
</MkA>
|
|
|
|
<MkA :to="userPage(user, 'followers')" :class="{ active: page === 'followers' }">
|
|
|
|
<b>{{ number(user.followersCount) }}</b>
|
2020-12-26 02:47:36 +01:00
|
|
|
<span>{{ $ts.followers }}</span>
|
2020-11-28 16:43:03 +01:00
|
|
|
</MkA>
|
|
|
|
</div>
|
|
|
|
<div class="description">
|
2020-12-19 02:55:52 +01:00
|
|
|
<Mfm v-if="user.description" :text="user.description" :is-note="false" :author="user" :i="$i" :custom-emojis="user.emojis"/>
|
2020-12-26 02:47:36 +01:00
|
|
|
<p v-else class="empty">{{ $ts.noAccountDescription }}</p>
|
2020-10-17 13:12:00 +02:00
|
|
|
</div>
|
2020-11-28 16:43:03 +01:00
|
|
|
<div class="fields system">
|
|
|
|
<dl class="field" v-if="user.location">
|
2021-04-20 16:22:59 +02:00
|
|
|
<dt class="name"><i class="fas fa-map-marker fa-fw"></i> {{ $ts.location }}</dt>
|
2020-11-28 16:43:03 +01:00
|
|
|
<dd class="value">{{ user.location }}</dd>
|
|
|
|
</dl>
|
|
|
|
<dl class="field" v-if="user.birthday">
|
2021-04-20 16:22:59 +02:00
|
|
|
<dt class="name"><i class="fas fa-birthday-cake fa-fw"></i> {{ $ts.birthday }}</dt>
|
2020-11-28 16:43:03 +01:00
|
|
|
<dd class="value">{{ user.birthday.replace('-', '/').replace('-', '/') }} ({{ $t('yearsOld', { age }) }})</dd>
|
|
|
|
</dl>
|
|
|
|
<dl class="field">
|
2021-04-20 16:22:59 +02:00
|
|
|
<dt class="name"><i class="fas fa-calendar-alt fa-fw"></i> {{ $ts.registeredDate }}</dt>
|
2020-11-28 16:43:03 +01:00
|
|
|
<dd class="value">{{ new Date(user.createdAt).toLocaleString() }} (<MkTime :time="user.createdAt"/>)</dd>
|
|
|
|
</dl>
|
2020-11-25 13:31:34 +01:00
|
|
|
</div>
|
2020-11-28 16:43:03 +01:00
|
|
|
<div class="fields" v-if="user.fields.length > 0">
|
|
|
|
<dl class="field" v-for="(field, i) in user.fields" :key="i">
|
|
|
|
<dt class="name">
|
|
|
|
<Mfm :text="field.name" :plain="true" :custom-emojis="user.emojis" :colored="false"/>
|
|
|
|
</dt>
|
|
|
|
<dd class="value">
|
2020-12-19 02:55:52 +01:00
|
|
|
<Mfm :text="field.value" :author="user" :i="$i" :custom-emojis="user.emojis" :colored="false"/>
|
2020-11-28 16:43:03 +01:00
|
|
|
</dd>
|
|
|
|
</dl>
|
|
|
|
</div>
|
2021-04-10 11:17:42 +02:00
|
|
|
<XActivity :user="user" :key="user.id" class="_gap"/>
|
|
|
|
<XPhotos :user="user" :key="user.id" class="_gap"/>
|
2020-11-28 16:43:03 +01:00
|
|
|
</div>
|
|
|
|
<div class="main">
|
2021-04-10 11:17:42 +02:00
|
|
|
<div class="nav _gap">
|
2020-11-28 16:43:03 +01:00
|
|
|
<MkA :to="userPage(user)" :class="{ active: page === 'index' }" class="link">
|
2021-04-20 16:22:59 +02:00
|
|
|
<i class="fas fa-comment-alt icon"></i>
|
2020-12-26 02:47:36 +01:00
|
|
|
<span>{{ $ts.notes }}</span>
|
2020-11-28 16:43:03 +01:00
|
|
|
</MkA>
|
|
|
|
<MkA :to="userPage(user, 'clips')" :class="{ active: page === 'clips' }" class="link">
|
2021-04-20 16:22:59 +02:00
|
|
|
<i class="fas fa-paperclip icon"></i>
|
2020-12-26 02:47:36 +01:00
|
|
|
<span>{{ $ts.clips }}</span>
|
2020-11-28 16:43:03 +01:00
|
|
|
</MkA>
|
|
|
|
<MkA :to="userPage(user, 'pages')" :class="{ active: page === 'pages' }" class="link">
|
2021-04-20 16:22:59 +02:00
|
|
|
<i class="fas fa-file-alt icon"></i>
|
2020-12-26 02:47:36 +01:00
|
|
|
<span>{{ $ts.pages }}</span>
|
2020-11-28 16:43:03 +01:00
|
|
|
</MkA>
|
|
|
|
<div class="actions">
|
2021-04-20 16:22:59 +02:00
|
|
|
<button @click="menu" class="menu _button"><i class="fas fa-ellipsis-h"></i></button>
|
2020-12-19 02:55:52 +01:00
|
|
|
<MkFollowButton v-if="!$i || $i.id != user.id" :user="user" :inline="true" :transparent="false" :full="true" large class="koudoku"/>
|
2020-11-28 16:43:03 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<template v-if="page === 'index'">
|
2021-04-10 11:17:42 +02:00
|
|
|
<div v-if="user.pinnedNotes.length > 0" class="_gap">
|
|
|
|
<XNote v-for="note in user.pinnedNotes" class="note _gap" :note="note" @update:note="pinnedNoteUpdated(note, $event)" :key="note.id" :pinned="true"/>
|
2020-11-28 16:43:03 +01:00
|
|
|
</div>
|
2021-04-10 11:17:42 +02:00
|
|
|
<div class="_gap">
|
2020-11-28 16:43:03 +01:00
|
|
|
<XUserTimeline :user="user"/>
|
|
|
|
</div>
|
|
|
|
</template>
|
2021-04-10 11:17:42 +02:00
|
|
|
<XFollowList v-else-if="page === 'following'" type="following" :user="user" class="_gap"/>
|
|
|
|
<XFollowList v-else-if="page === 'followers'" type="followers" :user="user" class="_gap"/>
|
|
|
|
<XClips v-else-if="page === 'clips'" :user="user" class="_gap"/>
|
|
|
|
<XPages v-else-if="page === 'pages'" :user="user" class="_gap"/>
|
2020-11-28 16:43:03 +01:00
|
|
|
</div>
|
2020-10-17 13:12:00 +02:00
|
|
|
</div>
|
2020-11-25 13:31:34 +01:00
|
|
|
</div>
|
2021-04-10 05:40:50 +02:00
|
|
|
<div class="ftskorzw narrow _root" v-else-if="user && narrow === true" v-size="{ max: [500] }">
|
2020-11-28 16:43:03 +01:00
|
|
|
<!-- TODO -->
|
2021-04-20 16:22:59 +02:00
|
|
|
<!-- <div class="punished" v-if="user.isSuspended"><i class="fas fa-exclamation-triangle" style="margin-right: 8px;"></i> {{ $ts.userSuspended }}</div> -->
|
|
|
|
<!-- <div class="punished" v-if="user.isSilenced"><i class="fas fa-exclamation-triangle" style="margin-right: 8px;"></i> {{ $ts.userSilenced }}</div> -->
|
2020-11-28 16:43:03 +01:00
|
|
|
|
2021-04-10 05:40:50 +02:00
|
|
|
<div class="profile">
|
2021-04-13 05:43:19 +02:00
|
|
|
<MkRemoteCaution v-if="user.host != null" :href="user.url" class="warn"/>
|
2020-11-28 16:43:03 +01:00
|
|
|
|
2021-04-13 05:43:19 +02:00
|
|
|
<div class="_block main" :key="user.id">
|
2020-11-28 16:43:03 +01:00
|
|
|
<div class="banner-container" :style="style">
|
|
|
|
<div class="banner" ref="banner" :style="style"></div>
|
|
|
|
<div class="fade"></div>
|
|
|
|
<div class="title">
|
|
|
|
<MkUserName class="name" :user="user" :nowrap="true"/>
|
|
|
|
<div class="bottom">
|
|
|
|
<span class="username"><MkAcct :user="user" :detail="true" /></span>
|
2021-04-20 16:22:59 +02:00
|
|
|
<span v-if="user.isAdmin" :title="$ts.isAdmin" style="color: var(--badge);"><i class="fas fa-bookmark"></i></span>
|
|
|
|
<span v-if="!user.isAdmin && user.isModerator" :title="$ts.isModerator" style="color: var(--badge);"><i class="far fa-bookmark"></i></span>
|
|
|
|
<span v-if="user.isLocked" :title="$ts.isLocked"><i class="fas fa-lock"></i></span>
|
|
|
|
<span v-if="user.isBot" :title="$ts.isBot"><i class="fas fa-robot"></i></span>
|
2020-11-28 16:43:03 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2020-12-26 02:47:36 +01:00
|
|
|
<span class="followed" v-if="$i && $i.id != user.id && user.isFollowed">{{ $ts.followsYou }}</span>
|
2020-12-19 02:55:52 +01:00
|
|
|
<div class="actions" v-if="$i">
|
2021-04-20 16:22:59 +02:00
|
|
|
<button @click="menu" class="menu _button"><i class="fas fa-ellipsis-h"></i></button>
|
2020-12-19 02:55:52 +01:00
|
|
|
<MkFollowButton v-if="$i.id != user.id" :user="user" :inline="true" :transparent="false" :full="true" class="koudoku"/>
|
2020-11-28 16:43:03 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2021-04-17 16:52:54 +02:00
|
|
|
<MkAvatar class="avatar" :user="user" :disable-preview="true" :show-indicator="true"/>
|
2020-11-28 16:18:54 +01:00
|
|
|
<div class="title">
|
2020-11-28 16:43:03 +01:00
|
|
|
<MkUserName :user="user" :nowrap="false" class="name"/>
|
2020-11-28 16:18:54 +01:00
|
|
|
<div class="bottom">
|
|
|
|
<span class="username"><MkAcct :user="user" :detail="true" /></span>
|
2021-04-20 16:22:59 +02:00
|
|
|
<span v-if="user.isAdmin" :title="$ts.isAdmin" style="color: var(--badge);"><i class="fas fa-bookmark"></i></span>
|
|
|
|
<span v-if="!user.isAdmin && user.isModerator" :title="$ts.isModerator" style="color: var(--badge);"><i class="far fa-bookmark"></i></span>
|
|
|
|
<span v-if="user.isLocked" :title="$ts.isLocked"><i class="fas fa-lock"></i></span>
|
|
|
|
<span v-if="user.isBot" :title="$ts.isBot"><i class="fas fa-robot"></i></span>
|
2020-11-28 16:18:54 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2020-11-28 16:43:03 +01:00
|
|
|
<div class="description">
|
2020-12-19 02:55:52 +01:00
|
|
|
<Mfm v-if="user.description" :text="user.description" :is-note="false" :author="user" :i="$i" :custom-emojis="user.emojis"/>
|
2020-12-26 02:47:36 +01:00
|
|
|
<p v-else class="empty">{{ $ts.noAccountDescription }}</p>
|
2020-11-28 16:18:54 +01:00
|
|
|
</div>
|
2020-11-28 16:43:03 +01:00
|
|
|
<div class="fields system">
|
|
|
|
<dl class="field" v-if="user.location">
|
2021-04-20 16:22:59 +02:00
|
|
|
<dt class="name"><i class="fas fa-map-marker fa-fw"></i> {{ $ts.location }}</dt>
|
2020-11-28 16:43:03 +01:00
|
|
|
<dd class="value">{{ user.location }}</dd>
|
|
|
|
</dl>
|
|
|
|
<dl class="field" v-if="user.birthday">
|
2021-04-20 16:22:59 +02:00
|
|
|
<dt class="name"><i class="fas fa-birthday-cake fa-fw"></i> {{ $ts.birthday }}</dt>
|
2020-11-28 16:43:03 +01:00
|
|
|
<dd class="value">{{ user.birthday.replace('-', '/').replace('-', '/') }} ({{ $t('yearsOld', { age }) }})</dd>
|
|
|
|
</dl>
|
|
|
|
<dl class="field">
|
2021-04-20 16:22:59 +02:00
|
|
|
<dt class="name"><i class="fas fa-calendar-alt fa-fw"></i> {{ $ts.registeredDate }}</dt>
|
2020-11-28 16:43:03 +01:00
|
|
|
<dd class="value">{{ new Date(user.createdAt).toLocaleString() }} (<MkTime :time="user.createdAt"/>)</dd>
|
|
|
|
</dl>
|
|
|
|
</div>
|
|
|
|
<div class="fields" v-if="user.fields.length > 0">
|
|
|
|
<dl class="field" v-for="(field, i) in user.fields" :key="i">
|
|
|
|
<dt class="name">
|
|
|
|
<Mfm :text="field.name" :plain="true" :custom-emojis="user.emojis" :colored="false"/>
|
|
|
|
</dt>
|
|
|
|
<dd class="value">
|
2020-12-19 02:55:52 +01:00
|
|
|
<Mfm :text="field.value" :author="user" :i="$i" :custom-emojis="user.emojis" :colored="false"/>
|
2020-11-28 16:43:03 +01:00
|
|
|
</dd>
|
|
|
|
</dl>
|
|
|
|
</div>
|
|
|
|
<div class="status">
|
2021-04-26 03:46:55 +02:00
|
|
|
<MkA :to="userPage(user)" :class="{ active: page === 'index' }" v-click-anime>
|
2020-11-28 16:43:03 +01:00
|
|
|
<b>{{ number(user.notesCount) }}</b>
|
2020-12-26 02:47:36 +01:00
|
|
|
<span>{{ $ts.notes }}</span>
|
2020-11-28 16:43:03 +01:00
|
|
|
</MkA>
|
2021-04-26 03:46:55 +02:00
|
|
|
<MkA :to="userPage(user, 'following')" :class="{ active: page === 'following' }" v-click-anime>
|
2020-11-28 16:43:03 +01:00
|
|
|
<b>{{ number(user.followingCount) }}</b>
|
2020-12-26 02:47:36 +01:00
|
|
|
<span>{{ $ts.following }}</span>
|
2020-11-28 16:43:03 +01:00
|
|
|
</MkA>
|
2021-04-26 03:46:55 +02:00
|
|
|
<MkA :to="userPage(user, 'followers')" :class="{ active: page === 'followers' }" v-click-anime>
|
2020-11-28 16:43:03 +01:00
|
|
|
<b>{{ number(user.followersCount) }}</b>
|
2020-12-26 02:47:36 +01:00
|
|
|
<span>{{ $ts.followers }}</span>
|
2020-11-28 16:43:03 +01:00
|
|
|
</MkA>
|
2020-11-28 16:18:54 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2021-04-10 05:40:50 +02:00
|
|
|
<div class="contents">
|
2021-04-10 11:17:42 +02:00
|
|
|
<div class="nav _gap">
|
2021-04-24 16:04:31 +02:00
|
|
|
<MkA :to="userPage(user)" :class="{ active: page === 'index' }" class="link" v-click-anime>
|
2021-04-20 16:22:59 +02:00
|
|
|
<i class="fas fa-comment-alt icon"></i>
|
2021-04-10 05:40:50 +02:00
|
|
|
<span>{{ $ts.notes }}</span>
|
|
|
|
</MkA>
|
2021-04-24 16:04:31 +02:00
|
|
|
<MkA :to="userPage(user, 'clips')" :class="{ active: page === 'clips' }" class="link" v-click-anime>
|
2021-04-20 16:22:59 +02:00
|
|
|
<i class="fas fa-paperclip icon"></i>
|
2021-04-10 05:40:50 +02:00
|
|
|
<span>{{ $ts.clips }}</span>
|
|
|
|
</MkA>
|
2021-04-24 16:04:31 +02:00
|
|
|
<MkA :to="userPage(user, 'pages')" :class="{ active: page === 'pages' }" class="link" v-click-anime>
|
2021-04-20 16:22:59 +02:00
|
|
|
<i class="fas fa-file-alt icon"></i>
|
2021-04-10 05:40:50 +02:00
|
|
|
<span>{{ $ts.pages }}</span>
|
|
|
|
</MkA>
|
2021-04-24 16:04:31 +02:00
|
|
|
<MkA :to="userPage(user, 'gallery')" :class="{ active: page === 'gallery' }" class="link" v-click-anime>
|
2021-04-24 15:38:24 +02:00
|
|
|
<i class="fas fa-icons icon"></i>
|
|
|
|
<span>{{ $ts.gallery }}</span>
|
|
|
|
</MkA>
|
2021-04-10 05:40:50 +02:00
|
|
|
</div>
|
2020-11-29 09:47:49 +01:00
|
|
|
|
2021-04-10 05:40:50 +02:00
|
|
|
<template v-if="page === 'index'">
|
|
|
|
<div>
|
2021-04-22 15:29:33 +02:00
|
|
|
<div v-if="user.pinnedNotes.length > 0" class="_gap">
|
2021-04-13 05:43:19 +02:00
|
|
|
<XNote v-for="note in user.pinnedNotes" class="note _block" :note="note" @update:note="pinnedNoteUpdated(note, $event)" :key="note.id" :pinned="true"/>
|
2021-04-10 05:40:50 +02:00
|
|
|
</div>
|
2021-04-15 16:38:34 +02:00
|
|
|
<MkInfo v-else-if="$i && $i.id === user.id">{{ $ts.userPagePinTip }}</MkInfo>
|
2021-04-10 05:40:50 +02:00
|
|
|
<XPhotos :user="user" :key="user.id"/>
|
|
|
|
<XActivity :user="user" :key="user.id"/>
|
2020-11-28 16:43:03 +01:00
|
|
|
</div>
|
2021-04-10 05:40:50 +02:00
|
|
|
<div>
|
|
|
|
<XUserTimeline :user="user"/>
|
|
|
|
</div>
|
|
|
|
</template>
|
2021-04-10 11:17:42 +02:00
|
|
|
<XFollowList v-else-if="page === 'following'" type="following" :user="user" class="_content _gap"/>
|
|
|
|
<XFollowList v-else-if="page === 'followers'" type="followers" :user="user" class="_content _gap"/>
|
|
|
|
<XClips v-else-if="page === 'clips'" :user="user" class="_gap"/>
|
|
|
|
<XPages v-else-if="page === 'pages'" :user="user" class="_gap"/>
|
2021-04-24 15:38:24 +02:00
|
|
|
<XGallery v-else-if="page === 'gallery'" :user="user" class="_gap"/>
|
2021-04-10 05:40:50 +02:00
|
|
|
</div>
|
2020-11-28 16:43:03 +01:00
|
|
|
</div>
|
2021-04-17 04:40:47 +02:00
|
|
|
<MkError v-else-if="error" @retry="fetch()"/>
|
|
|
|
<MkLoading v-else/>
|
|
|
|
</transition>
|
2020-01-29 20:37:25 +01:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
2020-10-17 13:12:00 +02:00
|
|
|
import { defineComponent, defineAsyncComponent, computed } from 'vue';
|
2020-01-29 20:37:25 +01:00
|
|
|
import * as age from 's-age';
|
|
|
|
import XUserTimeline from './index.timeline.vue';
|
2021-03-23 09:30:14 +01:00
|
|
|
import XNote from '@client/components/note.vue';
|
|
|
|
import MkFollowButton from '@client/components/follow-button.vue';
|
|
|
|
import MkContainer from '@client/components/ui/container.vue';
|
|
|
|
import MkFolder from '@client/components/ui/folder.vue';
|
|
|
|
import MkRemoteCaution from '@client/components/remote-caution.vue';
|
|
|
|
import MkTab from '@client/components/tab.vue';
|
2021-04-15 16:38:34 +02:00
|
|
|
import MkInfo from '@client/components/ui/info.vue';
|
2021-03-23 09:30:14 +01:00
|
|
|
import Progress from '@client/scripts/loading';
|
2021-07-15 13:45:32 +02:00
|
|
|
import { parseAcct } from '@/misc/acct';
|
2021-03-23 09:30:14 +01:00
|
|
|
import { getScrollPosition } from '@client/scripts/scroll';
|
|
|
|
import { getUserMenu } from '@client/scripts/get-user-menu';
|
2020-10-17 13:12:00 +02:00
|
|
|
import number from '../../filters/number';
|
2020-10-24 18:21:41 +02:00
|
|
|
import { userPage, acct as getAcct } from '../../filters/user';
|
2021-03-23 09:30:14 +01:00
|
|
|
import * as os from '@client/os';
|
2021-04-10 05:54:12 +02:00
|
|
|
import * as symbols from '@client/symbols';
|
2020-01-29 20:37:25 +01:00
|
|
|
|
2020-10-17 13:12:00 +02:00
|
|
|
export default defineComponent({
|
2020-01-29 20:37:25 +01:00
|
|
|
components: {
|
|
|
|
XUserTimeline,
|
|
|
|
XNote,
|
2020-01-31 03:35:18 +01:00
|
|
|
MkFollowButton,
|
2020-01-29 20:37:25 +01:00
|
|
|
MkContainer,
|
2020-03-21 05:07:02 +01:00
|
|
|
MkRemoteCaution,
|
2020-10-17 13:12:00 +02:00
|
|
|
MkFolder,
|
2020-11-28 16:18:54 +01:00
|
|
|
MkTab,
|
2021-04-15 16:38:34 +02:00
|
|
|
MkInfo,
|
2020-10-24 18:21:41 +02:00
|
|
|
XFollowList: defineAsyncComponent(() => import('./follow-list.vue')),
|
2020-11-29 04:34:39 +01:00
|
|
|
XClips: defineAsyncComponent(() => import('./clips.vue')),
|
|
|
|
XPages: defineAsyncComponent(() => import('./pages.vue')),
|
2021-04-24 15:38:24 +02:00
|
|
|
XGallery: defineAsyncComponent(() => import('./gallery.vue')),
|
2020-10-17 13:12:00 +02:00
|
|
|
XPhotos: defineAsyncComponent(() => import('./index.photos.vue')),
|
|
|
|
XActivity: defineAsyncComponent(() => import('./index.activity.vue')),
|
2020-01-29 20:37:25 +01:00
|
|
|
},
|
|
|
|
|
2020-10-24 18:21:41 +02:00
|
|
|
props: {
|
|
|
|
acct: {
|
|
|
|
type: String,
|
|
|
|
required: true
|
|
|
|
},
|
|
|
|
page: {
|
|
|
|
type: String,
|
|
|
|
required: false,
|
|
|
|
default: 'index'
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2020-01-29 20:37:25 +01:00
|
|
|
data() {
|
|
|
|
return {
|
2021-04-10 05:54:12 +02:00
|
|
|
[symbols.PAGE_INFO]: computed(() => this.user ? {
|
2021-04-12 16:07:12 +02:00
|
|
|
title: this.user.name ? `${this.user.name} (@${this.user.username})` : `@${this.user.username}`,
|
2020-11-03 12:36:12 +01:00
|
|
|
userName: this.user,
|
|
|
|
avatar: this.user,
|
2021-04-10 16:52:45 +02:00
|
|
|
path: `/@${this.user.username}`,
|
2021-04-10 05:40:50 +02:00
|
|
|
share: {
|
|
|
|
title: this.user.name,
|
|
|
|
},
|
2021-04-16 16:26:01 +02:00
|
|
|
menu: () => getUserMenu(this.user),
|
2020-10-17 13:12:00 +02:00
|
|
|
} : null),
|
2020-01-29 20:37:25 +01:00
|
|
|
user: null,
|
|
|
|
error: null,
|
|
|
|
parallaxAnimationId: null,
|
2020-11-25 13:31:34 +01:00
|
|
|
narrow: null,
|
2020-01-29 20:37:25 +01:00
|
|
|
};
|
|
|
|
},
|
|
|
|
|
|
|
|
computed: {
|
|
|
|
style(): any {
|
|
|
|
if (this.user.bannerUrl == null) return {};
|
|
|
|
return {
|
|
|
|
backgroundImage: `url(${ this.user.bannerUrl })`
|
|
|
|
};
|
|
|
|
},
|
|
|
|
|
|
|
|
age(): number {
|
|
|
|
return age(this.user.birthday);
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
watch: {
|
2020-10-24 18:21:41 +02:00
|
|
|
acct: 'fetch'
|
2020-01-29 20:37:25 +01:00
|
|
|
},
|
|
|
|
|
|
|
|
created() {
|
|
|
|
this.fetch();
|
|
|
|
},
|
|
|
|
|
|
|
|
mounted() {
|
|
|
|
window.requestAnimationFrame(this.parallaxLoop);
|
2021-04-10 05:40:50 +02:00
|
|
|
this.narrow = true; //this.$el.clientWidth < 1000;
|
2020-10-17 13:12:00 +02:00
|
|
|
},
|
|
|
|
|
|
|
|
beforeUnmount() {
|
|
|
|
window.cancelAnimationFrame(this.parallaxAnimationId);
|
2020-01-29 20:37:25 +01:00
|
|
|
},
|
|
|
|
|
|
|
|
methods: {
|
2020-10-24 18:21:41 +02:00
|
|
|
getAcct,
|
|
|
|
|
2020-01-29 20:37:25 +01:00
|
|
|
fetch() {
|
2020-10-24 18:21:41 +02:00
|
|
|
if (this.acct == null) return;
|
2021-04-17 04:40:47 +02:00
|
|
|
this.user = null;
|
2020-01-29 20:37:25 +01:00
|
|
|
Progress.start();
|
2020-10-24 18:21:41 +02:00
|
|
|
os.api('users/show', parseAcct(this.acct)).then(user => {
|
2020-01-29 20:37:25 +01:00
|
|
|
this.user = user;
|
|
|
|
}).catch(e => {
|
|
|
|
this.error = e;
|
|
|
|
}).finally(() => {
|
|
|
|
Progress.done();
|
|
|
|
});
|
|
|
|
},
|
|
|
|
|
2020-10-17 13:12:00 +02:00
|
|
|
menu(ev) {
|
|
|
|
os.modalMenu(getUserMenu(this.user), ev.currentTarget || ev.target);
|
2020-01-29 20:37:25 +01:00
|
|
|
},
|
|
|
|
|
|
|
|
parallaxLoop() {
|
|
|
|
this.parallaxAnimationId = window.requestAnimationFrame(this.parallaxLoop);
|
|
|
|
this.parallax();
|
|
|
|
},
|
|
|
|
|
|
|
|
parallax() {
|
|
|
|
const banner = this.$refs.banner as any;
|
|
|
|
if (banner == null) return;
|
|
|
|
|
2020-07-11 03:13:11 +02:00
|
|
|
const top = getScrollPosition(this.$el);
|
2020-01-29 20:37:25 +01:00
|
|
|
|
|
|
|
if (top < 0) return;
|
|
|
|
|
|
|
|
const z = 1.75; // 奥行き(小さいほど奥)
|
|
|
|
const pos = -(top / z);
|
|
|
|
banner.style.backgroundPosition = `center calc(50% - ${pos}px)`;
|
|
|
|
},
|
2020-07-29 16:02:59 +02:00
|
|
|
|
|
|
|
pinnedNoteUpdated(oldValue, newValue) {
|
|
|
|
const i = this.user.pinnedNotes.findIndex(n => n === oldValue);
|
2020-10-17 13:12:00 +02:00
|
|
|
this.user.pinnedNotes[i] = newValue;
|
2020-07-29 16:02:59 +02:00
|
|
|
},
|
2020-10-17 13:12:00 +02:00
|
|
|
|
|
|
|
number,
|
|
|
|
|
|
|
|
userPage
|
2020-01-29 20:37:25 +01:00
|
|
|
}
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
2021-04-17 04:40:47 +02:00
|
|
|
.fade-enter-active,
|
|
|
|
.fade-leave-active {
|
|
|
|
transition: opacity 0.125s ease;
|
|
|
|
}
|
|
|
|
.fade-enter-from,
|
|
|
|
.fade-leave-to {
|
|
|
|
opacity: 0;
|
|
|
|
}
|
|
|
|
|
2020-11-28 16:18:54 +01:00
|
|
|
.ftskorzw.wide {
|
|
|
|
max-width: 1150px;
|
2020-11-25 13:31:34 +01:00
|
|
|
margin: 0 auto;
|
|
|
|
|
2020-11-28 16:18:54 +01:00
|
|
|
> .banner-container {
|
|
|
|
position: relative;
|
|
|
|
height: 450px;
|
|
|
|
border-radius: 16px;
|
2021-03-02 14:57:16 +01:00
|
|
|
overflow: hidden;
|
2020-11-28 16:18:54 +01:00
|
|
|
background-size: cover;
|
|
|
|
background-position: center;
|
|
|
|
|
|
|
|
> .banner {
|
|
|
|
height: 100%;
|
|
|
|
background-color: #4c5e6d;
|
|
|
|
background-size: cover;
|
|
|
|
background-position: center;
|
|
|
|
box-shadow: 0 0 128px rgba(0, 0, 0, 0.5) inset;
|
|
|
|
will-change: background-position;
|
2020-11-25 13:31:34 +01:00
|
|
|
}
|
2020-11-28 16:18:54 +01:00
|
|
|
}
|
2020-01-29 20:37:25 +01:00
|
|
|
|
2020-11-28 16:18:54 +01:00
|
|
|
> .contents {
|
|
|
|
display: flex;
|
2020-10-17 13:12:00 +02:00
|
|
|
|
2020-11-28 16:18:54 +01:00
|
|
|
> .side {
|
|
|
|
width: 360px;
|
|
|
|
|
|
|
|
> .avatar {
|
|
|
|
display: block;
|
2020-11-29 09:32:51 +01:00
|
|
|
width: 180px;
|
|
|
|
height: 180px;
|
|
|
|
margin: -130px auto 0 auto;
|
2020-11-28 16:18:54 +01:00
|
|
|
}
|
2020-01-29 20:37:25 +01:00
|
|
|
|
2020-11-28 16:18:54 +01:00
|
|
|
> .name {
|
|
|
|
padding: 16px 0px 20px 0;
|
|
|
|
text-align: center;
|
|
|
|
|
|
|
|
> .name {
|
|
|
|
display: block;
|
2020-11-29 09:32:51 +01:00
|
|
|
font-size: 1.75em;
|
2020-11-28 16:18:54 +01:00
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
> .followed {
|
|
|
|
text-align: center;
|
|
|
|
|
|
|
|
> span {
|
|
|
|
display: inline-block;
|
|
|
|
font-size: 80%;
|
|
|
|
padding: 8px 12px;
|
|
|
|
margin-bottom: 20px;
|
2021-04-10 05:40:50 +02:00
|
|
|
border: solid 0.5px var(--divider);
|
2020-11-28 16:18:54 +01:00
|
|
|
border-radius: 999px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
> .status {
|
|
|
|
display: flex;
|
|
|
|
padding: 20px 16px;
|
2021-04-10 05:40:50 +02:00
|
|
|
border-top: solid 0.5px var(--divider);
|
2020-11-28 16:18:54 +01:00
|
|
|
font-size: 90%;
|
|
|
|
|
|
|
|
> a {
|
|
|
|
flex: 1;
|
|
|
|
text-align: center;
|
|
|
|
|
|
|
|
&.active {
|
|
|
|
color: var(--accent);
|
2020-11-25 13:31:34 +01:00
|
|
|
}
|
2020-01-29 20:37:25 +01:00
|
|
|
|
2020-11-28 16:18:54 +01:00
|
|
|
&:hover {
|
|
|
|
text-decoration: none;
|
2020-11-25 13:31:34 +01:00
|
|
|
}
|
2020-01-29 20:37:25 +01:00
|
|
|
|
2020-11-28 16:18:54 +01:00
|
|
|
> b {
|
|
|
|
display: block;
|
|
|
|
line-height: 16px;
|
2020-10-17 13:12:00 +02:00
|
|
|
}
|
|
|
|
|
2020-11-28 16:18:54 +01:00
|
|
|
> span {
|
|
|
|
font-size: 75%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-11-25 13:31:34 +01:00
|
|
|
|
2020-11-28 16:18:54 +01:00
|
|
|
> .description {
|
|
|
|
padding: 20px 16px;
|
2021-04-10 05:40:50 +02:00
|
|
|
border-top: solid 0.5px var(--divider);
|
2020-11-28 16:18:54 +01:00
|
|
|
font-size: 90%;
|
|
|
|
}
|
|
|
|
|
|
|
|
> .fields {
|
|
|
|
padding: 20px 16px;
|
2021-04-10 05:40:50 +02:00
|
|
|
border-top: solid 0.5px var(--divider);
|
2020-11-28 16:18:54 +01:00
|
|
|
font-size: 90%;
|
|
|
|
|
|
|
|
> .field {
|
|
|
|
display: flex;
|
|
|
|
padding: 0;
|
|
|
|
margin: 0;
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
&:not(:last-child) {
|
|
|
|
margin-bottom: 8px;
|
2020-11-25 13:31:34 +01:00
|
|
|
}
|
|
|
|
|
2020-11-28 16:18:54 +01:00
|
|
|
> .name {
|
|
|
|
width: 30%;
|
2021-03-02 14:57:16 +01:00
|
|
|
overflow: hidden;
|
2020-11-28 16:18:54 +01:00
|
|
|
white-space: nowrap;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
2020-11-25 13:31:34 +01:00
|
|
|
|
2020-11-28 16:18:54 +01:00
|
|
|
> .value {
|
|
|
|
width: 70%;
|
2021-03-02 14:57:16 +01:00
|
|
|
overflow: hidden;
|
2020-11-28 16:18:54 +01:00
|
|
|
white-space: nowrap;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-11-25 13:31:34 +01:00
|
|
|
|
2020-11-28 16:18:54 +01:00
|
|
|
> .main {
|
|
|
|
flex: 1;
|
|
|
|
margin-left: var(--margin);
|
2020-11-29 13:53:21 +01:00
|
|
|
min-width: 0;
|
2020-11-25 13:31:34 +01:00
|
|
|
|
2020-11-28 16:18:54 +01:00
|
|
|
> .nav {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
margin-top: var(--margin);
|
2020-11-29 04:34:39 +01:00
|
|
|
//font-size: 120%;
|
|
|
|
font-weight: bold;
|
2020-11-28 16:18:54 +01:00
|
|
|
|
|
|
|
> .link {
|
|
|
|
display: inline-block;
|
|
|
|
padding: 15px 24px 12px 24px;
|
|
|
|
text-align: center;
|
|
|
|
border-bottom: solid 3px transparent;
|
|
|
|
|
2020-11-29 04:34:39 +01:00
|
|
|
&:hover {
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
|
2020-11-28 16:18:54 +01:00
|
|
|
&.active {
|
|
|
|
color: var(--accent);
|
|
|
|
border-bottom-color: var(--accent);
|
|
|
|
}
|
|
|
|
|
|
|
|
&:not(.active):hover {
|
|
|
|
color: var(--fgHighlighted);
|
|
|
|
}
|
|
|
|
|
|
|
|
> .icon {
|
|
|
|
margin-right: 6px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
> .actions {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
margin-left: auto;
|
|
|
|
|
|
|
|
> .menu {
|
|
|
|
padding: 12px 16px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.ftskorzw.narrow {
|
2020-11-29 03:25:43 +01:00
|
|
|
box-sizing: border-box;
|
2021-04-10 05:40:50 +02:00
|
|
|
overflow: clip;
|
2020-11-29 03:25:43 +01:00
|
|
|
|
2020-11-28 16:18:54 +01:00
|
|
|
> .punished {
|
|
|
|
font-size: 0.8em;
|
|
|
|
padding: 16px;
|
|
|
|
}
|
|
|
|
|
|
|
|
> .profile {
|
2020-11-29 03:25:43 +01:00
|
|
|
|
2020-11-28 16:18:54 +01:00
|
|
|
> .main {
|
|
|
|
position: relative;
|
2021-03-02 14:57:16 +01:00
|
|
|
overflow: hidden;
|
2020-11-28 16:18:54 +01:00
|
|
|
|
|
|
|
> .banner-container {
|
|
|
|
position: relative;
|
|
|
|
height: 250px;
|
2021-03-02 14:57:16 +01:00
|
|
|
overflow: hidden;
|
2020-11-28 16:18:54 +01:00
|
|
|
background-size: cover;
|
|
|
|
background-position: center;
|
|
|
|
|
|
|
|
> .banner {
|
|
|
|
height: 100%;
|
|
|
|
background-color: #4c5e6d;
|
|
|
|
background-size: cover;
|
|
|
|
background-position: center;
|
|
|
|
box-shadow: 0 0 128px rgba(0, 0, 0, 0.5) inset;
|
|
|
|
will-change: background-position;
|
|
|
|
}
|
|
|
|
|
|
|
|
> .fade {
|
|
|
|
position: absolute;
|
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
|
|
|
width: 100%;
|
|
|
|
height: 78px;
|
|
|
|
background: linear-gradient(transparent, rgba(#000, 0.7));
|
|
|
|
}
|
|
|
|
|
|
|
|
> .followed {
|
|
|
|
position: absolute;
|
|
|
|
top: 12px;
|
|
|
|
left: 12px;
|
|
|
|
padding: 4px 8px;
|
|
|
|
color: #fff;
|
|
|
|
background: rgba(0, 0, 0, 0.7);
|
|
|
|
font-size: 0.7em;
|
|
|
|
border-radius: 6px;
|
|
|
|
}
|
|
|
|
|
|
|
|
> .actions {
|
|
|
|
position: absolute;
|
|
|
|
top: 12px;
|
|
|
|
right: 12px;
|
|
|
|
-webkit-backdrop-filter: blur(8px);
|
|
|
|
backdrop-filter: blur(8px);
|
|
|
|
background: rgba(0, 0, 0, 0.2);
|
|
|
|
padding: 8px;
|
|
|
|
border-radius: 24px;
|
|
|
|
|
|
|
|
> .menu {
|
|
|
|
vertical-align: bottom;
|
|
|
|
height: 31px;
|
|
|
|
width: 31px;
|
|
|
|
color: #fff;
|
|
|
|
text-shadow: 0 0 8px #000;
|
|
|
|
font-size: 16px;
|
|
|
|
}
|
|
|
|
|
|
|
|
> .koudoku {
|
|
|
|
margin-left: 4px;
|
|
|
|
vertical-align: bottom;
|
2020-10-17 13:12:00 +02:00
|
|
|
}
|
2020-01-29 20:37:25 +01:00
|
|
|
}
|
|
|
|
|
2020-10-17 13:12:00 +02:00
|
|
|
> .title {
|
2020-11-28 16:18:54 +01:00
|
|
|
position: absolute;
|
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
|
|
|
width: 100%;
|
|
|
|
padding: 0 0 8px 154px;
|
|
|
|
box-sizing: border-box;
|
|
|
|
color: #fff;
|
|
|
|
|
|
|
|
> .name {
|
|
|
|
display: block;
|
|
|
|
margin: 0;
|
|
|
|
line-height: 32px;
|
|
|
|
font-weight: bold;
|
|
|
|
font-size: 1.8em;
|
|
|
|
text-shadow: 0 0 8px #000;
|
|
|
|
}
|
2020-10-17 13:12:00 +02:00
|
|
|
|
|
|
|
> .bottom {
|
|
|
|
> * {
|
|
|
|
display: inline-block;
|
2020-11-28 16:18:54 +01:00
|
|
|
margin-right: 16px;
|
|
|
|
line-height: 20px;
|
2020-10-17 13:12:00 +02:00
|
|
|
opacity: 0.8;
|
2020-11-28 16:18:54 +01:00
|
|
|
|
|
|
|
&.username {
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
2020-10-17 13:12:00 +02:00
|
|
|
}
|
|
|
|
}
|
2020-01-29 20:37:25 +01:00
|
|
|
}
|
2020-11-28 16:18:54 +01:00
|
|
|
}
|
2020-10-17 13:12:00 +02:00
|
|
|
|
2020-11-28 16:18:54 +01:00
|
|
|
> .title {
|
|
|
|
display: none;
|
|
|
|
text-align: center;
|
|
|
|
padding: 50px 8px 16px 8px;
|
|
|
|
font-weight: bold;
|
2021-04-10 05:40:50 +02:00
|
|
|
border-bottom: solid 0.5px var(--divider);
|
2020-11-28 16:18:54 +01:00
|
|
|
|
|
|
|
> .bottom {
|
|
|
|
> * {
|
|
|
|
display: inline-block;
|
|
|
|
margin-right: 8px;
|
|
|
|
opacity: 0.8;
|
|
|
|
}
|
2020-01-29 20:37:25 +01:00
|
|
|
}
|
2020-11-28 16:18:54 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
> .avatar {
|
|
|
|
display: block;
|
|
|
|
position: absolute;
|
|
|
|
top: 170px;
|
|
|
|
left: 16px;
|
|
|
|
z-index: 2;
|
|
|
|
width: 120px;
|
|
|
|
height: 120px;
|
|
|
|
box-shadow: 1px 1px 3px rgba(#000, 0.2);
|
|
|
|
}
|
2020-01-29 20:37:25 +01:00
|
|
|
|
2020-11-28 16:18:54 +01:00
|
|
|
> .description {
|
|
|
|
padding: 24px 24px 24px 154px;
|
|
|
|
font-size: 0.95em;
|
2020-01-29 20:37:25 +01:00
|
|
|
|
2020-11-28 16:18:54 +01:00
|
|
|
> .empty {
|
|
|
|
margin: 0;
|
|
|
|
opacity: 0.5;
|
2020-10-17 13:12:00 +02:00
|
|
|
}
|
2020-11-28 16:18:54 +01:00
|
|
|
}
|
2020-01-29 20:37:25 +01:00
|
|
|
|
2020-11-28 16:18:54 +01:00
|
|
|
> .fields {
|
|
|
|
padding: 24px;
|
|
|
|
font-size: 0.9em;
|
2021-04-10 05:40:50 +02:00
|
|
|
border-top: solid 0.5px var(--divider);
|
2020-01-29 20:37:25 +01:00
|
|
|
|
2020-11-28 16:18:54 +01:00
|
|
|
> .field {
|
|
|
|
display: flex;
|
|
|
|
padding: 0;
|
|
|
|
margin: 0;
|
|
|
|
align-items: center;
|
2020-01-29 20:37:25 +01:00
|
|
|
|
2020-11-28 16:18:54 +01:00
|
|
|
&:not(:last-child) {
|
|
|
|
margin-bottom: 8px;
|
|
|
|
}
|
2020-01-29 20:37:25 +01:00
|
|
|
|
2020-11-28 16:18:54 +01:00
|
|
|
> .name {
|
|
|
|
width: 30%;
|
2021-03-02 14:57:16 +01:00
|
|
|
overflow: hidden;
|
2020-11-28 16:18:54 +01:00
|
|
|
white-space: nowrap;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
font-weight: bold;
|
|
|
|
text-align: center;
|
2020-10-17 13:12:00 +02:00
|
|
|
}
|
2020-01-29 20:37:25 +01:00
|
|
|
|
2020-11-28 16:18:54 +01:00
|
|
|
> .value {
|
|
|
|
width: 70%;
|
2021-03-02 14:57:16 +01:00
|
|
|
overflow: hidden;
|
2020-11-28 16:18:54 +01:00
|
|
|
white-space: nowrap;
|
|
|
|
text-overflow: ellipsis;
|
2020-11-29 03:25:43 +01:00
|
|
|
margin: 0;
|
2020-11-25 13:31:34 +01:00
|
|
|
}
|
2020-01-29 20:37:25 +01:00
|
|
|
}
|
|
|
|
|
2020-11-28 16:18:54 +01:00
|
|
|
&.system > .field > .name {
|
|
|
|
}
|
|
|
|
}
|
2020-01-29 20:37:25 +01:00
|
|
|
|
2020-11-28 16:18:54 +01:00
|
|
|
> .status {
|
|
|
|
display: flex;
|
|
|
|
padding: 24px;
|
2021-04-10 05:40:50 +02:00
|
|
|
border-top: solid 0.5px var(--divider);
|
2020-01-29 20:37:25 +01:00
|
|
|
|
2020-11-28 16:18:54 +01:00
|
|
|
> a {
|
|
|
|
flex: 1;
|
|
|
|
text-align: center;
|
2020-01-29 20:37:25 +01:00
|
|
|
|
2020-11-28 16:18:54 +01:00
|
|
|
&.active {
|
|
|
|
color: var(--accent);
|
|
|
|
}
|
2020-01-29 20:37:25 +01:00
|
|
|
|
2020-11-28 16:18:54 +01:00
|
|
|
&:hover {
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
2020-01-29 20:37:25 +01:00
|
|
|
|
2020-11-28 16:18:54 +01:00
|
|
|
> b {
|
|
|
|
display: block;
|
|
|
|
line-height: 16px;
|
|
|
|
}
|
|
|
|
|
|
|
|
> span {
|
|
|
|
font-size: 70%;
|
2020-10-17 13:12:00 +02:00
|
|
|
}
|
2020-01-29 20:37:25 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-04-10 05:40:50 +02:00
|
|
|
> .contents {
|
|
|
|
> .nav {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
2021-04-24 16:04:31 +02:00
|
|
|
font-size: 90%;
|
2021-04-10 05:40:50 +02:00
|
|
|
|
|
|
|
> .link {
|
|
|
|
flex: 1;
|
|
|
|
display: inline-block;
|
|
|
|
padding: 16px;
|
|
|
|
text-align: center;
|
|
|
|
border-bottom: solid 3px transparent;
|
2020-11-29 09:47:49 +01:00
|
|
|
|
2021-04-10 05:40:50 +02:00
|
|
|
&:hover {
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
2020-11-29 09:47:49 +01:00
|
|
|
|
2021-04-10 05:40:50 +02:00
|
|
|
&.active {
|
|
|
|
color: var(--accent);
|
|
|
|
border-bottom-color: var(--accent);
|
|
|
|
}
|
2020-11-29 09:47:49 +01:00
|
|
|
|
2021-04-10 05:40:50 +02:00
|
|
|
&:not(.active):hover {
|
|
|
|
color: var(--fgHighlighted);
|
|
|
|
}
|
2020-11-29 09:47:49 +01:00
|
|
|
|
2021-04-10 05:40:50 +02:00
|
|
|
> .icon {
|
|
|
|
margin-right: 6px;
|
|
|
|
}
|
2020-11-29 09:47:49 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-04-10 05:40:50 +02:00
|
|
|
> .content {
|
|
|
|
margin-bottom: var(--margin);
|
|
|
|
}
|
2020-01-29 20:37:25 +01:00
|
|
|
}
|
2020-07-11 03:13:11 +02:00
|
|
|
|
|
|
|
&.max-width_500px {
|
2020-11-28 16:43:03 +01:00
|
|
|
> .profile > .main {
|
2020-07-11 03:13:11 +02:00
|
|
|
> .banner-container {
|
|
|
|
height: 140px;
|
|
|
|
|
|
|
|
> .fade {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
> .title {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
> .title {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
|
|
|
> .avatar {
|
|
|
|
top: 90px;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
width: 92px;
|
|
|
|
height: 92px;
|
|
|
|
margin: auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
> .description {
|
|
|
|
padding: 16px;
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
> .fields {
|
|
|
|
padding: 16px;
|
|
|
|
}
|
|
|
|
|
|
|
|
> .status {
|
|
|
|
padding: 16px;
|
|
|
|
}
|
|
|
|
}
|
2020-11-29 09:47:49 +01:00
|
|
|
|
2021-04-10 05:40:50 +02:00
|
|
|
> .contents {
|
|
|
|
> .nav {
|
|
|
|
font-size: 80%;
|
|
|
|
}
|
2020-11-29 09:47:49 +01:00
|
|
|
}
|
2020-07-11 03:13:11 +02:00
|
|
|
}
|
2020-01-29 20:37:25 +01:00
|
|
|
}
|
2021-04-13 05:43:19 +02:00
|
|
|
|
|
|
|
._flat_ .ftskorzw.narrow {
|
|
|
|
> .profile {
|
|
|
|
> .warn {
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
> .main {
|
|
|
|
margin-top: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-01-29 20:37:25 +01:00
|
|
|
</style>
|