forked from vyla-entertainment/home-frontend
updated download links n tweaked css for different mobile users
This commit is contained in:
39
index.html
39
index.html
@@ -244,7 +244,7 @@
|
||||
<a href="/" class="logo" aria-label="Vyla Home - Home">Vyla Home</a>
|
||||
<div class="nav-links">
|
||||
<a href="#features">Features</a>
|
||||
<a href="#architecture">Architecture</a>
|
||||
<a href="#testimonials">Testimonials</a>
|
||||
<a href="#faq">FAQ</a>
|
||||
</div>
|
||||
</div>
|
||||
@@ -560,10 +560,41 @@
|
||||
<div class="container cta-banner-content reveal">
|
||||
<h2 id="cta-heading" class="cta-banner-title">Try Vyla Home today</h2>
|
||||
<p class="cta-banner-subtitle">Your Entertainment. Zero Servers Attached.</p>
|
||||
<a class="hero-cta hero-cta-light" id="cta-copy-script-btn"
|
||||
href="https://gitlab.com/api/v4/projects/vyla-entertainment%2Fhome/packages/generic/vyla-home/v1.0.0/Vyla-Home_1.0.0_x64-setup.exe"
|
||||
target="_blank" rel="noopener noreferrer">Download Now</a>
|
||||
<a class="hero-cta hero-cta-light" id="cta-copy-script-btn" href="#" target="_blank"
|
||||
rel="noopener noreferrer">Download Now</a>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
async function setupLatestDownload() {
|
||||
const buttons = [
|
||||
document.getElementById("hero-copy-script-btn"),
|
||||
document.getElementById("cta-copy-script-btn")
|
||||
];
|
||||
|
||||
try {
|
||||
const response = await fetch(
|
||||
"https://gitlab.com/api/v4/projects/vyla-entertainment%2Fhome/releases/permalink/latest"
|
||||
);
|
||||
|
||||
if (!response.ok) throw new Error("Failed to fetch latest release");
|
||||
|
||||
const release = await response.json();
|
||||
const version = release.tag_name;
|
||||
const fileVersion = version.replace(/^v/, "");
|
||||
|
||||
const downloadUrl =
|
||||
`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;
|
||||
});
|
||||
} catch (error) {
|
||||
console.error("Failed to resolve latest release:", error);
|
||||
}
|
||||
}
|
||||
|
||||
setupLatestDownload();
|
||||
</script>
|
||||
</section>
|
||||
|
||||
<footer class="footer">
|
||||
|
||||
Reference in New Issue
Block a user