Files
documentation/home.txt
2026-11-08 21:22:32 -08:00

524 lines
16 KiB
Plaintext

<style>
.home-container {
width: 100%;
display: flex;
flex-direction: column;
align-items: center;
position: relative;
}
.home-header {
position: relative;
width: 100vw;
height: 70vh;
min-height: 400px;
margin-left: calc(-50vw + 50%);
margin-right: calc(-50vw + 50%);
padding-bottom: 24px;
overflow: hidden;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
box-sizing: border-box;
}
.header-video {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
object-fit: cover;
background-size: cover;
background-repeat: no-repeat;
z-index: 0;
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,
.btn-secondary {
position: relative;
display: inline-flex;
align-items: center;
justify-content: center;
overflow: hidden;
border-radius: 100px;
text-decoration: none !important;
transition: transform 0.2s ease, opacity 0.26s ease-out;
}
.btn-primary {
color: light-dark(#000000, #ffffff) !important;
}
.btn-secondary {
color: var(--text) !important;
}
.btn-primary:hover,
.btn-secondary:hover {
transform: translateY(-1px);
}
.glass-surface__filter {
width: 100%;
height: 100%;
pointer-events: none;
position: absolute;
inset: 0;
opacity: 0;
z-index: -1;
}
.glass-surface__content {
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
gap: 6px;
padding: 10px 22px;
border-radius: inherit;
position: relative;
z-index: 1;
font-size: 13.5px;
font-weight: 600;
}
.btn-secondary .glass-surface__content {
padding: 10px 20px;
}
.glass-surface--svg {
background: transparent !important;
border: none !important;
box-shadow: none !important;
backdrop-filter: var(--filter-id, url(#glass-filter)) saturate(var(--glass-saturation, 1)) !important;
-webkit-backdrop-filter: var(--filter-id, url(#glass-filter)) saturate(var(--glass-saturation, 1)) !important;
}
.glass-surface--fallback {
background: transparent!important;
-webkit-backdrop-filter: blur(12px);
backdrop-filter: blur(12px);
border: transparent !important;
box-shadow: none !important;
}
@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 {
width: 100%;
height: 100%;
object-fit: cover;
filter: blur(25px);
}
.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 {
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;
}
html.dark .feature-box {
background: rgba(25, 25, 25, 0.2) !important;
}
.feature-box:hover {
background: rgba(28, 28, 28, 0.8);
}
.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-greeting .glass-surface__content {
padding: 6px 16px;
font-size: 13px;
font-weight: 600;
letter-spacing: 0.01em;
}
.hero-resume {
max-width: min(90vw, 360px);
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
color: var(--text);
}
@media (max-width: 900px) {
#header-container {
border-radius: 100px;
top: max(6px, env(safe-area-inset-top));
width: 90%;
}
}
@media (orientation: landscape) and (max-height: 550px) {
.home-header {
height: auto;
min-height: 280px;
padding-top: calc(var(--header-height) + 24px);
padding-bottom: 28px;
}
.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;
}
.feature-box {
padding: 18px;
}
}
</style>
<div class="home-container">
<div class="body-blurred-backdrop">
<video class="body-blurred-video" autoplay muted loop playsinline
src=""></video>
</div>
<link rel="preload" href="" as="video" type="video/mp4"
crossorigin="anonymous">
<header class="home-header">
<video class="header-video" autoplay muted loop playsinline preload="auto"
src=""></video>
<div class="header-tint"></div>
<div class="header-content">
<div class="header-logo-badge">
<img src="/src/assets/images/logo.png" alt="Vyla" />
</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-secondary">
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">
<path d="M5 12h14M12 5l7 7-7 7" />
</svg>
</a>
<a href="/sdk" class="btn-secondary">Vyla SDK</a>
</div>
<a href="/stream-api/overview" class="btn-secondary">Stream API</a>
</div>
</div>
</header>
<div class="content-section">
<div class="section-head">
<h2>Ecosystem &amp; 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">
<div class="box-icon">
<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 &rarr;</div>
</a>
<a href="/products/go" class="feature-box">
<div class="box-icon">
<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 &rarr;</div>
</a>
<a href="/products/tv" class="feature-box">
<div class="box-icon">
<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 &rarr;</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">
<div class="box-icon">
<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 &rarr;</div>
</a>
<a href="/stream-api/overview" class="feature-box">
<div class="box-icon">
<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 &rarr;</div>
</a>
<a href="/concepts/providers" class="feature-box">
<div class="box-icon">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"
stroke-linejoin="round">
<circle cx="12" cy="12" r="10" />
<line x1="2" y1="12" x2="22" y2="12" />
<path
d="M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z" />
</svg>
</div>
<div class="box-title">Provider Architecture</div>
<p class="box-desc">Jitter buffering, failover priority arrays, proxy validation, and verification
mechanics.</p>
<div class="box-meta">Read Mechanics &rarr;</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>