mirror of
https://gitlab.com/vyla-entertainment/documentation.git
synced 2026-11-16 15:37:23 -05:00
tweaked UI
This commit is contained in:
31
index.html
31
index.html
@@ -143,6 +143,7 @@
|
||||
<a href="/misc/project/support-us" class="domain-goal-link"
|
||||
title="Fund the Vyla domain - Click to Support Us">
|
||||
<div class="domain-goal-meta">
|
||||
<span class="domain-goal-tag">Domain Fund</span>
|
||||
<span class="domain-goal-desc">Domain Goal: $14 by June 2027</span>
|
||||
<span class="domain-goal-status" id="domain-goal-text">$0.00 / $14.00 (0%)</span>
|
||||
</div>
|
||||
@@ -478,10 +479,7 @@
|
||||
|
||||
@media (max-width: 900px) {
|
||||
#header-container {
|
||||
border-top-right-radius: 20px;
|
||||
border-top-left-radius: 20px;
|
||||
border-bottom-right-radius: 30px;
|
||||
border-bottom-left-radius: 30px;
|
||||
border-radius: 100px;
|
||||
top: max(6px, env(safe-area-inset-top));
|
||||
width: 90%;
|
||||
}
|
||||
@@ -494,6 +492,7 @@
|
||||
margin-left: auto !important;
|
||||
margin-right: auto !important;
|
||||
margin-top: 0px !important;
|
||||
height: 100% !important;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -502,6 +501,10 @@
|
||||
padding: 20px 0 40px;
|
||||
}
|
||||
|
||||
.header-content {
|
||||
margin-top: 20px;
|
||||
}
|
||||
|
||||
.header-logo-badge {
|
||||
width: 44px;
|
||||
height: 44px;
|
||||
@@ -540,8 +543,7 @@
|
||||
<video class="header-video" autoplay muted loop playsinline preload="none"
|
||||
src=""></video>
|
||||
<img class="header-image" alt="Vyla tree wallpaper backdrop" width="1920" height="1080"
|
||||
src="/src/assets/images/wallpaper-media/tree-mobile.webp" fetchpriority="high"
|
||||
decoding="async" />
|
||||
src="" fetchpriority="high" decoding="async" />
|
||||
|
||||
<div class="header-tint"></div>
|
||||
|
||||
@@ -695,11 +697,24 @@
|
||||
<script>
|
||||
(() => {
|
||||
const bg = document.querySelector('.body-blurred-backdrop');
|
||||
if (!bg || CSS.supports?.('animation-timeline', 'scroll()')) return;
|
||||
const headerMedia = document.querySelector('.header-video, .header-image');
|
||||
if (!bg && !headerMedia) return;
|
||||
|
||||
const onScroll = () => {
|
||||
const y = window.scrollY || document.documentElement.scrollTop;
|
||||
bg.style.opacity = Math.max(0, 1 - y / 450);
|
||||
if (bg) {
|
||||
bg.style.opacity = Math.max(0, 1 - y / 450);
|
||||
}
|
||||
if (headerMedia) {
|
||||
headerMedia.style.opacity = Math.max(0, 1 - y / 500);
|
||||
headerMedia.style.transform = `translateX(-50%) translateY(${y * 0.3}px)`;
|
||||
}
|
||||
};
|
||||
|
||||
if (CSS.supports?.('animation-timeline', 'scroll()')) {
|
||||
return;
|
||||
}
|
||||
|
||||
window.addEventListener('scroll', onScroll, { passive: true });
|
||||
onScroll();
|
||||
})();
|
||||
|
||||
Reference in New Issue
Block a user