updated ui & fixed download release

This commit is contained in:
2026-08-26 20:32:21 -07:00
parent 2291e2d13f
commit ddaa71dda8
11 changed files with 69 additions and 90 deletions

View File

@@ -243,8 +243,8 @@
<body>
<header role="banner">
<nav class="nav" role="navigation" aria-label="Main navigation">
<div class="nav-container">
<a href="/" class="logo" aria-label="Vyla Home - Home">Vyla Home</a>
<div class="logo-image">
<img src="/assets/images/icons/logo_white.png" alt="Vyla Home">
</div>
</nav>
</header>
@@ -305,8 +305,9 @@
<section class="cta-banner" aria-labelledby="cta-heading">
<div class="cta-banner-media" aria-hidden="true">
<video class="cta-banner-video hero-atmosphere-video"
src="https://videos.pexels.com/video-files/35997189/15263283_3840_2160_25fps.mp4" autoplay loop muted
playsinline webkit-playsinline preload="auto" aria-hidden="true"></video>
src="https://videos.pexels.com/video-files/26754965/12000494_3840_2160_30fps.mp4" autoplay loop muted
playsinline webkit-playsinline preload="auto" crossorigin="anonymous" aria-hidden="true">
</video>
<canvas id="cta-byte-overlay" aria-hidden="true"></canvas>
<div class="cta-banner-overlay"></div>
</div>
@@ -319,10 +320,7 @@
<script>
async function setupLatestDownload() {
const buttons = [
document.getElementById("hero-copy-script-btn"),
document.getElementById("cta-copy-script-btn")
];
const btn = document.getElementById("hero-copy-script-btn");
try {
const response = await fetch(
@@ -335,14 +333,12 @@
const version = release.tag_name;
const fileVersion = version.replace(/^v/, "");
const downloadUrl =
btn.href =
`https://gitlab.com/api/v4/projects/vyla-entertainment%2Fhome/packages/generic/vyla-home/${version}/Vyla-Home_${fileVersion}_x64-setup.exe`;
buttons.forEach(button => {
if (button) button.href = downloadUrl;
});
btn.textContent = `Download Release ${version}`;
} catch (error) {
console.error("Failed to resolve latest release:", error);
btn.textContent = "Download Latest Release";
}
}