fix: add footer z index in transition group to stay above main content during transitions

This commit is contained in:
Ilia Mashkov
2026-05-21 17:59:40 +03:00
parent df4526cabd
commit f121443e52
2 changed files with 10 additions and 1 deletions
+9
View File
@@ -411,3 +411,12 @@
transform: translateX(0) scale(1); transform: translateX(0) scale(1);
} }
} }
/* Keep footer above sliding section-body during view transitions */
.footer-vt {
view-transition-name: site-footer;
}
::view-transition-group(site-footer) {
z-index: 10;
}
+1 -1
View File
@@ -19,7 +19,7 @@ export async function Footer() {
const socials = contacts?.expand?.socials ?? []; const socials = contacts?.expand?.socials ?? [];
return ( return (
<footer className="fixed bottom-0 left-0 right-0 z-50 h-footer md:h-footer-wide brutal-border-top bg-background px-4 sm:px-8 lg:px-16 flex items-center"> <footer className="footer-vt fixed bottom-0 left-0 right-0 z-50 h-footer md:h-footer-wide brutal-border-top bg-background px-4 sm:px-8 lg:px-16 flex items-center">
<div className="w-full flex flex-row justify-between gap-4"> <div className="w-full flex flex-row justify-between gap-4">
<div className="flex flex-wrap items-center gap-6 sm:gap-4"> <div className="flex flex-wrap items-center gap-6 sm:gap-4">
{email && ( {email && (