2022-07-01 18:55:45 +09:00
|
|
|
<template>
|
2023-04-08 09:01:42 +09:00
|
|
|
<MkSpacer :content-max="narrow ? 800 : 1100">
|
|
|
|
<div
|
|
|
|
ref="rootEl"
|
|
|
|
v-size="{ max: [500] }"
|
|
|
|
class="ftskorzw"
|
|
|
|
:class="{ wide: !narrow }"
|
|
|
|
>
|
|
|
|
<div class="main">
|
|
|
|
<!-- TODO -->
|
|
|
|
<!-- <div class="punished" v-if="user.isSuspended"><i class="ph-warning ph-bold ph-lg" style="margin-right: 8px;"></i> {{ i18n.ts.userSuspended }}</div> -->
|
|
|
|
<!-- <div class="punished" v-if="user.isSilenced"><i class="ph-warning ph-bold ph-lg" style="margin-right: 8px;"></i> {{ i18n.ts.userSilenced }}</div> -->
|
|
|
|
|
|
|
|
<div class="profile">
|
|
|
|
<MkMoved
|
|
|
|
v-if="user.movedToUri"
|
|
|
|
:host="user.movedToUri.host"
|
|
|
|
:acct="user.movedToUri.username"
|
|
|
|
/>
|
|
|
|
<MkRemoteCaution
|
|
|
|
v-if="user.host != null"
|
|
|
|
:href="user.url"
|
|
|
|
class="warn"
|
|
|
|
/>
|
|
|
|
|
|
|
|
<div :key="user.id" class="_block main">
|
|
|
|
<div class="banner-container" :style="style">
|
|
|
|
<div
|
|
|
|
ref="bannerEl"
|
|
|
|
class="banner"
|
|
|
|
:style="style"
|
|
|
|
></div>
|
|
|
|
<div class="fade"></div>
|
|
|
|
<div class="title">
|
|
|
|
<div class="nameCollumn">
|
|
|
|
<MkUserName
|
|
|
|
class="name"
|
|
|
|
:user="user"
|
|
|
|
:nowrap="true"
|
|
|
|
/>
|
|
|
|
<span
|
|
|
|
v-if="
|
|
|
|
$i &&
|
|
|
|
$i.id != user.id &&
|
|
|
|
user.isFollowed
|
|
|
|
"
|
|
|
|
class="followed"
|
|
|
|
>{{ i18n.ts.followsYou }}</span
|
|
|
|
>
|
|
|
|
</div>
|
|
|
|
<div class="bottom">
|
|
|
|
<span class="username"
|
|
|
|
><MkAcct :user="user" :detail="true"
|
|
|
|
/></span>
|
|
|
|
<span
|
|
|
|
v-if="user.isAdmin"
|
|
|
|
:title="i18n.ts.isAdmin"
|
|
|
|
style="color: var(--badge)"
|
|
|
|
><i
|
|
|
|
class="ph-bookmark-simple ph-fill ph-lg"
|
|
|
|
></i
|
|
|
|
></span>
|
|
|
|
<span
|
|
|
|
v-if="!user.isAdmin && user.isModerator"
|
|
|
|
:title="i18n.ts.isModerator"
|
|
|
|
style="color: var(--badge)"
|
|
|
|
><i
|
|
|
|
class="ph-bookmark-simple ph-bold"
|
|
|
|
></i
|
|
|
|
></span>
|
|
|
|
<span
|
|
|
|
v-if="user.isLocked"
|
|
|
|
:title="i18n.ts.isLocked"
|
|
|
|
><i class="ph-lock ph-bold ph-lg"></i
|
|
|
|
></span>
|
|
|
|
<span
|
|
|
|
v-if="user.isBot"
|
|
|
|
:title="i18n.ts.isBot"
|
|
|
|
><i class="ph-robot ph-bold ph-lg"></i
|
|
|
|
></span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<MkAvatar
|
|
|
|
class="avatar"
|
|
|
|
:user="user"
|
|
|
|
:disable-preview="true"
|
|
|
|
:show-indicator="true"
|
|
|
|
/>
|
2022-07-01 18:55:45 +09:00
|
|
|
<div class="title">
|
2022-12-16 03:13:36 +09:00
|
|
|
<div class="nameCollumn">
|
2023-04-08 09:01:42 +09:00
|
|
|
<MkUserName
|
|
|
|
class="name"
|
|
|
|
:user="user"
|
|
|
|
:nowrap="true"
|
|
|
|
/>
|
|
|
|
<span
|
|
|
|
v-if="
|
|
|
|
$i &&
|
|
|
|
$i.id != user.id &&
|
|
|
|
user.isFollowed
|
|
|
|
"
|
|
|
|
class="followed"
|
|
|
|
>{{ i18n.ts.followsYou }}</span
|
|
|
|
>
|
2022-12-16 03:13:36 +09:00
|
|
|
</div>
|
2022-07-01 18:55:45 +09:00
|
|
|
<div class="bottom">
|
2023-04-08 09:01:42 +09:00
|
|
|
<span class="username"
|
|
|
|
><MkAcct :user="user" :detail="true"
|
|
|
|
/></span>
|
|
|
|
<span
|
|
|
|
v-if="user.isAdmin"
|
|
|
|
:title="i18n.ts.isAdmin"
|
|
|
|
style="color: var(--badge)"
|
|
|
|
><i
|
|
|
|
class="ph-bookmark-simple ph-fill ph-lg"
|
|
|
|
></i
|
|
|
|
></span>
|
|
|
|
<span
|
|
|
|
v-if="!user.isAdmin && user.isModerator"
|
|
|
|
:title="i18n.ts.isModerator"
|
|
|
|
style="color: var(--badge)"
|
|
|
|
><i class="ph-bookmark-simple ph-bold"></i
|
|
|
|
></span>
|
|
|
|
<span
|
|
|
|
v-if="user.isLocked"
|
|
|
|
:title="i18n.ts.isLocked"
|
|
|
|
><i class="ph-lock ph-bold ph-lg"></i
|
|
|
|
></span>
|
|
|
|
<span v-if="user.isBot" :title="i18n.ts.isBot"
|
|
|
|
><i class="ph-robot ph-bold ph-lg"></i
|
|
|
|
></span>
|
2022-07-01 18:55:45 +09:00
|
|
|
</div>
|
|
|
|
</div>
|
2023-04-08 09:01:42 +09:00
|
|
|
<div class="follow-container">
|
|
|
|
<div class="actions">
|
|
|
|
<MkFollowButton
|
|
|
|
v-if="$i != null && $i.id != user.id"
|
|
|
|
:user="user"
|
|
|
|
@refresh="emit('refresh')"
|
|
|
|
:inline="true"
|
|
|
|
:transparent="false"
|
|
|
|
:full="!narrow"
|
|
|
|
class="koudoku"
|
|
|
|
/>
|
|
|
|
<button class="menu _button" @click="menu">
|
|
|
|
<i
|
|
|
|
class="ph-dots-three-outline ph-bold ph-lg"
|
|
|
|
></i>
|
|
|
|
</button>
|
|
|
|
<!-- <MkFollowButton v-else-if="$i == null" :user="user" :remote="true" :inline="true" :transparent="false" :full="true" class="koudoku"/> -->
|
|
|
|
</div>
|
2022-12-16 03:13:36 +09:00
|
|
|
</div>
|
2023-04-08 09:01:42 +09:00
|
|
|
<div class="description">
|
|
|
|
<Mfm
|
|
|
|
v-if="user.description"
|
|
|
|
:text="user.description"
|
|
|
|
:is-note="false"
|
|
|
|
:author="user"
|
|
|
|
:i="$i"
|
|
|
|
:custom-emojis="user.emojis"
|
|
|
|
/>
|
|
|
|
<p v-else class="empty">
|
|
|
|
{{ i18n.ts.noAccountDescription }}
|
|
|
|
</p>
|
2022-07-01 18:55:45 +09:00
|
|
|
</div>
|
2023-04-08 09:01:42 +09:00
|
|
|
<div class="fields system">
|
|
|
|
<dl v-if="user.location" class="field">
|
|
|
|
<dt class="name">
|
|
|
|
<i
|
|
|
|
class="ph-map-pin ph-bold ph-lg ph-fw ph-lg"
|
|
|
|
></i>
|
|
|
|
{{ i18n.ts.location }}
|
|
|
|
</dt>
|
|
|
|
<dd class="value">
|
|
|
|
{{ user.location }}{{ timeForThem }}
|
|
|
|
</dd>
|
|
|
|
</dl>
|
|
|
|
<dl v-if="user.birthday" class="field">
|
|
|
|
<dt class="name">
|
|
|
|
<i
|
|
|
|
class="ph-cake ph-bold ph-lg ph-fw ph-lg"
|
|
|
|
></i>
|
|
|
|
{{ i18n.ts.birthday }}
|
|
|
|
</dt>
|
|
|
|
<dd class="value">
|
|
|
|
{{
|
|
|
|
user.birthday
|
|
|
|
.replace("-", "/")
|
|
|
|
.replace("-", "/")
|
|
|
|
}}
|
|
|
|
({{ i18n.t("yearsOld", { age }) }})
|
|
|
|
</dd>
|
|
|
|
</dl>
|
|
|
|
<dl class="field">
|
|
|
|
<dt class="name">
|
|
|
|
<i
|
|
|
|
class="ph-calendar-blank ph-bold ph-lg ph-fw ph-lg"
|
|
|
|
></i>
|
|
|
|
{{ i18n.ts.registeredDate }}
|
|
|
|
</dt>
|
|
|
|
<dd class="value">
|
|
|
|
{{
|
|
|
|
new Date(
|
|
|
|
user.createdAt
|
|
|
|
).toLocaleString()
|
|
|
|
}}
|
|
|
|
(<MkTime :time="user.createdAt" />)
|
|
|
|
</dd>
|
|
|
|
</dl>
|
|
|
|
</div>
|
|
|
|
<div v-if="user.fields.length > 0" class="fields">
|
|
|
|
<dl
|
|
|
|
v-for="(field, i) in user.fields"
|
|
|
|
:key="i"
|
|
|
|
class="field"
|
|
|
|
>
|
|
|
|
<dt class="name">
|
|
|
|
<Mfm
|
|
|
|
:text="field.name"
|
|
|
|
:plain="true"
|
|
|
|
:custom-emojis="user.emojis"
|
|
|
|
:colored="false"
|
|
|
|
/>
|
|
|
|
</dt>
|
|
|
|
<dd class="value">
|
|
|
|
<Mfm
|
|
|
|
:text="field.value"
|
|
|
|
:author="user"
|
|
|
|
:i="$i"
|
|
|
|
:custom-emojis="user.emojis"
|
|
|
|
:colored="false"
|
|
|
|
/>
|
|
|
|
</dd>
|
|
|
|
</dl>
|
|
|
|
</div>
|
|
|
|
<div class="status">
|
|
|
|
<MkA
|
|
|
|
v-click-anime
|
|
|
|
:to="userPage(user)"
|
|
|
|
:class="{ active: page === 'index' }"
|
|
|
|
>
|
|
|
|
<b>{{ number(user.notesCount) }}</b>
|
|
|
|
<span>{{ i18n.ts.notes }}</span>
|
|
|
|
</MkA>
|
|
|
|
<MkA
|
|
|
|
v-click-anime
|
|
|
|
:to="userPage(user, 'following')"
|
|
|
|
:class="{ active: page === 'following' }"
|
|
|
|
>
|
|
|
|
<b>{{ number(user.followingCount) }}</b>
|
|
|
|
<span>{{ i18n.ts.following }}</span>
|
|
|
|
</MkA>
|
|
|
|
<MkA
|
|
|
|
v-click-anime
|
|
|
|
:to="userPage(user, 'followers')"
|
|
|
|
:class="{ active: page === 'followers' }"
|
|
|
|
>
|
|
|
|
<b>{{ number(user.followersCount) }}</b>
|
|
|
|
<span>{{ i18n.ts.followers }}</span>
|
|
|
|
</MkA>
|
2022-12-15 05:17:06 +09:00
|
|
|
</div>
|
2022-07-01 18:55:45 +09:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2023-04-08 09:01:42 +09:00
|
|
|
<div class="contents">
|
|
|
|
<div v-if="user.pinnedNotes.length > 0" class="_gap">
|
|
|
|
<XNote
|
|
|
|
v-for="note in user.pinnedNotes"
|
|
|
|
:key="note.id"
|
|
|
|
class="note _block"
|
|
|
|
:note="note"
|
|
|
|
:pinned="true"
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
<MkInfo
|
|
|
|
v-else-if="$i && $i.id === user.id"
|
|
|
|
style="margin: 12px 0"
|
|
|
|
>{{ i18n.ts.userPagePinTip }}</MkInfo
|
|
|
|
>
|
|
|
|
<template v-if="narrow">
|
|
|
|
<XPhotos :key="user.id" :user="user" />
|
|
|
|
<XActivity
|
|
|
|
:key="user.id"
|
|
|
|
:user="user"
|
|
|
|
style="margin-top: var(--margin)"
|
|
|
|
/>
|
|
|
|
</template>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<XUserTimeline :user="user" />
|
2022-07-01 18:55:45 +09:00
|
|
|
</div>
|
|
|
|
</div>
|
2023-04-08 09:01:42 +09:00
|
|
|
<div v-if="!narrow" class="sub">
|
|
|
|
<XPhotos :key="user.id" :user="user" />
|
|
|
|
<XActivity
|
|
|
|
:key="user.id"
|
|
|
|
:user="user"
|
|
|
|
style="margin-top: var(--margin)"
|
|
|
|
/>
|
2022-07-01 18:55:45 +09:00
|
|
|
</div>
|
|
|
|
</div>
|
2023-04-08 09:01:42 +09:00
|
|
|
</MkSpacer>
|
2022-07-01 18:55:45 +09:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts" setup>
|
2023-04-08 09:01:42 +09:00
|
|
|
import { defineAsyncComponent, onMounted, onUnmounted } from "vue";
|
|
|
|
import calcAge from "s-age";
|
|
|
|
import cityTimezones from "city-timezones";
|
|
|
|
import XUserTimeline from "./index.timeline.vue";
|
|
|
|
import type * as misskey from "calckey-js";
|
|
|
|
import XNote from "@/components/MkNote.vue";
|
|
|
|
import MkFollowButton from "@/components/MkFollowButton.vue";
|
|
|
|
import MkRemoteCaution from "@/components/MkRemoteCaution.vue";
|
|
|
|
import MkInfo from "@/components/MkInfo.vue";
|
|
|
|
import MkMoved from "@/components/MkMoved.vue";
|
|
|
|
import { getScrollPosition } from "@/scripts/scroll";
|
|
|
|
import { getUserMenu } from "@/scripts/get-user-menu";
|
|
|
|
import number from "@/filters/number";
|
|
|
|
import { userPage } from "@/filters/user";
|
|
|
|
import * as os from "@/os";
|
|
|
|
import { useRouter } from "@/router";
|
|
|
|
import { i18n } from "@/i18n";
|
|
|
|
import { $i } from "@/account";
|
|
|
|
|
|
|
|
const XPhotos = defineAsyncComponent(() => import("./index.photos.vue"));
|
|
|
|
const XActivity = defineAsyncComponent(() => import("./index.activity.vue"));
|
|
|
|
|
|
|
|
const emit = defineEmits(["refresh"]);
|
|
|
|
const props = withDefaults(
|
|
|
|
defineProps<{
|
|
|
|
user: misskey.entities.UserDetailed;
|
|
|
|
}>(),
|
|
|
|
{}
|
|
|
|
);
|
2022-07-01 18:55:45 +09:00
|
|
|
|
|
|
|
const router = useRouter();
|
|
|
|
|
|
|
|
let parallaxAnimationId = $ref<null | number>(null);
|
|
|
|
let narrow = $ref<null | boolean>(null);
|
|
|
|
let rootEl = $ref<null | HTMLElement>(null);
|
|
|
|
let bannerEl = $ref<null | HTMLElement>(null);
|
|
|
|
|
|
|
|
const style = $computed(() => {
|
|
|
|
if (props.user.bannerUrl == null) return {};
|
|
|
|
return {
|
2023-04-08 09:01:42 +09:00
|
|
|
backgroundImage: `url(${props.user.bannerUrl})`,
|
2022-07-01 18:55:45 +09:00
|
|
|
};
|
|
|
|
});
|
|
|
|
|
|
|
|
const age = $computed(() => {
|
|
|
|
return calcAge(props.user.birthday);
|
|
|
|
});
|
|
|
|
|
2023-02-19 04:33:25 +09:00
|
|
|
const timeForThem = $computed(() => {
|
2023-04-15 00:40:13 +09:00
|
|
|
const maybeCityNames = [
|
|
|
|
props.user.location!,
|
|
|
|
props.user.location!.replace(/[^A-Za-z].*/, ""),
|
|
|
|
props.user.location!.replace(/[^A-Za-z\-\'\.].*/, ""),
|
|
|
|
props.user.location!.replace(/[^A-Za-z0-9\-\'\.\s].*/, ""),
|
|
|
|
];
|
|
|
|
|
|
|
|
for (const city of maybeCityNames) {
|
|
|
|
let tzInfo = cityTimezones.lookupViaCity(city);
|
|
|
|
if (tzInfo.length == 0) continue;
|
|
|
|
|
|
|
|
const tz = tzInfo[0].timezone;
|
|
|
|
const theirTime = new Date().toLocaleString("en-US", {
|
|
|
|
timeZone: tz,
|
|
|
|
hour12: false,
|
|
|
|
});
|
|
|
|
return ` (${theirTime.split(",")[1].trim().split(":")[0]}:${theirTime
|
|
|
|
.split(" ")[1]
|
|
|
|
.slice(-5, -3)})`;
|
|
|
|
}
|
|
|
|
|
|
|
|
return "";
|
2023-04-08 09:01:42 +09:00
|
|
|
});
|
2023-02-19 04:33:25 +09:00
|
|
|
|
2022-07-01 18:55:45 +09:00
|
|
|
function menu(ev) {
|
2023-04-08 09:01:42 +09:00
|
|
|
os.popupMenu(
|
|
|
|
getUserMenu(props.user, router),
|
|
|
|
ev.currentTarget ?? ev.target
|
|
|
|
);
|
2022-07-01 18:55:45 +09:00
|
|
|
}
|
|
|
|
|
|
|
|
function parallaxLoop() {
|
|
|
|
parallaxAnimationId = window.requestAnimationFrame(parallaxLoop);
|
|
|
|
parallax();
|
|
|
|
}
|
|
|
|
|
|
|
|
function parallax() {
|
|
|
|
const banner = bannerEl as any;
|
|
|
|
if (banner == null) return;
|
|
|
|
|
|
|
|
const top = getScrollPosition(rootEl);
|
|
|
|
|
|
|
|
if (top < 0) return;
|
|
|
|
|
|
|
|
const z = 1.75; // 奥行き(小さいほど奥)
|
|
|
|
const pos = -(top / z);
|
|
|
|
banner.style.backgroundPosition = `center calc(50% - ${pos}px)`;
|
|
|
|
}
|
|
|
|
|
|
|
|
onMounted(() => {
|
|
|
|
window.requestAnimationFrame(parallaxLoop);
|
|
|
|
narrow = rootEl!.clientWidth < 1000;
|
|
|
|
});
|
|
|
|
|
|
|
|
onUnmounted(() => {
|
|
|
|
if (parallaxAnimationId) {
|
|
|
|
window.cancelAnimationFrame(parallaxAnimationId);
|
|
|
|
}
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
.ftskorzw {
|
|
|
|
> .main {
|
|
|
|
> .punished {
|
|
|
|
font-size: 0.8em;
|
|
|
|
padding: 16px;
|
|
|
|
}
|
|
|
|
|
|
|
|
> .profile {
|
|
|
|
> .main {
|
|
|
|
position: relative;
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
|
|
> .banner-container {
|
|
|
|
position: relative;
|
|
|
|
height: 250px;
|
|
|
|
overflow: hidden;
|
|
|
|
background-size: cover;
|
|
|
|
background-position: center;
|
|
|
|
|
|
|
|
> .banner {
|
|
|
|
height: 100%;
|
2022-07-26 08:04:30 +09:00
|
|
|
background-color: #26233a;
|
2022-07-01 18:55:45 +09:00
|
|
|
background-size: cover;
|
|
|
|
background-position: center;
|
2023-01-04 10:59:22 +09:00
|
|
|
box-shadow: 0 0 128px var(--shadow) inset;
|
2022-07-01 18:55:45 +09:00
|
|
|
will-change: background-position;
|
2022-07-26 08:04:30 +09:00
|
|
|
|
|
|
|
&::after {
|
|
|
|
content: "";
|
2022-09-18 06:11:02 +09:00
|
|
|
background-image: var(--blur, inherit);
|
2022-07-26 08:04:30 +09:00
|
|
|
position: fixed;
|
|
|
|
inset: 0;
|
|
|
|
background-size: cover;
|
|
|
|
background-position: center;
|
|
|
|
pointer-events: none;
|
2023-04-08 09:01:42 +09:00
|
|
|
opacity: 0.1;
|
2022-09-16 06:55:04 +09:00
|
|
|
filter: var(--blur, blur(10px));
|
2022-07-26 08:04:30 +09:00
|
|
|
}
|
2022-07-01 18:55:45 +09:00
|
|
|
}
|
|
|
|
|
|
|
|
> .fade {
|
|
|
|
position: absolute;
|
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
|
|
|
width: 100%;
|
|
|
|
height: 78px;
|
2023-04-08 09:01:42 +09:00
|
|
|
background: linear-gradient(
|
|
|
|
transparent,
|
|
|
|
rgba(#000, 0.7)
|
|
|
|
);
|
2022-07-01 18:55:45 +09:00
|
|
|
}
|
|
|
|
|
|
|
|
> .followed {
|
|
|
|
position: absolute;
|
2022-12-15 05:17:06 +09:00
|
|
|
top: 10px;
|
|
|
|
left: 120px;
|
2022-07-01 18:55:45 +09:00
|
|
|
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;
|
|
|
|
padding: 8px;
|
|
|
|
border-radius: 24px;
|
|
|
|
|
|
|
|
> .menu {
|
|
|
|
vertical-align: bottom;
|
|
|
|
height: 31px;
|
|
|
|
width: 31px;
|
|
|
|
color: #fff;
|
2023-01-04 11:56:43 +09:00
|
|
|
text-shadow: 0 0 8px var(--shadow);
|
2022-07-01 18:55:45 +09:00
|
|
|
font-size: 16px;
|
|
|
|
}
|
|
|
|
|
2022-12-15 05:17:06 +09:00
|
|
|
> .koudoku {
|
|
|
|
margin-left: 4px;
|
|
|
|
width: 31px;
|
|
|
|
vertical-align: bottom;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
> .title {
|
|
|
|
position: absolute;
|
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
|
|
|
width: 100%;
|
|
|
|
padding: 0 0 8px 154px;
|
|
|
|
box-sizing: border-box;
|
|
|
|
color: #fff;
|
|
|
|
|
2022-12-16 03:13:36 +09:00
|
|
|
> .nameCollumn {
|
2022-12-15 05:17:06 +09:00
|
|
|
display: block;
|
2022-12-16 03:13:36 +09:00
|
|
|
> .name {
|
2023-04-08 09:01:42 +09:00
|
|
|
margin: 0;
|
|
|
|
line-height: 32px;
|
|
|
|
font-weight: bold;
|
|
|
|
font-size: 1.8em;
|
|
|
|
text-shadow: 0 0 8px var(--shadow);
|
|
|
|
}
|
2022-12-15 05:17:06 +09:00
|
|
|
|
2023-04-08 09:01:42 +09:00
|
|
|
> .followed {
|
|
|
|
position: relative;
|
|
|
|
top: -4px;
|
|
|
|
left: 4px;
|
|
|
|
padding: 4px 8px;
|
|
|
|
color: #fff;
|
|
|
|
background: rgba(0, 0, 0, 0.6);
|
|
|
|
font-size: 0.7em;
|
|
|
|
border-radius: 24px;
|
|
|
|
}
|
2022-12-16 03:13:36 +09:00
|
|
|
}
|
|
|
|
|
2022-12-15 05:17:06 +09:00
|
|
|
> .bottom {
|
|
|
|
> * {
|
|
|
|
display: inline-block;
|
|
|
|
margin-right: 16px;
|
|
|
|
line-height: 20px;
|
|
|
|
opacity: 0.8;
|
|
|
|
|
|
|
|
&.username {
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
> .follow-container {
|
|
|
|
position: relative;
|
|
|
|
height: 60px;
|
|
|
|
overflow: hidden;
|
|
|
|
background-size: cover;
|
|
|
|
background-position: center;
|
2023-01-03 22:40:06 +09:00
|
|
|
z-index: 100;
|
2022-12-15 05:17:06 +09:00
|
|
|
|
|
|
|
> .fade {
|
|
|
|
position: absolute;
|
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
|
|
|
width: 100%;
|
|
|
|
height: 78px;
|
2023-04-08 09:01:42 +09:00
|
|
|
background: linear-gradient(
|
|
|
|
transparent,
|
|
|
|
rgba(#000, 0.7)
|
|
|
|
);
|
2022-12-15 05:17:06 +09:00
|
|
|
}
|
|
|
|
|
|
|
|
> .actions {
|
|
|
|
position: absolute;
|
|
|
|
top: 12px;
|
|
|
|
right: 12px;
|
|
|
|
padding: 8px;
|
|
|
|
border-radius: 24px;
|
|
|
|
|
|
|
|
> .menu {
|
|
|
|
vertical-align: bottom;
|
|
|
|
height: 31px;
|
|
|
|
width: 31px;
|
|
|
|
color: --fg;
|
|
|
|
font-size: 16px;
|
|
|
|
}
|
|
|
|
|
2022-07-01 18:55:45 +09:00
|
|
|
> .koudoku {
|
|
|
|
margin-left: 4px;
|
|
|
|
vertical-align: bottom;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
> .title {
|
|
|
|
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;
|
2023-01-04 11:56:43 +09:00
|
|
|
text-shadow: 0 0 8px var(--shadow);
|
2022-07-01 18:55:45 +09:00
|
|
|
}
|
|
|
|
|
|
|
|
> .bottom {
|
|
|
|
> * {
|
|
|
|
display: inline-block;
|
|
|
|
margin-right: 16px;
|
|
|
|
line-height: 20px;
|
|
|
|
opacity: 0.8;
|
|
|
|
|
|
|
|
&.username {
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
> .title {
|
|
|
|
display: none;
|
|
|
|
text-align: center;
|
|
|
|
padding: 50px 8px 16px 8px;
|
|
|
|
font-weight: bold;
|
|
|
|
border-bottom: solid 0.5px var(--divider);
|
|
|
|
|
2022-12-16 03:13:36 +09:00
|
|
|
> .nameCollumn {
|
2023-04-08 09:01:42 +09:00
|
|
|
display: block;
|
|
|
|
> .name {
|
2022-12-15 05:17:06 +09:00
|
|
|
margin: 0;
|
2022-12-16 03:13:36 +09:00
|
|
|
align-content: center;
|
2022-12-15 05:17:06 +09:00
|
|
|
line-height: 32px;
|
|
|
|
font-weight: bold;
|
|
|
|
font-size: 1.8em;
|
2023-01-04 11:56:43 +09:00
|
|
|
text-shadow: 0 0 8px var(--shadow);
|
2022-12-15 05:17:06 +09:00
|
|
|
}
|
|
|
|
|
|
|
|
> .followed {
|
2022-12-16 03:13:36 +09:00
|
|
|
position: relative;
|
|
|
|
top: -4px;
|
|
|
|
left: 4px;
|
2022-12-15 05:17:06 +09:00
|
|
|
padding: 4px 8px;
|
|
|
|
color: #fff;
|
|
|
|
background: rgba(0, 0, 0, 0.6);
|
|
|
|
font-size: 0.7em;
|
|
|
|
border-radius: 24px;
|
|
|
|
}
|
2023-04-08 09:01:42 +09:00
|
|
|
}
|
2022-12-15 05:17:06 +09:00
|
|
|
|
2023-04-08 09:01:42 +09:00
|
|
|
> .followedWindow {
|
|
|
|
position: relative;
|
|
|
|
top: -25px;
|
|
|
|
left: 80px;
|
|
|
|
padding: 4px 8px;
|
|
|
|
color: #fff;
|
|
|
|
background: rgba(0, 0, 0, 0.6);
|
|
|
|
font-size: 0.7em;
|
|
|
|
border-radius: 24px;
|
|
|
|
}
|
2022-12-15 05:17:06 +09:00
|
|
|
|
2022-07-01 18:55:45 +09:00
|
|
|
> .bottom {
|
|
|
|
> * {
|
|
|
|
display: inline-block;
|
|
|
|
margin-right: 8px;
|
|
|
|
opacity: 0.8;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
> .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);
|
|
|
|
}
|
|
|
|
|
|
|
|
> .description {
|
2023-01-03 04:42:36 +09:00
|
|
|
padding: 72px 12px 2px 24px;
|
2022-07-01 18:55:45 +09:00
|
|
|
font-size: 0.95em;
|
2022-12-16 03:13:36 +09:00
|
|
|
top: -65px;
|
|
|
|
position: relative;
|
2022-07-01 18:55:45 +09:00
|
|
|
|
|
|
|
> .empty {
|
|
|
|
margin: 0;
|
|
|
|
opacity: 0.5;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
> .fields {
|
|
|
|
padding: 24px;
|
|
|
|
font-size: 0.9em;
|
|
|
|
border-top: solid 0.5px var(--divider);
|
|
|
|
|
|
|
|
> .field {
|
|
|
|
display: flex;
|
|
|
|
padding: 0;
|
|
|
|
margin: 0;
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
&:not(:last-child) {
|
|
|
|
margin-bottom: 8px;
|
|
|
|
}
|
|
|
|
|
|
|
|
> .name {
|
|
|
|
width: 30%;
|
|
|
|
overflow: hidden;
|
|
|
|
white-space: nowrap;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
font-weight: bold;
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
> .value {
|
|
|
|
width: 70%;
|
|
|
|
overflow: hidden;
|
|
|
|
white-space: nowrap;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.system > .field > .name {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
> .status {
|
|
|
|
display: flex;
|
|
|
|
padding: 24px;
|
|
|
|
border-top: solid 0.5px var(--divider);
|
|
|
|
|
|
|
|
> a {
|
|
|
|
flex: 1;
|
|
|
|
text-align: center;
|
|
|
|
|
|
|
|
&.active {
|
|
|
|
color: var(--accent);
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
> b {
|
|
|
|
display: block;
|
|
|
|
line-height: 16px;
|
|
|
|
}
|
|
|
|
|
|
|
|
> span {
|
|
|
|
font-size: 70%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
> .contents {
|
|
|
|
> .content {
|
|
|
|
margin-bottom: var(--margin);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.max-width_500px {
|
|
|
|
> .main {
|
|
|
|
> .profile > .main {
|
|
|
|
> .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;
|
|
|
|
}
|
2022-12-16 03:13:36 +09:00
|
|
|
|
|
|
|
> .description {
|
2023-04-08 09:01:42 +09:00
|
|
|
top: -55px;
|
2022-12-16 03:13:36 +09:00
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
|
|
|
> .follow-container {
|
|
|
|
overflow: visible !important;
|
|
|
|
> .actions {
|
|
|
|
top: -110px;
|
|
|
|
right: 0px;
|
|
|
|
}
|
|
|
|
}
|
2022-07-01 18:55:45 +09:00
|
|
|
}
|
|
|
|
|
|
|
|
> .contents {
|
|
|
|
> .nav {
|
|
|
|
font-size: 80%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.wide {
|
|
|
|
display: flex;
|
|
|
|
width: 100%;
|
|
|
|
|
|
|
|
> .main {
|
|
|
|
width: 100%;
|
|
|
|
min-width: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
> .sub {
|
|
|
|
max-width: 350px;
|
|
|
|
min-width: 350px;
|
|
|
|
margin-left: var(--margin);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|