summaryrefslogtreecommitdiffstats
path: root/themes/danix-xyz-hacker/layouts/repository/list.html
blob: 0ce88c179bb2ec7a0ae15fe8a0258ffb9b5bcfbd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
{{ define "main" }}
<div class="mx-auto px-4 py-12 max-w-5xl bg-bg">
    <!-- Breadcrumb -->
    {{ partial "breadcrumb.html" . }}

    <!-- Page Title (Hero) -->
    <div class="mb-12">
      <h1 class="text-5xl md:text-6xl font-bold mb-4 text-accent animate-fade-in">
        {{ i18n "repositoryTitle" }}
      </h1>
      <p class="text-xl text-text-dim animate-fade-in-delay">
        {{ i18n "repositorySubtitle" }}
      </p>
    </div>

    <!-- Page Content (markdown sections) -->
    <div class="prose dark:prose-invert max-w-none mb-12">
      {{ .Content }}
    </div>

    <!-- Social sharing (inline mode) -->
    <div class="mb-12">
      {{ partial "social-share.html" (dict "page" . "mode" "inline") }}
    </div>

    <!-- Repository Cards Section -->
    <section class="mt-16">
      <h2 class="text-3xl font-bold mb-8">{{ i18n "githubReposTitle" }}</h2>

      <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
        {{ range $.Site.Data.repos.repos }}
        <div class="border border-border rounded-lg overflow-hidden hover:shadow-lg transition-shadow">
          <!-- Card Image -->
          <img
            src="{{ .image }}"
            alt="{{ .name }}"
            class="w-full h-48 object-cover"
            loading="lazy"
          />

          <!-- Card Content -->
          <div class="p-6">
            <h3 class="text-xl font-bold mb-2">{{ .name }}</h3>

            <p class="text-text-dim mb-4">
              {{ i18n .description_key }}
            </p>

            <!-- Tags -->
            {{ if .tags }}
            <div class="flex flex-wrap gap-2 mb-4">
              {{ range .tags }}
              <span class="text-xs px-2 py-1 bg-border/20 rounded">
                {{ . }}
              </span>
              {{ end }}
            </div>
            {{ end }}

            <!-- GitHub Link -->
            <a
              href="{{ .github_url }}"
              target="_blank"
              rel="noopener noreferrer"
              class="btn btn-primary w-full text-center"
            >
              {{ i18n "visitGithub" }} →
            </a>
          </div>
        </div>
        {{ end }}
      </div>
    </section>
</div>
{{ end }}