Files
SanctuaryCommander/blueprints/home/home.html
T
2026-11-13 22:29:30 -05:00

129 lines
8.0 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{% macro icon(name) -%}
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false">
{% if name == 'image' %}
<rect x="3" y="4" width="18" height="16" rx="2"/><circle cx="8" cy="9" r="1.5"/><path d="m4 17 5-5 3.5 3.5 2.5-2.5 5 5"/>
{% elif name == 'video' %}
<rect x="3" y="5" width="18" height="14" rx="2"/><path d="m10 9 5 3-5 3z"/>
{% elif name == 'stream' %}
<circle cx="12" cy="12" r="2"/><path d="M8.5 8.5a5 5 0 0 0 0 7m7-7a5 5 0 0 1 0 7M5.5 5.5a9 9 0 0 0 0 13m13-13a9 9 0 0 1 0 13"/>
{% elif name == 'youtube' %}
<rect x="3" y="6" width="18" height="12" rx="3"/><path d="m10 9.5 4.5 2.5-4.5 2.5z"/>
{% elif name == 'download' %}
<path d="M12 3v11m-4-4 4 4 4-4M4 16v3a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-3"/>
{% elif name == 'screen' %}
<rect x="3" y="4" width="18" height="14" rx="2"/><path d="M8 21h8m-4-3v3"/>
{% elif name == 'arrow' %}
<path d="M4 12h15m-5-5 5 5-5 5"/>
{% endif %}
</svg>
{%- endmacro %}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Sanctuary Commander</title>
<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
<link rel="stylesheet" href="{{ url_for('static', filename='home.css') }}">
<script src="{{ url_for('static', filename='home.js') }}" defer></script>
</head>
<body class="home-page">
<div class="home-shell">
<header class="home-header">
<a class="brand" href="{{ url_for('home.root_route') }}" aria-label="Sanctuary Commander home">
<span class="brand-mark">{{ icon('screen') }}</span>
<span class="brand-name">Sanctuary <span>Commander</span></span>
</a>
<span class="header-label">MEDIA CONTROL <span aria-hidden="true">/</span> HOME</span>
</header>
<main>
<section class="hero" aria-labelledby="home-title">
<div class="hero-copy">
<p class="eyebrow"><span class="eyebrow-line" aria-hidden="true"></span> YOUR CONTROL CENTER</p>
<h1 id="home-title">Your media,<br><em>ready for the moment.</em></h1>
<p class="hero-description">Choose what’s on screen, prepare content ahead of time, and keep everything in one place.</p>
<a class="primary-link" href="{{ url_for('media_library.media_list') }}">
Open media library <span class="link-arrow">{{ icon('arrow') }}</span>
</a>
</div>
<aside class="selection-card" aria-labelledby="selection-heading"
data-selection-url="{{ url_for('media_library.playback_status') }}">
<div class="selection-topline">
<span id="selection-heading" class="selection-label">PLAYBACK SELECTION</span>
<span class="selection-sparkle" aria-hidden="true">✳</span>
</div>
<div class="selection-visual" aria-hidden="true">
<div class="screen-art">
<span class="screen-art-play"><svg viewBox="0 0 24 24" fill="currentColor"><path d="m9 6 10 6-10 6z"/></svg></span>
<span class="screen-art-line"></span>
</div>
<span class="screen-art-base"></span>
</div>
<div class="selection-content" aria-live="polite" aria-atomic="true">
<p class="selection-caption">CURRENT SELECTION</p>
<p id="home-selection" class="selection-name">Open your library to view the selection.</p>
<p id="home-selection-detail" class="selection-detail">The player runs separately on your display.</p>
</div>
</aside>
</section>
<section class="prepare-section" aria-labelledby="prepare-heading">
<div class="section-heading">
<div>
<p class="eyebrow">BUILD YOUR LIBRARY</p>
<h2 id="prepare-heading">Add something new<span class="heading-period">.</span></h2>
</div>
<p>Get your content ready before you need it.</p>
</div>
<div class="action-grid">
<a class="action-card" href="{{ url_for('upload_photo.get_page') }}">
<span class="action-icon icon-image">{{ icon('image') }}</span>
<span class="action-card-copy"><span class="action-title">Upload an image</span><span class="action-description">Add a photo or slide from your device.</span></span>
<span class="action-arrow">{{ icon('arrow') }}</span>
</a>
<a class="action-card" href="{{ url_for('upload_video.get_page') }}">
<span class="action-icon icon-video">{{ icon('video') }}</span>
<span class="action-card-copy"><span class="action-title">Upload a video</span><span class="action-description">Save a video for playback later.</span></span>
<span class="action-arrow">{{ icon('arrow') }}</span>
</a>
<a class="action-card" href="{{ url_for('configure_stream.get_page') }}">
<span class="action-icon icon-stream">{{ icon('stream') }}</span>
<span class="action-card-copy"><span class="action-title">Connect a stream</span><span class="action-description">Add a live or network stream.</span></span>
<span class="action-arrow">{{ icon('arrow') }}</span>
</a>
<a class="action-card" href="{{ url_for('youtube_download.request_download') }}">
<span class="action-icon icon-youtube">{{ icon('youtube') }}</span>
<span class="action-card-copy"><span class="action-title">Get a YouTube video</span><span class="action-description">Download a video to play offline.</span></span>
<span class="action-arrow">{{ icon('arrow') }}</span>
</a>
</div>
</section>
<section class="download-panel" aria-labelledby="downloads-heading">
<span class="download-icon">{{ icon('download') }}</span>
<div class="download-copy">
<p class="eyebrow">DOWNLOAD ACTIVITY</p>
<h2 id="downloads-heading">YouTube downloads</h2>
<p>Review pending, in-progress, and failed downloads.</p>
</div>
<a class="secondary-link" href="{{ url_for('youtube_download.list_jobs') }}">
View download jobs <span class="link-arrow">{{ icon('arrow') }}</span>
</a>
</section>
<section class="upcoming-panel" aria-labelledby="upcoming-heading">
<span class="upcoming-icon">{{ icon('screen') }}</span>
<div>
<div class="upcoming-title-row"><h2 id="upcoming-heading">TV &amp; screen controls</h2><span class="upcoming-tag">COMING SOON</span></div>
<p>TV power, disable video, and blackout controls aren’t available yet.</p>
</div>
</section>
</main>
<footer class="home-footer"><span>Sanctuary Commander</span><span>MEDIA CONTROL, MADE SIMPLE</span></footer>
</div>
</body>
</html>