This repository has no description
1{{ define "repo/fragments/readme" }}
2<div class="mt-4 rounded bg-white dark:bg-gray-800 drop-shadow-sm w-full mx-auto overflow-hidden">
3 {{- if .ReadmeFileName -}}
4 <div class="px-4 py-2 border-b border-gray-200 dark:border-gray-600">
5 <span class="flex items-center gap-2">
6 {{ i "file-text" "w-4 h-4" "text-gray-600 dark:text-gray-400" }}
7 <span class="font-mono text-sm text-gray-800 dark:text-gray-200">{{ .ReadmeFileName }}</span>
8 </span>
9 </div>
10 {{- end -}}
11 <section
12 class="px-6 pb-6 overflow-auto {{ if not .Raw }}
13 prose dark:prose-invert dark:[&_pre]:bg-gray-900
14 dark:[&_code]:text-gray-300 dark:[&_pre_code]:bg-gray-900
15 dark:[&_pre]:border dark:[&_pre]:border-gray-700
16 {{ end }}"
17 >
18 <article class="{{ if .Raw }}whitespace-pre{{ end }}">{{- if .Raw -}}<pre class="dark:bg-gray-800 dark:text-white overflow-x-auto">
19 {{- .Readme -}}
20 </pre>
21 {{- else -}}
22 {{ .HTMLReadme }}
23 {{- end -}}</article>
24 </section>
25</div>
26{{ end }}