mirror of
https://gitlab.com/vyla-entertainment/documentation.git
synced 2026-11-20 09:37:28 -05:00
tweaked UI, added landing page
This commit is contained in:
414
home.txt
Normal file
414
home.txt
Normal file
@@ -0,0 +1,414 @@
|
||||
<style>
|
||||
.home-container {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.home-header {
|
||||
position: relative;
|
||||
width: 100vw;
|
||||
height: 80vh;
|
||||
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 {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
padding: 10px 22px;
|
||||
border-radius: 100px;
|
||||
background: #000000;
|
||||
color: #ffffff !important;
|
||||
font-size: 13.5px;
|
||||
font-weight: 600;
|
||||
text-decoration: none !important;
|
||||
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
|
||||
transition: transform 0.15s ease;
|
||||
}
|
||||
|
||||
html.dark .btn-primary {
|
||||
background: #FFFFFF;
|
||||
color: #000000 !important;
|
||||
}
|
||||
|
||||
.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 450px;
|
||||
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;
|
||||
}
|
||||
|
||||
.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: #ffffff !important;
|
||||
}
|
||||
|
||||
.section-head p {
|
||||
font-size: 14.5px;
|
||||
margin: 0;
|
||||
color: #a1a1aa;
|
||||
}
|
||||
|
||||
.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(18, 18, 18, 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;
|
||||
}
|
||||
|
||||
@media (max-width: 900px) {
|
||||
#header-container {
|
||||
border-radius: 100px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
<div class="home-container">
|
||||
<div class="body-blurred-backdrop">
|
||||
<video class="body-blurred-video" autoplay muted loop playsinline
|
||||
src="https://www.pexels.com/download/video/27564013/"></video>
|
||||
</div>
|
||||
|
||||
<link rel="preload" href="https://www.pexels.com/download/video/27564013/" as="video" type="video/mp4"
|
||||
crossorigin="anonymous">
|
||||
|
||||
<header class="home-header">
|
||||
<video class="header-video" autoplay muted loop playsinline preload="auto"
|
||||
src="https://www.pexels.com/download/video/27564013/"></video>
|
||||
|
||||
<div class="header-tint"></div>
|
||||
|
||||
<div class="header-content">
|
||||
<div class="header-logo-badge">
|
||||
<img 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-primary">
|
||||
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 & 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 →</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 →</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 →</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 →</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 →</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 →</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>
|
||||
Reference in New Issue
Block a user