💄 调整头图高度与标题字号以适配不同屏幕
This commit is contained in:
@@ -106,18 +106,19 @@ provideNavbarHeight(navbarHeight);
|
|||||||
<div class="bg-old-neutral-50 dark:bg-[#0b0d0d] w-full min-h-screen h-full">
|
<div class="bg-old-neutral-50 dark:bg-[#0b0d0d] w-full min-h-screen h-full">
|
||||||
<UApp>
|
<UApp>
|
||||||
<div
|
<div
|
||||||
:class=" (collapsed ? 'h-[20vh]': 'h-[40vh]')"
|
:class="collapsed
|
||||||
class="flex flex-col relative transition-[height] duration-500 max-h-80 min-h-40">
|
? 'h-[clamp(8rem,11.25vw,27rem)]'
|
||||||
<!-- header -->
|
: 'h-[clamp(12rem,16.6667vw,40rem)]'"
|
||||||
|
class="flex flex-col relative transition-[height] duration-500">
|
||||||
<div
|
<div
|
||||||
@mouseenter="startCollapseCountdown()" @mouseleave="stopCollapseCountDownAndStopCollapse()">
|
@mouseenter="startCollapseCountdown()" @mouseleave="stopCollapseCountDownAndStopCollapse()">
|
||||||
<div
|
<div
|
||||||
class="flex bg-top absolute w-full h-full bg-[url('/79d52228c770808810a310115567e6790380823a.webp')] dark:bg-[url('/anime-8788959.webp')]">
|
class="flex bg-top absolute w-full h-full bg-[url('/79d52228c770808810a310115567e6790380823a.webp')] dark:bg-[url('/anime-8788959.webp')] bg-cover bg-no-repeat">
|
||||||
<slot name="header"/>
|
<slot name="header"/>
|
||||||
</div>
|
</div>
|
||||||
<div v-if="isScrollDown">
|
<div v-if="isScrollDown">
|
||||||
<div
|
<div
|
||||||
class="opacity-80 dark:opacity-20 max-h-12 flex w-full h-full fixed bg-[url('/79d52228c770808810a310115567e6790380823a.webp')] dark:bg-[url('/anime-8788959.webp')] bg-cover bg-top dark:bg-center"/>
|
class="opacity-80 dark:opacity-20 max-h-12 flex w-full h-full fixed bg-[url('/79d52228c770808810a310115567e6790380823a.webp')] dark:bg-[url('/anime-8788959.webp')] bg-cover bg-no-repeat bg-top dark:bg-center"/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- navbar -->
|
<!-- navbar -->
|
||||||
|
|||||||
+2
-2
@@ -23,7 +23,7 @@ onMounted(async () => {
|
|||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
v-if="isScrollDown && breakpointsHelper.greaterOrEqual('xl').value"
|
v-if="isScrollDown && breakpointsHelper.greaterOrEqual('xl').value"
|
||||||
class="pl-5 text-xl h-12 leading-11 flex">
|
class="pl-5 text-xl h-12 flex items-center text-nowrap">
|
||||||
随机存取
|
随机存取
|
||||||
</div>
|
</div>
|
||||||
</Transition>
|
</Transition>
|
||||||
@@ -38,7 +38,7 @@ onMounted(async () => {
|
|||||||
</template>
|
</template>
|
||||||
<template #header>
|
<template #header>
|
||||||
<div class="w-full flex-1 justify-center flex items-center">
|
<div class="w-full flex-1 justify-center flex items-center">
|
||||||
<p class="text-8xl mt-12">
|
<p class="text-[clamp(2.25rem,5vw,12rem)] leading-none mt-12">
|
||||||
随机存取
|
随机存取
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user