mirror of
https://gitlab.com/vyla-entertainment/documentation.git
synced 2026-11-16 07:27:21 -05:00
tweaked UI
This commit is contained in:
491
home.txt
491
home.txt
@@ -1,491 +0,0 @@
|
||||
<style>
|
||||
.home-container {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.home-header {
|
||||
position: relative;
|
||||
width: 100vw;
|
||||
height: auto;
|
||||
margin-top: calc(var(--header-height) + max(10px, env(safe-area-inset-top)) + 12px);
|
||||
margin-left: calc(-50vw + 50%);
|
||||
margin-right: calc(-50vw + 50%);
|
||||
padding: 40px 0 64px;
|
||||
overflow: hidden;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.header-video,
|
||||
.header-image {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
background-size: cover;
|
||||
background-repeat: no-repeat;
|
||||
z-index: 0;
|
||||
border-top-left-radius: 50px !important;
|
||||
border-top-right-radius: 50px !important;
|
||||
will-change: transform, opacity;
|
||||
backface-visibility: hidden;
|
||||
transform-origin: center top;
|
||||
mask-image: linear-gradient(rgb(0, 0, 0) 0%, rgb(0, 0, 0) 30%, rgba(0, 0, 0, 0.65) 55%, rgba(0, 0, 0, 0.2) 72%, transparent 88%);
|
||||
background-position: center top;
|
||||
transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), filter 0.6s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
}
|
||||
|
||||
.header-tint {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.header-content {
|
||||
position: relative;
|
||||
z-index: 2;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
text-align: center;
|
||||
max-width: 680px;
|
||||
padding: 0 20px;
|
||||
}
|
||||
|
||||
.header-logo-badge {
|
||||
width: 58px;
|
||||
height: 58px;
|
||||
border-radius: 50%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
margin-bottom: 14px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.header-logo-badge img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.header-actions {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.header-actions-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.btn-primary {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
padding: 10px 22px;
|
||||
border-radius: 100px;
|
||||
background: var(--btn-primary-bg);
|
||||
color: var(--btn-primary-text) !important;
|
||||
font-size: 13.5px;
|
||||
font-weight: 600;
|
||||
text-decoration: none !important;
|
||||
transition: transform 0.15s ease;
|
||||
}
|
||||
|
||||
.btn-secondary {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
padding: 10px 20px;
|
||||
border-radius: 100px;
|
||||
font-size: 13.5px;
|
||||
font-weight: 600;
|
||||
text-decoration: none !important;
|
||||
backdrop-filter: blur(25px) saturate(2);
|
||||
-webkit-backdrop-filter: blur(25px) saturate(2);
|
||||
transition: transform 0.15s ease;
|
||||
}
|
||||
|
||||
@keyframes fadeVideoBg {
|
||||
to {
|
||||
opacity: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.body-blurred-backdrop {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
z-index: -1;
|
||||
pointer-events: none;
|
||||
overflow: hidden;
|
||||
animation: fadeVideoBg linear both;
|
||||
animation-timeline: scroll();
|
||||
animation-range: 0 800px;
|
||||
will-change: opacity;
|
||||
}
|
||||
|
||||
.body-blurred-video,
|
||||
.body-blurred-image {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
filter: blur(25px);
|
||||
display: block;
|
||||
}
|
||||
|
||||
.body-blurred-video:not([src]),
|
||||
.body-blurred-video[src=""],
|
||||
.body-blurred-image:not([src]),
|
||||
.body-blurred-image[src=""],
|
||||
.header-video:not([src]),
|
||||
.header-video[src=""],
|
||||
.header-image:not([src]),
|
||||
.header-image[src=""] {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.content-section {
|
||||
width: 100%;
|
||||
max-width: 1040px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
margin-top: 48px;
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.header-desc {
|
||||
font-size: 14.5px;
|
||||
margin-top: 0 !important;
|
||||
}
|
||||
|
||||
.section-head {
|
||||
margin-bottom: 22px;
|
||||
text-align: left;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.section-head h2 {
|
||||
font-size: 22px !important;
|
||||
font-weight: 700 !important;
|
||||
margin: 0 0 6px !important;
|
||||
color: var(--text) !important;
|
||||
}
|
||||
|
||||
.section-head p {
|
||||
font-size: 14.5px;
|
||||
margin: 0;
|
||||
color: var(--muted);
|
||||
}
|
||||
|
||||
.vyla-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
|
||||
gap: 16px;
|
||||
width: 100%;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.feature-box {
|
||||
position: relative;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
padding: 24px;
|
||||
border-radius: 30px;
|
||||
background: rgba(187, 187, 187, 0.6) !important;
|
||||
backdrop-filter: blur(16px);
|
||||
-webkit-backdrop-filter: blur(16px);
|
||||
text-decoration: none !important;
|
||||
color: inherit !important;
|
||||
transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
|
||||
}
|
||||
|
||||
.feature-box::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
border-radius: inherit;
|
||||
background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 45%);
|
||||
opacity: 0;
|
||||
transition: opacity 0.25s ease;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
html.dark .feature-box {
|
||||
background: rgba(25, 25, 25, 0.2) !important;
|
||||
}
|
||||
|
||||
.feature-box:hover {
|
||||
background: rgba(150, 150, 150, 1);
|
||||
}
|
||||
|
||||
.feature-box:hover::after {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.box-icon {
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
border-radius: 12px;
|
||||
background: var(--bg-elevated);
|
||||
color: var(--text-primary);
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
.box-icon svg {
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
}
|
||||
|
||||
.box-title {
|
||||
font-size: 17px;
|
||||
font-weight: 700;
|
||||
margin: 0 0 8px;
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
.box-desc {
|
||||
font-size: 14px;
|
||||
line-height: 1.55;
|
||||
margin: 0;
|
||||
color: var(--text-muted) !important;
|
||||
}
|
||||
|
||||
.box-meta {
|
||||
margin-top: auto;
|
||||
padding-top: 18px;
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
color: var(--text-muted);
|
||||
opacity: 0.75;
|
||||
}
|
||||
|
||||
.hero-greeting {
|
||||
position: relative;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
overflow: hidden;
|
||||
margin: 0 0 14px;
|
||||
border-radius: 100px;
|
||||
color: var(--text);
|
||||
letter-spacing: 0.01em;
|
||||
}
|
||||
|
||||
.hero-resume {
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
color: var(--text);
|
||||
margin-top: 30px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
@media (max-width: 900px) {
|
||||
#header-container {
|
||||
border-radius: 100px;
|
||||
top: max(6px, env(safe-area-inset-top));
|
||||
width: 90%;
|
||||
}
|
||||
|
||||
.header-video,
|
||||
.header-image {
|
||||
border-top-left-radius: 55px !important;
|
||||
border-top-right-radius: 55px !important;
|
||||
width: 97% !important;
|
||||
margin-left: auto !important;
|
||||
margin-right: auto !important;
|
||||
margin-top: 0px !important;
|
||||
}
|
||||
}
|
||||
|
||||
@media (orientation: landscape) and (max-height: 550px) {
|
||||
.home-header {
|
||||
padding: 20px 0 40px;
|
||||
}
|
||||
|
||||
.header-logo-badge {
|
||||
width: 44px;
|
||||
height: 44px;
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
|
||||
.header-title {
|
||||
font-size: 26px;
|
||||
margin-bottom: 6px;
|
||||
}
|
||||
|
||||
.header-desc {
|
||||
font-size: 13.5px;
|
||||
margin-bottom: 14px;
|
||||
max-width: 540px;
|
||||
}
|
||||
|
||||
.content-section {
|
||||
margin-top: 32px;
|
||||
}
|
||||
|
||||
.vyla-grid {
|
||||
grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
|
||||
gap: 12px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
<div class="home-container">
|
||||
<div class="body-blurred-backdrop">
|
||||
<video class="body-blurred-video" autoplay muted loop playsinline src=""></video>
|
||||
<img class="body-blurred-image" alt="" width="1920" height="1080" />
|
||||
</div>
|
||||
|
||||
<header class="home-header">
|
||||
<video class="header-video" autoplay muted loop playsinline preload="none" src=""></video>
|
||||
<img class="header-image" alt="" width="1920" height="1080" />
|
||||
|
||||
<div class="header-tint"></div>
|
||||
|
||||
<div class="header-content">
|
||||
<div class="header-logo-badge">
|
||||
<img src="/src/assets/images/logo.png" alt="Vyla Entertainment Logo" width="58" height="58" decoding="async" />
|
||||
</div>
|
||||
<h1 class="header-title">Vyla Entertainment</h1>
|
||||
<p class="header-desc">A community-built media project focused on freedom, privacy, and giving people control over their own experience.</p>
|
||||
|
||||
<div class="header-actions">
|
||||
<div class="header-actions-row">
|
||||
<a href="/start-here/introduction" class="btn-primary" aria-label="Get Started with Vyla Ecosystem">
|
||||
Get Started
|
||||
<svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
|
||||
<path d="M5 12h14M12 5l7 7-7 7" />
|
||||
</svg>
|
||||
</a>
|
||||
<a href="/sdk" class="btn-secondary" aria-label="Explore Vyla SDK Documentation">Vyla SDK</a>
|
||||
</div>
|
||||
<a href="/stream-api/overview" class="btn-secondary" aria-label="Explore Stream API Documentation">Stream API</a>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<div class="content-section">
|
||||
<div class="section-head">
|
||||
<h2>Ecosystem & Products</h2>
|
||||
<p>Native frontends running on desktop, mobile, and television form factors.</p>
|
||||
</div>
|
||||
|
||||
<div class="vyla-grid">
|
||||
<a href="/products/home" class="feature-box" aria-label="Explore Vyla Home desktop application for Windows, macOS, and Linux">
|
||||
<div class="box-icon" aria-hidden="true">
|
||||
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
||||
<rect x="2" y="3" width="20" height="14" rx="2" />
|
||||
<line x1="8" y1="21" x2="16" y2="21" />
|
||||
<line x1="12" y1="17" x2="12" y2="21" />
|
||||
</svg>
|
||||
</div>
|
||||
<div class="box-title">Vyla Home</div>
|
||||
<p class="box-desc">Desktop control center and runtime designed for Windows, macOS, and Linux.</p>
|
||||
<div class="box-meta">Explore Desktop →</div>
|
||||
</a>
|
||||
|
||||
<a href="/products/go" class="feature-box" aria-label="Explore Vyla Go mobile application for Android">
|
||||
<div class="box-icon" aria-hidden="true">
|
||||
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
||||
<rect x="5" y="2" width="14" height="20" rx="2" ry="2" />
|
||||
<line x1="12" y1="18" x2="12.01" y2="18" />
|
||||
</svg>
|
||||
</div>
|
||||
<div class="box-title">Vyla Go</div>
|
||||
<p class="box-desc">Android mobile application managing local service lifecycles and background playback.</p>
|
||||
<div class="box-meta">Explore Mobile →</div>
|
||||
</a>
|
||||
|
||||
<a href="/products/tv" class="feature-box" aria-label="Explore Vyla TV application for Android TV and Fire TV">
|
||||
<div class="box-icon" aria-hidden="true">
|
||||
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
||||
<rect x="2" y="7" width="20" height="15" rx="2" ry="2" />
|
||||
<polyline points="17 2 12 7 7 2" />
|
||||
</svg>
|
||||
</div>
|
||||
<div class="box-title">Vyla TV</div>
|
||||
<p class="box-desc">Leanback streaming client for Android TV built with Jetpack Compose and ExoPlayer.</p>
|
||||
<div class="box-meta">Explore Android TV →</div>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="content-section">
|
||||
<div class="section-head">
|
||||
<h2>Developer Services</h2>
|
||||
<p>Self-hostable tools and scraper libraries for distributed playback resolution.</p>
|
||||
</div>
|
||||
|
||||
<div class="vyla-grid">
|
||||
<a href="/sdk" class="feature-box" aria-label="Explore Vyla SDK scraping library and API reference">
|
||||
<div class="box-icon" aria-hidden="true">
|
||||
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
||||
<polyline points="16 18 22 12 16 6" />
|
||||
<polyline points="8 6 2 12 8 18" />
|
||||
</svg>
|
||||
</div>
|
||||
<div class="box-title">Vyla SDK</div>
|
||||
<p class="box-desc">Node.js scraper resolver package providing resilient provider extraction and subtitle parsing.</p>
|
||||
<div class="box-meta">View SDK Reference →</div>
|
||||
</a>
|
||||
|
||||
<a href="/stream-api/overview" class="feature-box" aria-label="Explore Stream API progressive SSE streaming gateway">
|
||||
<div class="box-icon" aria-hidden="true">
|
||||
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
||||
<path d="M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242" />
|
||||
<path d="M12 12v9" />
|
||||
<path d="m8 17 4 4 4-4" />
|
||||
</svg>
|
||||
</div>
|
||||
<div class="box-title">Stream API</div>
|
||||
<p class="box-desc">Self-hosted HTTP and SSE proxy emitting real-time discovery events directly to players.</p>
|
||||
<div class="box-meta">View API Endpoints →</div>
|
||||
</a>
|
||||
|
||||
<a href="/misc/project/support-us" class="feature-box" aria-label="Support Vyla development, domain renewal, and infrastructure">
|
||||
<div class="box-icon" aria-hidden="true">
|
||||
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
||||
<path d="M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z" />
|
||||
</svg>
|
||||
</div>
|
||||
<div class="box-title">Support Vyla</div>
|
||||
<p class="box-desc">Help fund infrastructure, domain renewal, and community development via crypto donations.</p>
|
||||
<div class="box-meta">Support Us →</div>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
(() => {
|
||||
const bg = document.querySelector('.body-blurred-backdrop');
|
||||
if (!bg || CSS.supports?.('animation-timeline', 'scroll()')) return;
|
||||
const onScroll = () => {
|
||||
const y = window.scrollY || document.documentElement.scrollTop;
|
||||
bg.style.opacity = Math.max(0, 1 - y / 450);
|
||||
};
|
||||
window.addEventListener('scroll', onScroll, { passive: true });
|
||||
onScroll();
|
||||
})();
|
||||
</script>
|
||||
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();
|
||||
})();
|
||||
|
||||
@@ -2337,20 +2337,6 @@ body:not(.is-home) main.prose {
|
||||
zoom: var(--text-scale, 1);
|
||||
}
|
||||
|
||||
body.no-deco .cobweb,
|
||||
body.no-deco .spider-container,
|
||||
body.no-deco .snowfall,
|
||||
body.no-deco .leaf-fall,
|
||||
body.no-deco .light-string {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
body.no-video .video-bg,
|
||||
body.no-video .body-blurred-video,
|
||||
body.no-video .header-video {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
body.no-motion *,
|
||||
body.no-motion *::before,
|
||||
body.no-motion *::after {
|
||||
@@ -2814,12 +2800,14 @@ body.no-motion *::after {
|
||||
will-change: top, left, width, height, transform;
|
||||
}
|
||||
|
||||
main.prose img {
|
||||
.vyla-banner {
|
||||
cursor: zoom-in;
|
||||
transition: opacity 0.2s ease, transform 0.2s ease;
|
||||
max-width: 400px;
|
||||
border-radius: 35px;
|
||||
}
|
||||
|
||||
main.prose img:hover {
|
||||
.vyla-banner:hover {
|
||||
opacity: 0.95;
|
||||
}
|
||||
|
||||
@@ -3317,13 +3305,6 @@ main.prose li {
|
||||
margin: 4px 0;
|
||||
}
|
||||
|
||||
main.prose img {
|
||||
max-width: 100%;
|
||||
border-radius: 16px;
|
||||
display: block;
|
||||
margin: 20px 0;
|
||||
}
|
||||
|
||||
main.prose img.vyla-banner {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
2
src/css/bundle.min.css
vendored
2
src/css/bundle.min.css
vendored
File diff suppressed because one or more lines are too long
@@ -266,20 +266,6 @@ body:not(.is-home) main.prose {
|
||||
zoom: var(--text-scale, 1);
|
||||
}
|
||||
|
||||
body.no-deco .cobweb,
|
||||
body.no-deco .spider-container,
|
||||
body.no-deco .snowfall,
|
||||
body.no-deco .leaf-fall,
|
||||
body.no-deco .light-string {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
body.no-video .video-bg,
|
||||
body.no-video .body-blurred-video,
|
||||
body.no-video .header-video {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
body.no-motion *,
|
||||
body.no-motion *::before,
|
||||
body.no-motion *::after {
|
||||
|
||||
@@ -445,12 +445,14 @@
|
||||
will-change: top, left, width, height, transform;
|
||||
}
|
||||
|
||||
main.prose img {
|
||||
.vyla-banner {
|
||||
cursor: zoom-in;
|
||||
transition: opacity 0.2s ease, transform 0.2s ease;
|
||||
max-width: 400px;
|
||||
border-radius: 35px;
|
||||
}
|
||||
|
||||
main.prose img:hover {
|
||||
.vyla-banner:hover {
|
||||
opacity: 0.95;
|
||||
}
|
||||
|
||||
|
||||
@@ -81,13 +81,6 @@ main.prose li {
|
||||
margin: 4px 0;
|
||||
}
|
||||
|
||||
main.prose img {
|
||||
max-width: 100%;
|
||||
border-radius: 16px;
|
||||
display: block;
|
||||
margin: 20px 0;
|
||||
}
|
||||
|
||||
main.prose img.vyla-banner {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
@@ -28,6 +28,11 @@ var THEME_MEDIA = {
|
||||
light: "/src/assets/images/wallpaper-media/ocean.webp"
|
||||
};
|
||||
|
||||
var THEME_MEDIA_MOBILE = {
|
||||
dark: "/src/assets/images/wallpaper-media/tree-mobile.webp",
|
||||
light: "/src/assets/images/wallpaper-media/ocean.webp"
|
||||
};
|
||||
|
||||
var SITE_TREE = [
|
||||
{
|
||||
"id": "vyla",
|
||||
@@ -258,7 +263,8 @@ function applyTheme() {
|
||||
applyPreferences();
|
||||
|
||||
|
||||
var targetSrc = THEME_MEDIA[theme] || THEME_MEDIA.dark;
|
||||
var isMobile = window.innerWidth <= 768;
|
||||
var targetSrc = isMobile ? (THEME_MEDIA_MOBILE[theme] || THEME_MEDIA_MOBILE.dark) : (THEME_MEDIA[theme] || THEME_MEDIA.dark);
|
||||
|
||||
var videosOff = getPref("video", "on") === "off";
|
||||
var isImageSource = /\.(jpe?g|png|gif|webp|avif|svg)(\?.*)?$/i.test(targetSrc || "");
|
||||
@@ -490,9 +496,7 @@ function applyAccent(hex) {
|
||||
}
|
||||
|
||||
function applyPreferences() {
|
||||
document.body.classList.toggle("no-video", getPref("video", "on") === "off");
|
||||
document.body.classList.toggle("no-motion", getPref("motion", "on") === "off");
|
||||
document.body.classList.toggle("no-deco", getPref("deco", "on") === "off");
|
||||
var scale = parseInt(getPref("text", "100"), 10);
|
||||
if (!(scale >= 85 && scale <= 130)) scale = 100;
|
||||
document.documentElement.style.setProperty("--text-scale", String(scale / 100));
|
||||
@@ -2238,6 +2242,10 @@ document.addEventListener("DOMContentLoaded", function () {
|
||||
});
|
||||
}
|
||||
|
||||
window.addEventListener("resize", function () {
|
||||
applyTheme();
|
||||
});
|
||||
|
||||
applyTheme();
|
||||
buildThemeControls();
|
||||
buildSearch();
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Vyla
|
||||
# Vyla Entertainment
|
||||
|
||||
<p class="page-description">An open-source, modular media ecosystem. Native apps for desktop, mobile, and TV backed by a scraper SDK and self-hosted streaming gateway.</p>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user