fixes & adjustments
This commit is contained in:
parent
0368c4cdb7
commit
d01f337c24
3 changed files with 64 additions and 19 deletions
|
@ -21,6 +21,7 @@
|
||||||
!defaultStore.state.swipeOnDesktop
|
!defaultStore.state.swipeOnDesktop
|
||||||
)
|
)
|
||||||
"
|
"
|
||||||
|
:set-wrapper-size="true"
|
||||||
@swiper="setSwiperRef"
|
@swiper="setSwiperRef"
|
||||||
@slide-change="onSlideChange"
|
@slide-change="onSlideChange"
|
||||||
>
|
>
|
||||||
|
@ -261,15 +262,29 @@ const popularPostsPagination = {
|
||||||
limit: 5,
|
limit: 5,
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss">
|
<style lang="scss" scoped>
|
||||||
#visitor-view {
|
#visitor-view {
|
||||||
margin-top: -55px;
|
margin-top: -55px;
|
||||||
padding-top: 55px;
|
padding-top: 55px;
|
||||||
&::before {
|
|
||||||
content: "";
|
|
||||||
position: absolute;
|
|
||||||
inset: 0;
|
|
||||||
background-image: v-bind("wallpaper");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
// :deep(.swiper-wrapper) {
|
||||||
|
// mask: linear-gradient(to bottom, black 70%, transparent 95%);
|
||||||
|
// padding-block: calc(2.5vw + 55px) 30vh;
|
||||||
|
// margin-top: -55px;
|
||||||
|
// max-height: 100vh;
|
||||||
|
// box-sizing: border-box;
|
||||||
|
// overflow: hidden auto !important;
|
||||||
|
// }
|
||||||
|
// &::before {
|
||||||
|
// content: "";
|
||||||
|
// position: fixed;
|
||||||
|
// inset: 0;
|
||||||
|
// background-repeat: no-repeat;
|
||||||
|
// background-size: cover;
|
||||||
|
// background-position: center;
|
||||||
|
// opacity: .5;
|
||||||
|
// filter: blur(4px);
|
||||||
|
// background-image: v-bind("wallpaper");
|
||||||
|
// }
|
||||||
|
// }
|
||||||
</style>
|
</style>
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
v-if="!isDesktop && mainRouter.currentRoute.value.name !== 'index'"
|
v-if="!isDesktop && mainRouter.currentRoute.value.name !== 'index'"
|
||||||
/>
|
/>
|
||||||
<RouterView />
|
<RouterView />
|
||||||
<footer class="powered-by">
|
<footer class="powered-by" v-if="mainRouter.currentRoute.value.name !== 'index'">
|
||||||
<MkA to="/">
|
<MkA to="/">
|
||||||
<MkInstanceTicker :instance="meta"></MkInstanceTicker>
|
<MkInstanceTicker :instance="meta"></MkInstanceTicker>
|
||||||
<small>{{ i18n.ts.poweredBy }}</small>
|
<small>{{ i18n.ts.poweredBy }}</small>
|
||||||
|
|
|
@ -1,6 +1,13 @@
|
||||||
<template>
|
<template>
|
||||||
<header v-if="mini" class="mini-header">
|
<header v-if="mini" class="mini-header">
|
||||||
<img class="logo" :src="meta.logoImageUrl" />
|
<img
|
||||||
|
class="logo"
|
||||||
|
:src="
|
||||||
|
$instance.iconUrl ||
|
||||||
|
$instance.faviconUrl ||
|
||||||
|
'/favicon.ico'
|
||||||
|
"
|
||||||
|
/>
|
||||||
<h1>
|
<h1>
|
||||||
<MkA to="/" class="link">{{ instanceName }}</MkA>
|
<MkA to="/" class="link">{{ instanceName }}</MkA>
|
||||||
</h1>
|
</h1>
|
||||||
|
@ -11,12 +18,19 @@
|
||||||
</header>
|
</header>
|
||||||
<div class="instance-info-container" v-else :class="{ sticky }">
|
<div class="instance-info-container" v-else :class="{ sticky }">
|
||||||
<header id="instance-info" v-on:scroll.passive="onScroll">
|
<header id="instance-info" v-on:scroll.passive="onScroll">
|
||||||
<div class="banner">
|
<div class="banner" v-if="meta.bannerUrl">
|
||||||
<img :src="meta.backgroundImageUrl" />
|
<img :src="meta.bannerUrl" />
|
||||||
</div>
|
</div>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<div class="header">
|
<div class="header">
|
||||||
<img class="logo" :src="meta.logoImageUrl" />
|
<img
|
||||||
|
class="logo"
|
||||||
|
:src="
|
||||||
|
$instance.iconUrl ||
|
||||||
|
$instance.faviconUrl ||
|
||||||
|
'/favicon.ico'
|
||||||
|
"
|
||||||
|
/>
|
||||||
<h1>
|
<h1>
|
||||||
<MkA to="/" class="link">{{ instanceName }}</MkA>
|
<MkA to="/" class="link">{{ instanceName }}</MkA>
|
||||||
</h1>
|
</h1>
|
||||||
|
@ -64,7 +78,7 @@
|
||||||
{{ i18n.ts.findAnotherInstance }}
|
{{ i18n.ts.findAnotherInstance }}
|
||||||
</MkButton>
|
</MkButton>
|
||||||
<MkButton
|
<MkButton
|
||||||
v-if="!sticky"
|
v-if="deviceKind !== 'desktop'"
|
||||||
:link="true"
|
:link="true"
|
||||||
:behavior="'browser'"
|
:behavior="'browser'"
|
||||||
rounded
|
rounded
|
||||||
|
@ -121,7 +135,7 @@
|
||||||
</FormSection>
|
</FormSection>
|
||||||
|
|
||||||
<FormSection v-if="meta.tosUrl">
|
<FormSection v-if="meta.tosUrl">
|
||||||
<div class="_formLinksGrid">
|
<div class="_formLinksGridFlex">
|
||||||
<FormLink v-if="meta.tosUrl" :to="meta.tosUrl"
|
<FormLink v-if="meta.tosUrl" :to="meta.tosUrl"
|
||||||
><template #icon
|
><template #icon
|
||||||
><i
|
><i
|
||||||
|
@ -187,6 +201,7 @@ import XSigninDialog from "@/components/MkSigninDialog.vue";
|
||||||
import XSignupDialog from "@/components/MkSignupDialog.vue";
|
import XSignupDialog from "@/components/MkSignupDialog.vue";
|
||||||
import MkKeyValue from "@/components/MkKeyValue.vue";
|
import MkKeyValue from "@/components/MkKeyValue.vue";
|
||||||
import MkMention from "@/components/MkMention.vue";
|
import MkMention from "@/components/MkMention.vue";
|
||||||
|
import { deviceKind } from "@/scripts/device-kind";
|
||||||
|
|
||||||
defineProps<{
|
defineProps<{
|
||||||
sticky?: boolean;
|
sticky?: boolean;
|
||||||
|
@ -292,7 +307,8 @@ function showMenu(ev) {
|
||||||
top: 0;
|
top: 0;
|
||||||
width: calc(100% + 2px);
|
width: calc(100% + 2px);
|
||||||
margin-inline: -1px;
|
margin-inline: -1px;
|
||||||
padding-top: 56.25%;
|
padding-top: min(56.25%, 70vh);
|
||||||
|
margin-bottom: calc(-100px - var(--radius));
|
||||||
mask: linear-gradient(to bottom, black, calc(100% - 50px), transparent);
|
mask: linear-gradient(to bottom, black, calc(100% - 50px), transparent);
|
||||||
transition: min-height 0.4s, max-height 0.4s, filter 0.7s;
|
transition: min-height 0.4s, max-height 0.4s, filter 0.7s;
|
||||||
img {
|
img {
|
||||||
|
@ -301,6 +317,15 @@ function showMenu(ev) {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
object-fit: cover;
|
object-fit: cover;
|
||||||
object-position: center;
|
object-position: center;
|
||||||
|
inset: 0;
|
||||||
|
}
|
||||||
|
& ~ .content > .header {
|
||||||
|
&::before {
|
||||||
|
opacity: 1 !important;
|
||||||
|
}
|
||||||
|
> .logo {
|
||||||
|
margin-top: -20px !important;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
> .content {
|
> .content {
|
||||||
|
@ -311,27 +336,32 @@ function showMenu(ev) {
|
||||||
z-index: 2;
|
z-index: 2;
|
||||||
background: var(--bg);
|
background: var(--bg);
|
||||||
border-radius: var(--radius) var(--radius) 0 0;
|
border-radius: var(--radius) var(--radius) 0 0;
|
||||||
margin-top: calc(0px - var(--radius));
|
|
||||||
padding: 0 var(--margin);
|
padding: 0 var(--margin);
|
||||||
text-align: center;
|
text-align: center;
|
||||||
flex-grow: 1;
|
flex-grow: 1;
|
||||||
|
margin-top: 80px;
|
||||||
// max-width: 600px;
|
// max-width: 600px;
|
||||||
margin-inline: auto;
|
margin-inline: auto;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
|
@media (max-width: 1100px) {
|
||||||
|
&:first-child {
|
||||||
|
margin-top: 140px;
|
||||||
|
}
|
||||||
|
}
|
||||||
> .header {
|
> .header {
|
||||||
position: relative;
|
position: relative;
|
||||||
margin-top: -50px;
|
margin-top: -30px;
|
||||||
&::before {
|
&::before {
|
||||||
content: "";
|
content: "";
|
||||||
position: absolute;
|
position: absolute;
|
||||||
inset: -5px calc(0px - var(--margin));
|
inset: -25px calc(0px - var(--margin));
|
||||||
bottom: -100px;
|
bottom: -100px;
|
||||||
backdrop-filter: blur(60px);
|
backdrop-filter: blur(60px);
|
||||||
filter: brightness(1.2);
|
filter: brightness(1.2);
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
z-index: -1;
|
z-index: -1;
|
||||||
|
opacity: .5;
|
||||||
clip-path: inset(55px 0 0 0 round var(--radius));
|
clip-path: inset(55px 0 0 0 round var(--radius));
|
||||||
mask: linear-gradient(transparent 55px, #000 50px, transparent);
|
mask: linear-gradient(transparent 55px, #000 50px, transparent);
|
||||||
-webkit-mask: linear-gradient(
|
-webkit-mask: linear-gradient(
|
||||||
|
|
Loading…
Reference in a new issue