forked from vyla-entertainment/home-frontend
updated ui & fixed download release
This commit is contained in:
@@ -243,8 +243,8 @@
|
|||||||
<body>
|
<body>
|
||||||
<header role="banner">
|
<header role="banner">
|
||||||
<nav class="nav" role="navigation" aria-label="Main navigation">
|
<nav class="nav" role="navigation" aria-label="Main navigation">
|
||||||
<div class="nav-container">
|
<div class="logo-image">
|
||||||
<a href="/" class="logo" aria-label="Vyla Home - Home">Vyla Home</a>
|
<img src="/assets/images/icons/logo_white.png" alt="Vyla Home">
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
</header>
|
</header>
|
||||||
@@ -305,8 +305,9 @@
|
|||||||
<section class="cta-banner" aria-labelledby="cta-heading">
|
<section class="cta-banner" aria-labelledby="cta-heading">
|
||||||
<div class="cta-banner-media" aria-hidden="true">
|
<div class="cta-banner-media" aria-hidden="true">
|
||||||
<video class="cta-banner-video hero-atmosphere-video"
|
<video class="cta-banner-video hero-atmosphere-video"
|
||||||
src="https://videos.pexels.com/video-files/35997189/15263283_3840_2160_25fps.mp4" autoplay loop muted
|
src="https://videos.pexels.com/video-files/26754965/12000494_3840_2160_30fps.mp4" autoplay loop muted
|
||||||
playsinline webkit-playsinline preload="auto" aria-hidden="true"></video>
|
playsinline webkit-playsinline preload="auto" crossorigin="anonymous" aria-hidden="true">
|
||||||
|
</video>
|
||||||
<canvas id="cta-byte-overlay" aria-hidden="true"></canvas>
|
<canvas id="cta-byte-overlay" aria-hidden="true"></canvas>
|
||||||
<div class="cta-banner-overlay"></div>
|
<div class="cta-banner-overlay"></div>
|
||||||
</div>
|
</div>
|
||||||
@@ -319,10 +320,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
async function setupLatestDownload() {
|
async function setupLatestDownload() {
|
||||||
const buttons = [
|
const btn = document.getElementById("hero-copy-script-btn");
|
||||||
document.getElementById("hero-copy-script-btn"),
|
|
||||||
document.getElementById("cta-copy-script-btn")
|
|
||||||
];
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const response = await fetch(
|
const response = await fetch(
|
||||||
@@ -335,14 +333,12 @@
|
|||||||
const version = release.tag_name;
|
const version = release.tag_name;
|
||||||
const fileVersion = version.replace(/^v/, "");
|
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`;
|
`https://gitlab.com/api/v4/projects/vyla-entertainment%2Fhome/packages/generic/vyla-home/${version}/Vyla-Home_${fileVersion}_x64-setup.exe`;
|
||||||
|
|
||||||
buttons.forEach(button => {
|
btn.textContent = `Download Release ${version}`;
|
||||||
if (button) button.href = downloadUrl;
|
|
||||||
});
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error("Failed to resolve latest release:", error);
|
btn.textContent = "Download Latest Release";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
BIN
assets/images/icons/logo_white.png
Normal file
BIN
assets/images/icons/logo_white.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 15 KiB |
49
index.html
49
index.html
@@ -241,7 +241,9 @@
|
|||||||
<header role="banner">
|
<header role="banner">
|
||||||
<nav class="nav" role="navigation" aria-label="Main navigation">
|
<nav class="nav" role="navigation" aria-label="Main navigation">
|
||||||
<div class="nav-container">
|
<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>
|
||||||
<div class="nav-links">
|
<div class="nav-links">
|
||||||
<a href="#features">Features</a>
|
<a href="#features">Features</a>
|
||||||
<a href="#testimonials">Testimonials</a>
|
<a href="#testimonials">Testimonials</a>
|
||||||
@@ -353,7 +355,6 @@
|
|||||||
|
|
||||||
btn.textContent = `Download Release ${version}`;
|
btn.textContent = `Download Release ${version}`;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error("Failed to resolve latest release:", error);
|
|
||||||
btn.textContent = "Download Latest Release";
|
btn.textContent = "Download Latest Release";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -500,21 +501,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<!--
|
|
||||||
|
|
||||||
<section id="showcases" class="showcases-section">
|
|
||||||
<div class="container showcases-heading reveal">
|
|
||||||
<h2 class="section-title-lg">Advanced Player Engine</h2>
|
|
||||||
<p class="section-subtitle">Isolated playback sandbox with custom subtitle decoders and a responsive
|
|
||||||
video pipeline.</p>
|
|
||||||
</div>
|
|
||||||
<div class="showcase-viewport">
|
|
||||||
<div class="showcase-track" id="showcase-track"></div>
|
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
|
|
||||||
-->
|
|
||||||
|
|
||||||
<section id="testimonials" class="section testimonials-section" aria-labelledby="testimonials-heading">
|
<section id="testimonials" class="section testimonials-section" aria-labelledby="testimonials-heading">
|
||||||
<div class="container testimonials-container">
|
<div class="container testimonials-container">
|
||||||
<header class="testimonials-heading reveal">
|
<header class="testimonials-heading reveal">
|
||||||
@@ -569,24 +555,37 @@
|
|||||||
];
|
];
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
const project = "vyla-entertainment%2Fhome";
|
||||||
|
|
||||||
const response = await fetch(
|
const response = await fetch(
|
||||||
"https://gitlab.com/api/v4/projects/vyla-entertainment%2Fhome/releases/permalink/latest"
|
`https://gitlab.com/api/v4/projects/${project}/releases/permalink/latest`
|
||||||
);
|
);
|
||||||
|
|
||||||
if (!response.ok) throw new Error("Failed to fetch latest release");
|
if (!response.ok) {
|
||||||
|
throw new Error(`Failed to fetch latest release: ${response.status}`);
|
||||||
|
}
|
||||||
|
|
||||||
const release = await response.json();
|
const release = await response.json();
|
||||||
const version = release.tag_name;
|
|
||||||
const fileVersion = version.replace(/^v/, "");
|
|
||||||
|
|
||||||
const downloadUrl =
|
const asset = release.assets?.links?.find(link =>
|
||||||
`https://gitlab.com/api/v4/projects/vyla-entertainment%2Fhome/packages/generic/vyla-home/${version}/Vyla-Home_${fileVersion}_x64-setup.exe`;
|
link.name?.toLowerCase().endsWith(".exe")
|
||||||
|
);
|
||||||
|
|
||||||
|
if (!asset?.url) {
|
||||||
|
throw new Error("No .exe asset found in latest release");
|
||||||
|
}
|
||||||
|
|
||||||
buttons.forEach(button => {
|
buttons.forEach(button => {
|
||||||
if (button) button.href = downloadUrl;
|
if (button) {
|
||||||
|
button.href = asset.url;
|
||||||
|
}
|
||||||
});
|
});
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error("Failed to resolve latest release:", error);
|
buttons.forEach(button => {
|
||||||
|
if (button) {
|
||||||
|
button.textContent = "Download Latest Release";
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -243,8 +243,8 @@
|
|||||||
<body>
|
<body>
|
||||||
<header role="banner">
|
<header role="banner">
|
||||||
<nav class="nav" role="navigation" aria-label="Main navigation">
|
<nav class="nav" role="navigation" aria-label="Main navigation">
|
||||||
<div class="nav-container">
|
<div class="logo-image">
|
||||||
<a href="/" class="logo" aria-label="Vyla Home - Home">Vyla Home</a>
|
<img src="/assets/images/icons/logo_white.png" alt="Vyla Home">
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
</header>
|
</header>
|
||||||
@@ -316,8 +316,9 @@
|
|||||||
<section class="cta-banner" aria-labelledby="cta-heading">
|
<section class="cta-banner" aria-labelledby="cta-heading">
|
||||||
<div class="cta-banner-media" aria-hidden="true">
|
<div class="cta-banner-media" aria-hidden="true">
|
||||||
<video class="cta-banner-video hero-atmosphere-video"
|
<video class="cta-banner-video hero-atmosphere-video"
|
||||||
src="https://videos.pexels.com/video-files/35997189/15263283_3840_2160_25fps.mp4" autoplay loop muted
|
src="https://videos.pexels.com/video-files/26754965/12000494_3840_2160_30fps.mp4" autoplay loop muted
|
||||||
playsinline webkit-playsinline preload="auto" aria-hidden="true"></video>
|
playsinline webkit-playsinline preload="auto" crossorigin="anonymous" aria-hidden="true">
|
||||||
|
</video>
|
||||||
<canvas id="cta-byte-overlay" aria-hidden="true"></canvas>
|
<canvas id="cta-byte-overlay" aria-hidden="true"></canvas>
|
||||||
<div class="cta-banner-overlay"></div>
|
<div class="cta-banner-overlay"></div>
|
||||||
</div>
|
</div>
|
||||||
@@ -330,10 +331,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
async function setupLatestDownload() {
|
async function setupLatestDownload() {
|
||||||
const buttons = [
|
const btn = document.getElementById("hero-copy-script-btn");
|
||||||
document.getElementById("hero-copy-script-btn"),
|
|
||||||
document.getElementById("cta-copy-script-btn")
|
|
||||||
];
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const response = await fetch(
|
const response = await fetch(
|
||||||
@@ -346,14 +344,12 @@
|
|||||||
const version = release.tag_name;
|
const version = release.tag_name;
|
||||||
const fileVersion = version.replace(/^v/, "");
|
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`;
|
`https://gitlab.com/api/v4/projects/vyla-entertainment%2Fhome/packages/generic/vyla-home/${version}/Vyla-Home_${fileVersion}_x64-setup.exe`;
|
||||||
|
|
||||||
buttons.forEach(button => {
|
btn.textContent = `Download Release ${version}`;
|
||||||
if (button) button.href = downloadUrl;
|
|
||||||
});
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error("Failed to resolve latest release:", error);
|
btn.textContent = "Download Latest Release";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -5,7 +5,6 @@ export const DISCORD_LOADER_SCRIPT = 'https://gitlab.com/vyla-entertainment/home
|
|||||||
export const DATA_PATHS = {
|
export const DATA_PATHS = {
|
||||||
partners: 'src/data/partners.json',
|
partners: 'src/data/partners.json',
|
||||||
reviews: 'src/data/reviews.json',
|
reviews: 'src/data/reviews.json',
|
||||||
showcases: 'src/data/showcases.json',
|
|
||||||
};
|
};
|
||||||
|
|
||||||
export const DISCORD_INVITE_API = `https://discord.com/api/v10/invites/${DISCORD_INVITE_CODE}?with_counts=true`;
|
export const DISCORD_INVITE_API = `https://discord.com/api/v10/invites/${DISCORD_INVITE_CODE}?with_counts=true`;
|
||||||
|
|||||||
@@ -10,8 +10,6 @@ function initVideoColorExtraction() {
|
|||||||
const videos = document.querySelectorAll('.hero-atmosphere-video');
|
const videos = document.querySelectorAll('.hero-atmosphere-video');
|
||||||
if (videos.length === 0) return;
|
if (videos.length === 0) return;
|
||||||
|
|
||||||
console.log('Video color extraction initialized, found', videos.length, 'videos');
|
|
||||||
|
|
||||||
const canvas = document.createElement('canvas');
|
const canvas = document.createElement('canvas');
|
||||||
const ctx = canvas.getContext('2d', { willReadFrequently: true });
|
const ctx = canvas.getContext('2d', { willReadFrequently: true });
|
||||||
let animationFrameId;
|
let animationFrameId;
|
||||||
@@ -21,7 +19,6 @@ function initVideoColorExtraction() {
|
|||||||
function extractColors() {
|
function extractColors() {
|
||||||
const video = videos[0];
|
const video = videos[0];
|
||||||
if (video.readyState < 2) {
|
if (video.readyState < 2) {
|
||||||
console.log('Video not ready, readyState:', video.readyState);
|
|
||||||
animationFrameId = requestAnimationFrame(extractColors);
|
animationFrameId = requestAnimationFrame(extractColors);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -59,11 +56,8 @@ function initVideoColorExtraction() {
|
|||||||
|
|
||||||
frameCount++;
|
frameCount++;
|
||||||
if (frameCount % 30 === 0) {
|
if (frameCount % 30 === 0) {
|
||||||
console.log('Frame', frameCount, '- Extracted color:', currentVideoColor);
|
|
||||||
console.log('CSS variable set:', getComputedStyle(document.documentElement).getPropertyValue('--video-dominant-color'));
|
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.error('Error extracting video colors:', e);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
animationFrameId = requestAnimationFrame(extractColors);
|
animationFrameId = requestAnimationFrame(extractColors);
|
||||||
@@ -90,12 +84,10 @@ function initVideoColorExtraction() {
|
|||||||
|
|
||||||
videos.forEach(video => {
|
videos.forEach(video => {
|
||||||
video.addEventListener('pause', () => {
|
video.addEventListener('pause', () => {
|
||||||
console.log('Video paused, stopping color extraction');
|
|
||||||
cancelAnimationFrame(animationFrameId);
|
cancelAnimationFrame(animationFrameId);
|
||||||
});
|
});
|
||||||
|
|
||||||
video.addEventListener('play', () => {
|
video.addEventListener('play', () => {
|
||||||
console.log('Video playing, starting color extraction');
|
|
||||||
animationFrameId = requestAnimationFrame(extractColors);
|
animationFrameId = requestAnimationFrame(extractColors);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,12 +0,0 @@
|
|||||||
import { DATA_PATHS } from '../config/constants.js';
|
|
||||||
import { fetchJsonArray } from './json-source.js';
|
|
||||||
import { youtubeIdFromUrl } from '../utils/youtube.js';
|
|
||||||
|
|
||||||
export async function getShowcaseVideos() {
|
|
||||||
const links = await fetchJsonArray(DATA_PATHS.showcases);
|
|
||||||
const videos = links
|
|
||||||
.map((url) => ({ url, id: youtubeIdFromUrl(url) }))
|
|
||||||
.filter((video) => video.id);
|
|
||||||
if (!videos.length) throw new Error('No valid showcase videos found');
|
|
||||||
return videos;
|
|
||||||
}
|
|
||||||
@@ -5,6 +5,7 @@
|
|||||||
padding: 1.25rem 0;
|
padding: 1.25rem 0;
|
||||||
z-index: var(--z-nav);
|
z-index: var(--z-nav);
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
z-index: 1000;
|
||||||
}
|
}
|
||||||
|
|
||||||
.nav-container {
|
.nav-container {
|
||||||
@@ -20,17 +21,25 @@
|
|||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
font-size: 1.125rem;
|
font-size: 1.125rem;
|
||||||
letter-spacing: -0.02em;
|
letter-spacing: -0.02em;
|
||||||
|
height: 50px;
|
||||||
|
width: 50px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.nav-links {
|
.nav-links {
|
||||||
display: flex;
|
display: flex;
|
||||||
gap: clamp(1.25rem, 3vw, 2.5rem);
|
gap: clamp(1.25rem, 3vw, 2.5rem);
|
||||||
|
background: rgba(255, 255, 255, 0.1);
|
||||||
|
backdrop-filter: blur(8px) saturate(140%);
|
||||||
|
-webkit-backdrop-filter: blur(8px) saturate(140%);
|
||||||
|
padding: 1rem 1rem;
|
||||||
|
gap: 1.25rem;
|
||||||
|
border-radius: 100px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.nav-links a {
|
.nav-links a {
|
||||||
font-size: 0.875rem;
|
font-size: 0.875rem;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
color: var(--color-fg-dim);
|
color: var(--color-fg);
|
||||||
transition: color var(--duration-fast) ease;
|
transition: color var(--duration-fast) ease;
|
||||||
-webkit-tap-highlight-color: transparent;
|
-webkit-tap-highlight-color: transparent;
|
||||||
touch-action: manipulation;
|
touch-action: manipulation;
|
||||||
@@ -43,7 +52,7 @@
|
|||||||
|
|
||||||
@media (max-width: 768px) {
|
@media (max-width: 768px) {
|
||||||
.nav-links {
|
.nav-links {
|
||||||
gap: 1.25rem;
|
padding: 0rem 1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.nav-links a {
|
.nav-links a {
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
|
body {
|
||||||
|
background-color: #000000 !important;
|
||||||
|
}
|
||||||
|
|
||||||
.content-wrapper {
|
.content-wrapper {
|
||||||
width: min(900px, calc(100% - 2 * var(--content-padding-inline)));
|
width: min(900px, calc(100% - 2 * var(--content-padding-inline)));
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
|
|||||||
@@ -9,8 +9,8 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.logo-image {
|
.logo-image {
|
||||||
width: 100px;
|
width: 60px;
|
||||||
height: 100px;
|
height: 60px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.logo-image img {
|
.logo-image img {
|
||||||
|
|||||||
@@ -243,8 +243,8 @@
|
|||||||
<body>
|
<body>
|
||||||
<header role="banner">
|
<header role="banner">
|
||||||
<nav class="nav" role="navigation" aria-label="Main navigation">
|
<nav class="nav" role="navigation" aria-label="Main navigation">
|
||||||
<div class="nav-container">
|
<div class="logo-image">
|
||||||
<a href="/" class="logo" aria-label="Vyla Home - Home">Vyla Home</a>
|
<img src="/assets/images/icons/logo_white.png" alt="Vyla Home">
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
</header>
|
</header>
|
||||||
@@ -303,8 +303,9 @@
|
|||||||
<section class="cta-banner" aria-labelledby="cta-heading">
|
<section class="cta-banner" aria-labelledby="cta-heading">
|
||||||
<div class="cta-banner-media" aria-hidden="true">
|
<div class="cta-banner-media" aria-hidden="true">
|
||||||
<video class="cta-banner-video hero-atmosphere-video"
|
<video class="cta-banner-video hero-atmosphere-video"
|
||||||
src="https://videos.pexels.com/video-files/35997189/15263283_3840_2160_25fps.mp4" autoplay loop muted
|
src="https://videos.pexels.com/video-files/26754965/12000494_3840_2160_30fps.mp4" autoplay loop muted
|
||||||
playsinline webkit-playsinline preload="auto" aria-hidden="true"></video>
|
playsinline webkit-playsinline preload="auto" crossorigin="anonymous" aria-hidden="true">
|
||||||
|
</video>
|
||||||
<canvas id="cta-byte-overlay" aria-hidden="true"></canvas>
|
<canvas id="cta-byte-overlay" aria-hidden="true"></canvas>
|
||||||
<div class="cta-banner-overlay"></div>
|
<div class="cta-banner-overlay"></div>
|
||||||
</div>
|
</div>
|
||||||
@@ -317,10 +318,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
async function setupLatestDownload() {
|
async function setupLatestDownload() {
|
||||||
const buttons = [
|
const btn = document.getElementById("hero-copy-script-btn");
|
||||||
document.getElementById("hero-copy-script-btn"),
|
|
||||||
document.getElementById("cta-copy-script-btn")
|
|
||||||
];
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const response = await fetch(
|
const response = await fetch(
|
||||||
@@ -333,14 +331,12 @@
|
|||||||
const version = release.tag_name;
|
const version = release.tag_name;
|
||||||
const fileVersion = version.replace(/^v/, "");
|
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`;
|
`https://gitlab.com/api/v4/projects/vyla-entertainment%2Fhome/packages/generic/vyla-home/${version}/Vyla-Home_${fileVersion}_x64-setup.exe`;
|
||||||
|
|
||||||
buttons.forEach(button => {
|
btn.textContent = `Download Release ${version}`;
|
||||||
if (button) button.href = downloadUrl;
|
|
||||||
});
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error("Failed to resolve latest release:", error);
|
btn.textContent = "Download Latest Release";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user