{{define "launcher_shared"}}
<!DOCTYPE html>
<html lang="hu">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="robots" content="noindex, nofollow">
    <title>Indítópult</title>
    <link rel="icon" type="image/svg+xml" href="/static/favicon.svg">
    <link rel="stylesheet" href="/static/style.css">
</head>
<body class="guest-body">
<main class="guest-content">
    <div class="page-header">
        <h2>Indítópult</h2>
        <span class="domain-badge">{{.Domain}}</span>
    </div>
    {{if .Apps}}
    <div class="launch-grid">
        {{range .Apps}}
        {{if .Clickable}}
        <a class="launch-cell" href="{{.Href}}" target="_blank" rel="noopener noreferrer">
            {{template "launch_tile" (dict "Slug" .Slug "BrandColor" .BrandColor "DisplayName" .DisplayName "Off" false)}}
            <span class="launch-name">{{.DisplayName}}</span>
        </a>
        {{else}}
        <div class="launch-cell launch-cell--off">
            {{template "launch_tile" (dict "Slug" .Slug "BrandColor" .BrandColor "DisplayName" .DisplayName "Off" true)}}
            <span class="launch-name">{{.DisplayName}}</span>
            <span class="launch-off-label">{{.Label}}</span>
        </div>
        {{end}}
        {{end}}
    </div>
    {{else}}
    <div class="empty-state">
        <p>Jelenleg nincs elérhető alkalmazás.</p>
    </div>
    {{end}}
</main>
</body>
</html>
{{end}}
