feat: add public page fade in
This commit is contained in:
@@ -49,6 +49,26 @@ header button {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.ark-page-fade-in {
|
||||||
|
animation: ark-page-fade-in 240ms ease-out both;
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes ark-page-fade-in {
|
||||||
|
from {
|
||||||
|
opacity: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
to {
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (prefers-reduced-motion: reduce) {
|
||||||
|
.ark-page-fade-in {
|
||||||
|
animation: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* Desktop header nav: thin scrollbar when links overflow (still 單列) */
|
/* Desktop header nav: thin scrollbar when links overflow (still 單列) */
|
||||||
.header-nav-scroll {
|
.header-nav-scroll {
|
||||||
scrollbar-width: thin;
|
scrollbar-width: thin;
|
||||||
|
|||||||
@@ -612,7 +612,9 @@ export function PublicLayout() {
|
|||||||
: "flex-1 px-4 pb-6 pt-6 min-[440px]:px-5 sm:px-6 md:px-9 md:pb-10 md:pt-10 xl:px-0"
|
: "flex-1 px-4 pb-6 pt-6 min-[440px]:px-5 sm:px-6 md:px-9 md:pb-10 md:pt-10 xl:px-0"
|
||||||
}`}
|
}`}
|
||||||
>
|
>
|
||||||
<Outlet />
|
<div key={`${pathname}${search}`} className="ark-page-fade-in">
|
||||||
|
<Outlet />
|
||||||
|
</div>
|
||||||
</main>
|
</main>
|
||||||
|
|
||||||
<footer className="mt-auto bg-transparent md:border-t md:border-ark-line md:bg-ark-nav/90">
|
<footer className="mt-auto bg-transparent md:border-t md:border-ark-line md:bg-ark-nav/90">
|
||||||
|
|||||||
Reference in New Issue
Block a user