mirror of
https://tangled.org/evan.jarrett.net/at-container-registry
synced 2026-08-31 13:17:09 +00:00
45 lines
1.4 KiB
HTML
45 lines
1.4 KiB
HTML
{{ define "user" }}
|
|
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>{{ .ViewedUser.Handle }} - ATCR</title>
|
|
<link rel="stylesheet" href="/static/css/style.css">
|
|
<script src="https://unpkg.com/htmx.org@1.9.10"></script>
|
|
<script src="/static/js/app.js"></script>
|
|
</head>
|
|
<body>
|
|
{{ template "nav" . }}
|
|
|
|
<main class="container">
|
|
<div class="home-page">
|
|
<div class="user-profile">
|
|
{{ if .ViewedUser.Avatar }}
|
|
<img src="{{ .ViewedUser.Avatar }}" alt="{{ .ViewedUser.Handle }}" class="profile-avatar">
|
|
{{ else }}
|
|
<div class="profile-avatar-placeholder">{{ firstChar .ViewedUser.Handle }}</div>
|
|
{{ end }}
|
|
<h1>{{ .ViewedUser.Handle }}</h1>
|
|
</div>
|
|
|
|
{{ if .Repositories }}
|
|
<div class="featured-grid">
|
|
{{ range .Repositories }}
|
|
{{ template "repo-card" . }}
|
|
{{ end }}
|
|
</div>
|
|
{{ else }}
|
|
<div class="empty-state">
|
|
<p>No images yet.</p>
|
|
</div>
|
|
{{ end }}
|
|
</div>
|
|
</main>
|
|
|
|
<!-- Modal container for HTMX -->
|
|
<div id="modal"></div>
|
|
</body>
|
|
</html>
|
|
{{ end }}
|