···
{{ define "title" }}{{ .RepoInfo.FullName }}{{ end }}
4
-
<section id="repo-header" class="mb-4 py-2 px-6 dark:text-white">
4
+
<section id="repo-header" class="mb-4 p-2 dark:text-white">
{{ if .RepoInfo.Source }}
7
-
<div class="flex items-center">
8
-
{{ i "git-fork" "w-3 h-3 mr-1 shrink-0" }}
10
-
{{ $sourceOwner := didOrHandle .RepoInfo.Source.Did .RepoInfo.SourceHandle }}
11
-
<a class="ml-1 underline" href="/{{ $sourceOwner }}/{{ .RepoInfo.Source.Name }}">{{ $sourceOwner }}/{{ .RepoInfo.Source.Name }}</a>
6
+
<div class="flex items-center">
7
+
{{ i "git-fork" "w-3 h-3 mr-1 shrink-0" }}
9
+
{{ $sourceOwner := didOrHandle .RepoInfo.Source.Did .RepoInfo.SourceHandle }}
10
+
<a class="ml-1 underline" href="/{{ $sourceOwner }}/{{ .RepoInfo.Source.Name }}">{{ $sourceOwner }}/{{ .RepoInfo.Source.Name }}</a>
15
-
<div class="text-lg flex items-center justify-between">
16
-
<div class="flex items-center gap-2 flex-wrap">
17
-
{{ template "user/fragments/picHandleLink" .RepoInfo.OwnerDid }}
18
-
<span class="select-none">/</span>
19
-
<a href="/{{ .RepoInfo.FullName }}" class="font-bold">{{ .RepoInfo.Name }}</a>
20
-
{{ range $topic := .RepoInfo.Topics }}
21
-
<span class="font-normal normal-case text-sm rounded py-1 px-2 bg-white dark:bg-gray-800">{{ $topic }}</span>
13
+
<div class="text-lg flex flex-col sm:flex-row items-start gap-4 justify-between">
15
+
<div class="flex flex-col gap-2">
16
+
<!-- repo owner / repo name -->
17
+
<div class="flex items-center gap-2 flex-wrap">
18
+
{{ template "user/fragments/picHandleLink" .RepoInfo.OwnerDid }}
19
+
<span class="select-none">/</span>
20
+
<a href="/{{ .RepoInfo.FullName }}" class="font-bold">{{ .RepoInfo.Name }}</a>
23
+
<span class="flex flex-wrap items-center gap-x-4 gap-y-2 text-sm text-gray-600 dark:text-gray-300">
24
+
{{ if .RepoInfo.Description }}
25
+
{{ .RepoInfo.Description | description }}
27
+
<span class="italic">this repo has no description</span>
30
+
{{ with .RepoInfo.Website }}
31
+
<span class="flex items-center gap-1">
32
+
<span class="flex-shrink-0">{{ i "globe" "size-4" }}</span>
33
+
<a href="{{ . }}">{{ . | trimUriScheme }}</a>
37
+
{{ if .RepoInfo.Topics }}
38
+
<div class="flex items-center gap-1 text-sm text-gray-600 dark:text-gray-300">
39
+
{{ range .RepoInfo.Topics }}
40
+
<span class="bg-gray-200 dark:bg-gray-700 rounded py-1/2 px-1 text-sm">{{ . }}</span>
25
-
<div class="flex items-center gap-2 z-auto">
27
-
class="btn text-sm no-underline hover:no-underline flex items-center gap-2 group"
28
-
href="/{{ .RepoInfo.FullName }}/feed.atom"
30
-
{{ i "rss" "size-4" }}
48
+
<div class="w-full sm:w-fit grid grid-cols-3 gap-2 z-auto">
{{ template "repo/fragments/repoStar" .RepoInfo }}
class="btn text-sm no-underline hover:no-underline flex items-center gap-2 group"
···
{{ i "loader-circle" "w-4 h-4 animate-spin hidden group-[.htmx-request]:inline" }}
60
+
class="btn text-sm no-underline hover:no-underline flex items-center gap-2 group"
61
+
href="/{{ .RepoInfo.FullName }}/feed.atom">
62
+
{{ i "rss" "size-4" }}
63
+
<span class="md:hidden">atom</span>
44
-
<span id="repo-description" class="flex flex-wrap items-center gap-2 text-sm" hx-target="this" hx-swap="outerHTML">
45
-
{{ if .RepoInfo.Description }}
46
-
{{ .RepoInfo.Description | description }}
48
-
<span class="italic">this repo has no description</span>
50
-
<a href="{{ .RepoInfo.Website }}" class="underline text-blue-800 dark:text-blue-300">{{ .RepoInfo.Website | trimUriScheme }}</a>
<section class="w-full flex flex-col" >