mirror of
https://tangled.org/evan.jarrett.net/at-container-registry
synced 2026-08-31 21:31:19 +00:00
94 lines
3.2 KiB
HTML
94 lines
3.2 KiB
HTML
{{ define "home" }}
|
|
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>ATCR - Federated Container Registry</title>
|
|
<link rel="stylesheet" href="/static/css/style.css">
|
|
<script src="https://unpkg.com/htmx.org@1.9.10"></script>
|
|
</head>
|
|
<body>
|
|
{{ template "nav" . }}
|
|
|
|
{{ if not .User }}
|
|
<!-- Hero Section for Non-Logged-In Users -->
|
|
<section class="hero-section">
|
|
<div class="hero-content">
|
|
<h1 class="hero-title">ship containers on the open web.</h1>
|
|
<p class="hero-subtitle">
|
|
Push and pull Docker images on the AT Protocol.<br>
|
|
Browse public registries or control your data.
|
|
</p>
|
|
|
|
<div class="hero-terminal">
|
|
<div class="terminal-header">
|
|
<span class="terminal-dot"></span>
|
|
<span class="terminal-dot"></span>
|
|
<span class="terminal-dot"></span>
|
|
</div>
|
|
<pre class="terminal-content"><span class="terminal-prompt">$</span> docker login atcr.io
|
|
<span class="terminal-prompt">$</span> docker push atcr.io/you/app
|
|
|
|
<span class="terminal-comment"># same docker, decentralized</span></pre>
|
|
</div>
|
|
|
|
<div class="hero-actions">
|
|
<a href="/auth/oauth/login?return_to=/" class="btn-hero-primary">Get Started</a>
|
|
<a href="/install" class="btn-hero-secondary">Learn More</a>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Benefit Cards -->
|
|
<div class="hero-benefits">
|
|
<div class="benefit-card">
|
|
<div class="benefit-icon">🐳</div>
|
|
<h3>Works with Docker</h3>
|
|
<p>Use docker push & pull. No new tools to learn.</p>
|
|
</div>
|
|
<div class="benefit-card">
|
|
<div class="benefit-icon">⚓</div>
|
|
<h3>Your Data</h3>
|
|
<p>Join shared holds or captain your own storage.</p>
|
|
</div>
|
|
<div class="benefit-card">
|
|
<div class="benefit-icon">🧭</div>
|
|
<h3>Discover Images</h3>
|
|
<p>Browse and star public container registries.</p>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
{{ end }}
|
|
|
|
<main class="container">
|
|
<div class="home-page">
|
|
<!-- Featured Repositories Section -->
|
|
{{ if .FeaturedRepos }}
|
|
<div class="featured-section">
|
|
<h1>Featured</h1>
|
|
<div class="featured-grid">
|
|
{{ range .FeaturedRepos }}
|
|
{{ template "repo-card" . }}
|
|
{{ end }}
|
|
</div>
|
|
</div>
|
|
{{ end }}
|
|
|
|
<!-- Recent Pushes Section -->
|
|
<h1>What's New</h1>
|
|
|
|
<div id="push-list" hx-get="/api/recent-pushes" hx-trigger="load" hx-swap="innerHTML">
|
|
<!-- Initial loading state -->
|
|
<div class="loading">Loading recent pushes...</div>
|
|
</div>
|
|
</div>
|
|
</main>
|
|
|
|
<!-- Modal container for HTMX -->
|
|
<div id="modal"></div>
|
|
|
|
<script src="/static/js/app.js"></script>
|
|
</body>
|
|
</html>
|
|
{{ end }}
|