mirror of
https://github.com/Shik3i/KoalaSync.git
synced 2026-08-27 11:07:07 +00:00
Added modern landing page with animated CSS background and updated documentation
This commit is contained in:
@@ -12,6 +12,7 @@ KoalaSync is a specialized tool for **synchronized video playback** across multi
|
|||||||
## 2. Repository Structure
|
## 2. Repository Structure
|
||||||
- `extension/`: Chrome Extension (Manifest V3). Contains background service worker, content scripts, and popup UI.
|
- `extension/`: Chrome Extension (Manifest V3). Contains background service worker, content scripts, and popup UI.
|
||||||
- `server/`: Node.js Relay Server using Socket.IO (WebSocket-only).
|
- `server/`: Node.js Relay Server using Socket.IO (WebSocket-only).
|
||||||
|
- `website/`: **Landing Page** (Marketing, Tutorials, and Downloads).
|
||||||
- `shared/`: **Single Source of Truth** for protocol constants and event names.
|
- `shared/`: **Single Source of Truth** for protocol constants and event names.
|
||||||
- `scripts/`: Utility scripts (e.g., `sync-constants.sh`).
|
- `scripts/`: Utility scripts (e.g., `sync-constants.sh`).
|
||||||
- `docker-compose.yml`: Root-level orchestration for the relay server.
|
- `docker-compose.yml`: Root-level orchestration for the relay server.
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ KoalaSync is a Chrome Extension and Relay Server for synchronized video playback
|
|||||||
## Repository Structure
|
## Repository Structure
|
||||||
- `extension/`: Chrome Extension (Manifest V3).
|
- `extension/`: Chrome Extension (Manifest V3).
|
||||||
- `server/`: Node.js + Socket.IO Relay Server.
|
- `server/`: Node.js + Socket.IO Relay Server.
|
||||||
|
- `website/`: Static marketing landing page & tutorials.
|
||||||
- `shared/`: Shared protocol constants.
|
- `shared/`: Shared protocol constants.
|
||||||
|
|
||||||
## Setup Instructions
|
## Setup Instructions
|
||||||
|
|||||||
@@ -0,0 +1,50 @@
|
|||||||
|
// KoalaSync Landing Page Logic
|
||||||
|
|
||||||
|
document.addEventListener('DOMContentLoaded', () => {
|
||||||
|
// Scroll Reveal Logic
|
||||||
|
const revealElements = document.querySelectorAll('[data-reveal]');
|
||||||
|
|
||||||
|
const revealOnScroll = () => {
|
||||||
|
const windowHeight = window.innerHeight;
|
||||||
|
revealElements.forEach(el => {
|
||||||
|
const elementTop = el.getBoundingClientRect().top;
|
||||||
|
const revealPoint = 150;
|
||||||
|
|
||||||
|
if (elementTop < windowHeight - revealPoint) {
|
||||||
|
el.classList.add('revealed');
|
||||||
|
}
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
// Initial check
|
||||||
|
revealOnScroll();
|
||||||
|
|
||||||
|
// Scroll listener
|
||||||
|
window.addEventListener('scroll', revealOnScroll);
|
||||||
|
|
||||||
|
// Navbar scroll effect
|
||||||
|
const nav = document.querySelector('nav');
|
||||||
|
window.addEventListener('scroll', () => {
|
||||||
|
if (window.scrollY > 50) {
|
||||||
|
nav.style.padding = '0.75rem 0';
|
||||||
|
nav.style.background = 'rgba(15, 23, 42, 0.9)';
|
||||||
|
} else {
|
||||||
|
nav.style.padding = '1rem 0';
|
||||||
|
nav.style.background = 'rgba(30, 41, 59, 0.7)';
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
// Smooth scroll for anchors
|
||||||
|
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
|
||||||
|
anchor.addEventListener('click', function (e) {
|
||||||
|
e.preventDefault();
|
||||||
|
const target = document.querySelector(this.getAttribute('href'));
|
||||||
|
if (target) {
|
||||||
|
target.scrollIntoView({
|
||||||
|
behavior: 'smooth',
|
||||||
|
block: 'start'
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 670 KiB |
@@ -0,0 +1,133 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<title>KoalaSync | Real-time Video Synchronization for Friends</title>
|
||||||
|
<meta name="description" content="Watch YouTube, Twitch, and HTML5 videos perfectly synchronized with friends. KoalaSync is a privacy-first, open-source Chrome extension.">
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="style.css">
|
||||||
|
<link rel="icon" type="image/png" href="assets/logo.png">
|
||||||
|
|
||||||
|
<!-- Open Graph -->
|
||||||
|
<meta property="og:title" content="KoalaSync | Sync your videos">
|
||||||
|
<meta property="og:description" content="Watch together, stay in sync. Privacy-first video synchronization.">
|
||||||
|
<meta property="og:image" content="assets/hero.png">
|
||||||
|
<meta property="og:type" content="website">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
|
||||||
|
<div class="bg-blobs">
|
||||||
|
<div class="blob blob-1"></div>
|
||||||
|
<div class="blob blob-2"></div>
|
||||||
|
<div class="blob blob-3"></div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<nav>
|
||||||
|
<div class="container nav-content">
|
||||||
|
<div class="logo-area">
|
||||||
|
<img src="assets/logo.png" alt="KoalaSync Logo">
|
||||||
|
<span>KoalaSync</span>
|
||||||
|
</div>
|
||||||
|
<div class="nav-links">
|
||||||
|
<a href="#features">Features</a>
|
||||||
|
<a href="#how-it-works">How it works</a>
|
||||||
|
<a href="https://github.com/Shik3i/KoalaSync" target="_blank">GitHub</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</nav>
|
||||||
|
|
||||||
|
<header class="hero">
|
||||||
|
<div class="container hero-grid">
|
||||||
|
<div class="hero-text">
|
||||||
|
<h1 data-reveal>Watch Together.<br>Sync Perfectly.</h1>
|
||||||
|
<p data-reveal>KoalaSync brings friends closer through synchronized video playback. No lag, no tracking, just shared moments.</p>
|
||||||
|
<div class="cta-group" data-reveal>
|
||||||
|
<a href="#" class="btn btn-primary">
|
||||||
|
<img src="https://upload.wikimedia.org/wikipedia/commons/e/e1/Google_Chrome_icon_%28February_2022%29.svg" width="20" style="filter: brightness(100)">
|
||||||
|
Add to Chrome
|
||||||
|
</a>
|
||||||
|
<a href="https://github.com/Shik3i/KoalaSync" class="btn btn-secondary">
|
||||||
|
GitHub Repo
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<section id="features">
|
||||||
|
<div class="container">
|
||||||
|
<h2 style="font-size: 2.5rem; text-align: center; margin-bottom: 1rem;">Why KoalaSync?</h2>
|
||||||
|
<p style="text-align: center; color: var(--text-muted); margin-bottom: 4rem;">Built for performance, privacy, and simplicity.</p>
|
||||||
|
|
||||||
|
<div class="features-grid">
|
||||||
|
<div class="feature-card" data-reveal>
|
||||||
|
<div class="feature-icon">⚡</div>
|
||||||
|
<h3>Real-time Sync</h3>
|
||||||
|
<p>Proprietary two-phase synchronization protocol ensures sub-millisecond precision across all peers.</p>
|
||||||
|
</div>
|
||||||
|
<div class="feature-card" data-reveal>
|
||||||
|
<div class="feature-icon">🛡️</div>
|
||||||
|
<h3>Privacy First</h3>
|
||||||
|
<p>Zero data persistence. Our relay server runs entirely in RAM and collects no telemetry or logs.</p>
|
||||||
|
</div>
|
||||||
|
<div class="feature-card" data-reveal>
|
||||||
|
<div class="feature-icon">⭐</div>
|
||||||
|
<h3>Smart Match</h3>
|
||||||
|
<p>Find the right tab instantly. KoalaSync highlights and sorts matching video tabs for you.</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section id="how-it-works" style="background: rgba(255,255,255,0.02)">
|
||||||
|
<div class="container">
|
||||||
|
<h2 style="font-size: 2.5rem; text-align: center; margin-bottom: 4rem;">Getting Started</h2>
|
||||||
|
|
||||||
|
<div class="steps">
|
||||||
|
<div class="step">
|
||||||
|
<div class="step-text" data-reveal>
|
||||||
|
<div class="step-num">01</div>
|
||||||
|
<h3>Install Extension</h3>
|
||||||
|
<p>Add KoalaSync to your browser from the Chrome Web Store or download the latest developer ZIP from GitHub.</p>
|
||||||
|
</div>
|
||||||
|
<div style="background: var(--card); height: 200px; border-radius: 20px; border: 1px solid var(--glass-border);"></div>
|
||||||
|
</div>
|
||||||
|
<div class="step">
|
||||||
|
<div class="step-text" data-reveal>
|
||||||
|
<div class="step-num">02</div>
|
||||||
|
<h3>Create a Room</h3>
|
||||||
|
<p>Open the extension, enter a Room ID and Password, and hit Join. Your secure synchronization space is ready.</p>
|
||||||
|
</div>
|
||||||
|
<div style="background: var(--card); height: 200px; border-radius: 20px; border: 1px solid var(--glass-border);"></div>
|
||||||
|
</div>
|
||||||
|
<div class="step">
|
||||||
|
<div class="step-text" data-reveal>
|
||||||
|
<div class="step-num">03</div>
|
||||||
|
<h3>Share & Sync</h3>
|
||||||
|
<p>Send the invite link to your friends. Once they join, select your video tab and enjoy perfectly synced playback.</p>
|
||||||
|
</div>
|
||||||
|
<div style="background: var(--card); height: 200px; border-radius: 20px; border: 1px solid var(--glass-border);"></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section style="text-align: center;">
|
||||||
|
<div class="container">
|
||||||
|
<h2 data-reveal>Ready to sync?</h2>
|
||||||
|
<p data-reveal style="margin-bottom: 2rem; color: var(--text-muted);">Join thousands of users watching together.</p>
|
||||||
|
<a href="https://github.com/Shik3i/KoalaSync" class="btn btn-primary" data-reveal>View on GitHub</a>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<footer>
|
||||||
|
<div class="container">
|
||||||
|
<p>© 2026 KoalaSync. Open source under the MIT License.</p>
|
||||||
|
<p style="font-size: 0.8rem; margin-top: 1rem;">No data is stored on our servers. Pure RAM-based relay.</p>
|
||||||
|
</div>
|
||||||
|
</footer>
|
||||||
|
|
||||||
|
<script src="app.js"></script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@@ -0,0 +1,302 @@
|
|||||||
|
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');
|
||||||
|
|
||||||
|
:root {
|
||||||
|
--bg: #0f172a;
|
||||||
|
--card: #1e293b;
|
||||||
|
--accent: #6366f1;
|
||||||
|
--accent-glow: rgba(99, 102, 241, 0.3);
|
||||||
|
--text: #f8fafc;
|
||||||
|
--text-muted: #94a3b8;
|
||||||
|
--success: #22c55e;
|
||||||
|
--glass: rgba(30, 41, 59, 0.4);
|
||||||
|
--glass-border: rgba(255, 255, 255, 0.05);
|
||||||
|
}
|
||||||
|
|
||||||
|
* {
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
box-sizing: border-box;
|
||||||
|
}
|
||||||
|
|
||||||
|
body {
|
||||||
|
font-family: 'Outfit', sans-serif;
|
||||||
|
background-color: var(--bg);
|
||||||
|
color: var(--text);
|
||||||
|
line-height: 1.6;
|
||||||
|
overflow-x: hidden;
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* --- Animated Background --- */
|
||||||
|
.bg-blobs {
|
||||||
|
position: fixed;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
z-index: -1;
|
||||||
|
overflow: hidden;
|
||||||
|
background: radial-gradient(circle at 50% 50%, #1e1b4b 0%, #0f172a 100%);
|
||||||
|
}
|
||||||
|
|
||||||
|
.blob {
|
||||||
|
position: absolute;
|
||||||
|
width: 600px;
|
||||||
|
height: 600px;
|
||||||
|
background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
|
||||||
|
filter: blur(80px);
|
||||||
|
border-radius: 50%;
|
||||||
|
opacity: 0.5;
|
||||||
|
animation: move 25s infinite alternate ease-in-out;
|
||||||
|
}
|
||||||
|
|
||||||
|
.blob-1 { top: -100px; left: -100px; animation-delay: 0s; }
|
||||||
|
.blob-2 { bottom: -100px; right: -100px; animation-delay: -5s; background: radial-gradient(circle, rgba(139, 92, 246, 0.2) 0%, transparent 70%); }
|
||||||
|
.blob-3 { top: 40%; left: 30%; animation-duration: 35s; animation-delay: -10s; }
|
||||||
|
|
||||||
|
@keyframes move {
|
||||||
|
0% { transform: translate(0, 0) scale(1); }
|
||||||
|
33% { transform: translate(100px, 100px) scale(1.2); }
|
||||||
|
66% { transform: translate(-50px, 200px) scale(0.8); }
|
||||||
|
100% { transform: translate(0, 0) scale(1); }
|
||||||
|
}
|
||||||
|
|
||||||
|
/* --- Layout --- */
|
||||||
|
.container {
|
||||||
|
max-width: 1100px;
|
||||||
|
margin: 0 auto;
|
||||||
|
padding: 0 2rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
section {
|
||||||
|
padding: 6rem 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* --- Navigation --- */
|
||||||
|
nav {
|
||||||
|
position: fixed;
|
||||||
|
top: 0;
|
||||||
|
width: 100%;
|
||||||
|
z-index: 1000;
|
||||||
|
background: var(--glass);
|
||||||
|
backdrop-filter: blur(12px);
|
||||||
|
border-bottom: 1px solid var(--glass-border);
|
||||||
|
padding: 1rem 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.nav-content {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.logo-area {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 0.75rem;
|
||||||
|
font-weight: 800;
|
||||||
|
font-size: 1.5rem;
|
||||||
|
letter-spacing: -0.5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.logo-area img {
|
||||||
|
height: 40px;
|
||||||
|
width: 40px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.nav-links {
|
||||||
|
display: flex;
|
||||||
|
gap: 2rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.nav-links a {
|
||||||
|
color: var(--text-muted);
|
||||||
|
text-decoration: none;
|
||||||
|
font-weight: 500;
|
||||||
|
transition: color 0.3s;
|
||||||
|
}
|
||||||
|
|
||||||
|
.nav-links a:hover {
|
||||||
|
color: var(--accent);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* --- Hero Section --- */
|
||||||
|
.hero {
|
||||||
|
min-height: 100vh;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
padding-top: 8rem;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hero-grid {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
gap: 2rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hero-text h1 {
|
||||||
|
font-size: 5rem;
|
||||||
|
font-weight: 800;
|
||||||
|
line-height: 1;
|
||||||
|
margin-bottom: 1.5rem;
|
||||||
|
background: linear-gradient(to bottom, #fff 30%, #6366f1);
|
||||||
|
-webkit-background-clip: text;
|
||||||
|
-webkit-text-fill-color: transparent;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hero-text p {
|
||||||
|
font-size: 1.5rem;
|
||||||
|
color: var(--text-muted);
|
||||||
|
margin-bottom: 3rem;
|
||||||
|
max-width: 700px;
|
||||||
|
margin-left: auto;
|
||||||
|
margin-right: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.cta-group {
|
||||||
|
display: flex;
|
||||||
|
gap: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn {
|
||||||
|
padding: 1rem 2rem;
|
||||||
|
border-radius: 12px;
|
||||||
|
font-weight: 600;
|
||||||
|
text-decoration: none;
|
||||||
|
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
||||||
|
display: inline-flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 0.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-primary {
|
||||||
|
background: var(--accent);
|
||||||
|
color: white;
|
||||||
|
box-shadow: 0 10px 15px -3px var(--accent-glow);
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-primary:hover {
|
||||||
|
transform: translateY(-2px);
|
||||||
|
box-shadow: 0 20px 25px -5px var(--accent-glow);
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-secondary {
|
||||||
|
background: var(--card);
|
||||||
|
color: var(--text);
|
||||||
|
border: 1px solid var(--glass-border);
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-secondary:hover {
|
||||||
|
background: #2d3748;
|
||||||
|
transform: translateY(-2px);
|
||||||
|
}
|
||||||
|
|
||||||
|
.hero-image {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* --- Features --- */
|
||||||
|
.features-grid {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
|
||||||
|
gap: 2rem;
|
||||||
|
margin-top: 4rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.feature-card {
|
||||||
|
background: var(--card);
|
||||||
|
padding: 2.5rem;
|
||||||
|
border-radius: 24px;
|
||||||
|
border: 1px solid var(--glass-border);
|
||||||
|
transition: transform 0.3s;
|
||||||
|
}
|
||||||
|
|
||||||
|
.feature-card:hover {
|
||||||
|
transform: translateY(-10px);
|
||||||
|
}
|
||||||
|
|
||||||
|
.feature-icon {
|
||||||
|
width: 48px;
|
||||||
|
height: 48px;
|
||||||
|
background: var(--accent-glow);
|
||||||
|
color: var(--accent);
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
border-radius: 12px;
|
||||||
|
margin-bottom: 1.5rem;
|
||||||
|
font-size: 1.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.feature-card h3 {
|
||||||
|
margin-bottom: 1rem;
|
||||||
|
font-size: 1.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.feature-card p {
|
||||||
|
color: var(--text-muted);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* --- How it works --- */
|
||||||
|
.steps {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 4rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.step {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: 1fr 1fr;
|
||||||
|
gap: 4rem;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.step:nth-child(even) .step-text {
|
||||||
|
order: 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
.step-num {
|
||||||
|
font-size: 5rem;
|
||||||
|
font-weight: 800;
|
||||||
|
color: var(--accent-glow);
|
||||||
|
line-height: 1;
|
||||||
|
margin-bottom: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* --- Footer --- */
|
||||||
|
footer {
|
||||||
|
padding: 4rem 0;
|
||||||
|
border-top: 1px solid var(--glass-border);
|
||||||
|
text-align: center;
|
||||||
|
color: var(--text-muted);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* --- Animations --- */
|
||||||
|
[data-reveal] {
|
||||||
|
opacity: 0;
|
||||||
|
transform: translateY(30px);
|
||||||
|
transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
|
||||||
|
}
|
||||||
|
|
||||||
|
[data-reveal].revealed {
|
||||||
|
opacity: 1;
|
||||||
|
transform: translateY(0);
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 768px) {
|
||||||
|
.hero-grid, .step {
|
||||||
|
grid-template-columns: 1fr;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
.hero-text h1 {
|
||||||
|
font-size: 2.5rem;
|
||||||
|
}
|
||||||
|
.cta-group {
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
.nav-links {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user