Improved app visual identity with new icon, logo and interface fonts

This commit is contained in:
Trevor Mears
2026-01-02 15:42:22 -08:00
parent c48f2e070e
commit 1be84d3ade
4 changed files with 90 additions and 62 deletions
+24 -11
View File
@@ -175,13 +175,16 @@ h4 {
align-items: center; align-items: center;
justify-content: center; justify-content: center;
font-size: 1.75rem; font-size: 1.75rem;
color: #fff; }
.logo svg {
fill: var(--color-accent);
} }
.brand-text { .brand-text {
font-family: 'Outfit', sans-serif; font-family: 'Century Gothic', sans-serif;
font-size: 1.5rem; font-size: 1.5rem;
font-weight: 800; font-weight: 500;
letter-spacing: -0.03em; letter-spacing: -0.03em;
color: #fff; color: #fff;
/* Visual correction: shift text slightly down to align optically with icon center */ /* Visual correction: shift text slightly down to align optically with icon center */
@@ -679,13 +682,13 @@ h4 {
.video-controls { .video-controls {
display: flex; display: flex;
} }
/* Make control buttons larger on mobile */ /* Make control buttons larger on mobile */
.video-control-btn { .video-control-btn {
width: 56px; width: 56px;
height: 56px; height: 56px;
} }
.video-control-btn .icon { .video-control-btn .icon {
width: 28px; width: 28px;
height: 28px; height: 28px;
@@ -1757,12 +1760,13 @@ kbd {
/* Mobile-first responsive breakpoints */ /* Mobile-first responsive breakpoints */
@media (max-width: 1024px) { @media (max-width: 1024px) {
/* Tablet adjustments */ /* Tablet adjustments */
:root { :root {
--sidebar-width: 280px; --sidebar-width: 280px;
--epg-sidebar-width: 200px; --epg-sidebar-width: 200px;
} }
.movies-grid, .movies-grid,
.series-grid { .series-grid {
gap: var(--space-sm); gap: var(--space-sm);
@@ -1771,6 +1775,7 @@ kbd {
} }
@media (max-width: 768px) { @media (max-width: 768px) {
/* Tablet/Mobile landscape */ /* Tablet/Mobile landscape */
:root { :root {
--navbar-height: 56px; --navbar-height: 56px;
@@ -2027,6 +2032,7 @@ kbd {
} }
@media (max-width: 640px) { @media (max-width: 640px) {
/* Mobile portrait - phones */ /* Mobile portrait - phones */
:root { :root {
--navbar-height: 52px; --navbar-height: 52px;
@@ -2167,7 +2173,8 @@ kbd {
} }
.up-next { .up-next {
display: none; /* Hide "Up Next" on very small screens */ display: none;
/* Hide "Up Next" on very small screens */
} }
/* EPG Guide - Mobile optimized */ /* EPG Guide - Mobile optimized */
@@ -2311,7 +2318,8 @@ kbd {
} }
.setting-info { .setting-info {
order: -1; /* Move label to top */ order: -1;
/* Move label to top */
} }
.setting-label { .setting-label {
@@ -2436,6 +2444,7 @@ kbd {
} }
@media (max-width: 480px) { @media (max-width: 480px) {
/* Extra small phones */ /* Extra small phones */
:root { :root {
--navbar-height: 48px; --navbar-height: 48px;
@@ -2503,12 +2512,14 @@ kbd {
} }
.channel-nav { .channel-nav {
display: none; /* Hide channel nav in landscape to save space */ display: none;
/* Hide channel nav in landscape to save space */
} }
} }
/* Touch-friendly improvements */ /* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) { @media (hover: none) and (pointer: coarse) {
/* Increase touch target sizes */ /* Increase touch target sizes */
.btn, .btn,
.nav-link, .nav-link,
@@ -2516,7 +2527,8 @@ kbd {
.movie-card, .movie-card,
.series-card, .series-card,
.tab { .tab {
min-height: 44px; /* iOS recommended touch target */ min-height: 44px;
/* iOS recommended touch target */
} }
.channel-item { .channel-item {
@@ -3063,6 +3075,7 @@ kbd {
.spin { .spin {
animation: spin 1s linear infinite; animation: spin 1s linear infinite;
} }
/* User Management Styles */ /* User Management Styles */
.user-list-container { .user-list-container {
margin: var(--space-lg) 0; margin: var(--space-lg) 0;
@@ -3131,4 +3144,4 @@ kbd {
margin-bottom: var(--space-xs); margin-bottom: var(--space-xs);
color: var(--color-text-primary); color: var(--color-text-primary);
font-weight: 500; font-weight: 500;
} }
+3
View File
@@ -0,0 +1,3 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 187.63 210.6">
<path fill="#6366f1" d="M169.71,87.87c-4.77,0-9.1,1.88-12.31,4.92L35.3,22.3c.35-1.4.56-2.86.56-4.37C35.86,8.03,27.83,0,17.93,0S0,8.03,0,17.93c0,8.44,5.84,15.5,13.69,17.4v140c-7.71,2.01-13.41,8.99-13.41,17.33,0,9.9,8.03,17.93,17.93,17.93s17.93-8.03,17.93-17.93c0-1.56-.22-3.07-.6-4.51l121.21-69.98c3.26,3.42,7.86,5.55,12.95,5.55,9.9,0,17.93-8.03,17.93-17.93s-8.03-17.93-17.93-17.93ZM152.78,99.92c-.14.41-.27.83-.38,1.25h-51.47l-44.18-24.72L30.4,30.8c.33-.32.64-.65.94-.99l121.45,70.12ZM22.17,175.2V35.33c.23-.05.45-.11.67-.17l26.35,45.65-.34,50.04-25.74,44.59c-.31-.09-.63-.17-.95-.24ZM31.52,180.69c-.27-.3-.55-.6-.84-.89l25.48-44.13,44.64-25.78h51.47c.07.32.15.63.24.94L31.52,180.69Z"/>
</svg>

After

Width:  |  Height:  |  Size: 764 B

+7 -4
View File
@@ -10,10 +10,12 @@
<meta name="mobile-web-app-capable" content="yes"> <meta name="mobile-web-app-capable" content="yes">
<title>NodeCast TV | IPTV Player</title> <title>NodeCast TV | IPTV Player</title>
<meta name="description" content="Stream live TV, movies, and series with EPG support"> <meta name="description" content="Stream live TV, movies, and series with EPG support">
<link rel="icon" type="image/svg+xml" href="/favicon.svg">
<link rel="stylesheet" href="css/main.css"> <link rel="stylesheet" href="css/main.css">
<link rel="preconnect" href="https://fonts.googleapis.com"> <link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&display=swap" rel="stylesheet"> <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@800&display=swap"
rel="stylesheet">
<!-- HLS.js for video playback --> <!-- HLS.js for video playback -->
<script src="https://cdn.jsdelivr.net/npm/hls.js@1.5.7/dist/hls.min.js"></script> <script src="https://cdn.jsdelivr.net/npm/hls.js@1.5.7/dist/hls.min.js"></script>
</head> </head>
@@ -23,11 +25,12 @@
<!-- Navigation --> <!-- Navigation -->
<nav class="navbar"> <nav class="navbar">
<div class="navbar-brand"> <div class="navbar-brand">
<span class="logo"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" class="icon"> <span class="logo"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 187.63 210.6" fill="#6366f1"
class="icon">
<path <path
d="M21 6h-7.59l3.29-3.29L16 2l-4 4-4-4-.71.71L10.59 6H3a2 2 0 0 0-2 2v12c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V8a2 2 0 0 0-2-2zm0 14H3V8h18v12zM9 10v8l7-4z" /> d="M169.71,87.87c-4.77,0-9.1,1.88-12.31,4.92L35.3,22.3c.35-1.4.56-2.86.56-4.37C35.86,8.03,27.83,0,17.93,0S0,8.03,0,17.93c0,8.44,5.84,15.5,13.69,17.4v140c-7.71,2.01-13.41,8.99-13.41,17.33,0,9.9,8.03,17.93,17.93,17.93s17.93-8.03,17.93-17.93c0-1.56-.22-3.07-.6-4.51l121.21-69.98c3.26,3.42,7.86,5.55,12.95,5.55,9.9,0,17.93-8.03,17.93-17.93s-8.03-17.93-17.93-17.93ZM152.78,99.92c-.14.41-.27.83-.38,1.25h-51.47l-44.18-24.72L30.4,30.8c.33-.32.64-.65.94-.99l121.45,70.12ZM22.17,175.2V35.33c.23-.05.45-.11.67-.17l26.35,45.65-.34,50.04-25.74,44.59c-.31-.09-.63-.17-.95-.24ZM31.52,180.69c-.27-.3-.55-.6-.84-.89l25.48-44.13,44.64-25.78h51.47c.07.32.15.63.24.94L31.52,180.69Z" />
</svg></span> </svg></span>
<span class="brand-text">NodeCast <span class="brand-accent">TV</span></span> <span class="brand-text">nodecast-tv</span>
</div> </div>
<button class="mobile-menu-toggle" id="mobile-menu-toggle" aria-label="Toggle menu"> <button class="mobile-menu-toggle" id="mobile-menu-toggle" aria-label="Toggle menu">
<span></span> <span></span>
+56 -47
View File
@@ -1,19 +1,21 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Login - NodeCast TV</title> <title>Login - NodeCast TV</title>
<link rel="icon" type="image/svg+xml" href="/favicon.svg">
<link rel="stylesheet" href="css/main.css"> <link rel="stylesheet" href="css/main.css">
<link href="https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&display=swap" rel="stylesheet"> <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet">
<style> <style>
body { body {
margin: 0; margin: 0;
padding: 0; padding: 0;
background: var(--color-bg-primary); background: var(--color-bg-primary);
font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif; font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
} }
.login-container { .login-container {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
@@ -22,7 +24,7 @@
min-height: 100vh; min-height: 100vh;
padding: 20px; padding: 20px;
} }
.login-box { .login-box {
background: var(--color-bg-secondary); background: var(--color-bg-secondary);
padding: var(--space-2xl); padding: var(--space-2xl);
@@ -32,40 +34,41 @@
max-width: 420px; max-width: 420px;
border: 1px solid var(--color-border); border: 1px solid var(--color-border);
} }
.login-logo { .login-logo {
text-align: center; text-align: center;
margin-bottom: var(--space-2xl); margin-bottom: var(--space-2xl);
} }
.login-logo .logo-icon { .login-logo .logo-icon {
width: 64px; width: 64px;
height: 64px; height: 64px;
margin: 0 auto var(--space-md); margin: 0 auto var(--space-md);
color: var(--color-accent); color: var(--color-accent);
} }
.login-logo h1 { .login-logo h1 {
font-family: 'Century Gothic', sans-serif;
font-size: 28px; font-size: 28px;
font-weight: 700; font-weight: 500;
color: var(--color-text-primary); color: var(--color-text-primary);
margin: 0; margin: 0;
} }
.login-logo .brand-accent { .login-logo .brand-accent {
color: var(--color-accent); color: var(--color-accent);
} }
.login-logo p { .login-logo p {
color: var(--color-text-secondary); color: var(--color-text-secondary);
margin: var(--space-sm) 0 0 0; margin: var(--space-sm) 0 0 0;
font-size: 14px; font-size: 14px;
} }
.form-group { .form-group {
margin-bottom: var(--space-lg); margin-bottom: var(--space-lg);
} }
.form-group label { .form-group label {
display: block; display: block;
margin-bottom: var(--space-sm); margin-bottom: var(--space-sm);
@@ -73,7 +76,7 @@
font-weight: 500; font-weight: 500;
font-size: 14px; font-size: 14px;
} }
.form-group input { .form-group input {
width: 100%; width: 100%;
padding: 12px 16px; padding: 12px 16px;
@@ -86,17 +89,17 @@
transition: all 0.2s; transition: all 0.2s;
box-sizing: border-box; box-sizing: border-box;
} }
.form-group input:focus { .form-group input:focus {
outline: none; outline: none;
border-color: var(--color-accent); border-color: var(--color-accent);
background: var(--color-bg-hover); background: var(--color-bg-hover);
} }
.form-group input::placeholder { .form-group input::placeholder {
color: var(--color-text-muted); color: var(--color-text-muted);
} }
.btn-login { .btn-login {
width: 100%; width: 100%;
padding: 14px; padding: 14px;
@@ -110,23 +113,23 @@
cursor: pointer; cursor: pointer;
transition: all 0.2s; transition: all 0.2s;
} }
.btn-login:hover { .btn-login:hover {
background: var(--color-accent-hover); background: var(--color-accent-hover);
transform: translateY(-1px); transform: translateY(-1px);
box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3); box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
} }
.btn-login:active { .btn-login:active {
transform: translateY(0); transform: translateY(0);
} }
.btn-login:disabled { .btn-login:disabled {
opacity: 0.5; opacity: 0.5;
cursor: not-allowed; cursor: not-allowed;
transform: none; transform: none;
} }
.error-message { .error-message {
background: rgba(239, 68, 68, 0.1); background: rgba(239, 68, 68, 0.1);
color: var(--color-error); color: var(--color-error);
@@ -137,11 +140,11 @@
font-size: 14px; font-size: 14px;
display: none; display: none;
} }
.error-message.show { .error-message.show {
display: block; display: block;
} }
.setup-message { .setup-message {
background: rgba(99, 102, 241, 0.1); background: rgba(99, 102, 241, 0.1);
color: var(--color-accent); color: var(--color-accent);
@@ -152,53 +155,58 @@
font-size: 14px; font-size: 14px;
display: none; display: none;
} }
.setup-message.show { .setup-message.show {
display: block; display: block;
} }
</style> </style>
</head> </head>
<body> <body>
<div class="login-container"> <div class="login-container">
<div class="login-box"> <div class="login-box">
<div class="login-logo"> <div class="login-logo">
<svg class="logo-icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"> <svg class="logo-icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 187.63 210.6"
<path d="M21 6h-7.59l3.29-3.29L16 2l-4 4-4-4-.71.71L10.59 6H3a2 2 0 0 0-2 2v12c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V8a2 2 0 0 0-2-2zm0 14H3V8h18v12zM9 10v8l7-4z" /> fill="currentColor">
<path
d="M169.71,87.87c-4.77,0-9.1,1.88-12.31,4.92L35.3,22.3c.35-1.4.56-2.86.56-4.37C35.86,8.03,27.83,0,17.93,0S0,8.03,0,17.93c0,8.44,5.84,15.5,13.69,17.4v140c-7.71,2.01-13.41,8.99-13.41,17.33,0,9.9,8.03,17.93,17.93,17.93s17.93-8.03,17.93-17.93c0-1.56-.22-3.07-.6-4.51l121.21-69.98c3.26,3.42,7.86,5.55,12.95,5.55,9.9,0,17.93-8.03,17.93-17.93s-8.03-17.93-17.93-17.93ZM152.78,99.92c-.14.41-.27.83-.38,1.25h-51.47l-44.18-24.72L30.4,30.8c.33-.32.64-.65.94-.99l121.45,70.12ZM22.17,175.2V35.33c.23-.05.45-.11.67-.17l26.35,45.65-.34,50.04-25.74,44.59c-.31-.09-.63-.17-.95-.24ZM31.52,180.69c-.27-.3-.55-.6-.84-.89l25.48-44.13,44.64-25.78h51.47c.07.32.15.63.24.94L31.52,180.69Z" />
</svg> </svg>
<h1>NodeCast <span class="brand-accent">TV</span></h1> <h1>nodecast-tv</h1>
<p id="login-subtitle">Sign in to continue</p> <p id="login-subtitle">Sign in to continue</p>
</div> </div>
<div class="error-message" id="error-message"></div> <div class="error-message" id="error-message"></div>
<div class="setup-message" id="setup-message"> <div class="setup-message" id="setup-message">
Welcome! Please create your admin account to get started. Welcome! Please create your admin account to get started.
</div> </div>
<form id="login-form"> <form id="login-form">
<div class="form-group"> <div class="form-group">
<label for="username">Username</label> <label for="username">Username</label>
<input type="text" id="username" name="username" required autocomplete="username" placeholder="Enter your username"> <input type="text" id="username" name="username" required autocomplete="username"
placeholder="Enter your username">
</div> </div>
<div class="form-group"> <div class="form-group">
<label for="password">Password</label> <label for="password">Password</label>
<input type="password" id="password" name="password" required autocomplete="current-password" minlength="6" placeholder="Enter your password"> <input type="password" id="password" name="password" required autocomplete="current-password"
minlength="6" placeholder="Enter your password">
</div> </div>
<button type="submit" class="btn-login" id="submit-btn">Sign In</button> <button type="submit" class="btn-login" id="submit-btn">Sign In</button>
</form> </form>
</div> </div>
</div> </div>
<script> <script>
// Check if setup is required // Check if setup is required
let isSetupMode = false; let isSetupMode = false;
async function checkSetupRequired() { async function checkSetupRequired() {
try { try {
const response = await fetch('/api/auth/setup-required'); const response = await fetch('/api/auth/setup-required');
const data = await response.json(); const data = await response.json();
if (data.setupRequired) { if (data.setupRequired) {
isSetupMode = true; isSetupMode = true;
document.getElementById('login-subtitle').textContent = 'Create Admin Account'; document.getElementById('login-subtitle').textContent = 'Create Admin Account';
@@ -210,24 +218,24 @@
console.error('Error checking setup status:', err); console.error('Error checking setup status:', err);
} }
} }
// Handle form submission // Handle form submission
document.getElementById('login-form').addEventListener('submit', async (e) => { document.getElementById('login-form').addEventListener('submit', async (e) => {
e.preventDefault(); e.preventDefault();
const username = document.getElementById('username').value; const username = document.getElementById('username').value;
const password = document.getElementById('password').value; const password = document.getElementById('password').value;
const submitBtn = document.getElementById('submit-btn'); const submitBtn = document.getElementById('submit-btn');
const errorMessage = document.getElementById('error-message'); const errorMessage = document.getElementById('error-message');
// Clear previous errors // Clear previous errors
errorMessage.classList.remove('show'); errorMessage.classList.remove('show');
errorMessage.textContent = ''; errorMessage.textContent = '';
// Disable button // Disable button
submitBtn.disabled = true; submitBtn.disabled = true;
submitBtn.textContent = 'Please wait...'; submitBtn.textContent = 'Please wait...';
try { try {
const endpoint = isSetupMode ? '/api/auth/setup' : '/api/auth/login'; const endpoint = isSetupMode ? '/api/auth/setup' : '/api/auth/login';
const response = await fetch(endpoint, { const response = await fetch(endpoint, {
@@ -237,19 +245,19 @@
}, },
body: JSON.stringify({ username, password }) body: JSON.stringify({ username, password })
}); });
const data = await response.json(); const data = await response.json();
if (!response.ok) { if (!response.ok) {
throw new Error(data.error || 'Authentication failed'); throw new Error(data.error || 'Authentication failed');
} }
// Store token // Store token
localStorage.setItem('authToken', data.token); localStorage.setItem('authToken', data.token);
// Redirect to main app // Redirect to main app
window.location.href = '/'; window.location.href = '/';
} catch (err) { } catch (err) {
errorMessage.textContent = err.message; errorMessage.textContent = err.message;
errorMessage.classList.add('show'); errorMessage.classList.add('show');
@@ -257,9 +265,10 @@
submitBtn.textContent = isSetupMode ? 'Create Account' : 'Sign In'; submitBtn.textContent = isSetupMode ? 'Create Account' : 'Sign In';
} }
}); });
// Check setup status on load // Check setup status on load
checkSetupRequired(); checkSetupRequired();
</script> </script>
</body> </body>
</html>
</html>