{{ define "home" }} {{ template "head" . }} {{ template "meta" .Meta }} {{ template "nav" . }} {{ if not .User }} {{ template "hero" . }} {{ end }}
{{ if .FeaturedRepos }}

Featured

{{ if gt (len .FeaturedRepos) 1 }}
{{ end }}
{{ end }} {{ if .RecentRepos }}

What's New

{{ template "card-grid" (dict "Repositories" .RecentRepos) }}
{{ end }} {{ if and (not .FeaturedRepos) (not .RecentRepos) }} {{ if .HasError }} {{ template "state-error" (dict "Title" "We couldn't load the home page" "Subtext" "Something went wrong fetching repositories. This is usually temporary." "RetryURL" "/" ) }} {{ else }}
{{ if .User }} {{ icon "package" "size-12 mx-auto mb-4 text-base-content/30" }}

Nothing here yet

Push your first image to get started.

{{ template "docker-command" (print "docker push atcr.io/" .User.Handle "/my-image:latest") }} {{ else }} {{ icon "package" "size-12 mx-auto mb-4 text-base-content/30" }}

No public repositories yet

Be the first to push an image.

{{ end }}
{{ end }} {{ else if .HasError }} {{/* Partial failure: render a non-blocking warning above what did load. */}} {{ template "alert" (dict "Type" "warning" "Message" "Some sections couldn't be loaded right now. Try refreshing the page.") }} {{ end }}
{{ template "footer" . }} {{ end }}