dev works

This commit is contained in:
2021-12-26 21:39:49 +01:00
parent d9e7dba8f1
commit 2df24bf871
4 changed files with 47 additions and 63 deletions

View File

@ -6,49 +6,20 @@
</h1>
</header>
{{ .Content | emojify }}
{{ range $.Site.Data.works }}
<section class="mb-8">
<h2 class="text-xl mb-8 pb-2 border-b-8 border-primary-500 inline-block">
Conduit Apps Collection
{{ .title }}
</h2>
{{ if .description }}
<div class="prose dark:prose-light mb-8">
{{ readFile (print "_data/works/realworld.md") | markdownify }}
</div>
{{ end }}
<div class="grid md:grid-cols-2 gap-4">
{{ range $.Site.Data.works.realworld }}
<div class="flex flex-col gap-4 rounded border-2 border-primary-500 p-4 h-full">
<div class="text-center">
<a href="https://github.com/{{ .repo }}" target="_blank">
<h3 class="pb-1 font-bold border-b-2 border-primary-500 inline-block">
{{ .title }}
</h3>
</a>
</div>
<div class="prose dark:prose-light flex-grow">
{{ readFile (print "_data/works/" .name ".md") | markdownify }}
</div>
<div class="flex justify-center gap-4">
<a class="px-4 py-2 !text-neutral !no-underline !rounded-md bg-primary-600 hover:!bg-primary-500 dark:bg-primary-800 dark:hover:!bg-primary-700"
href="https://github.com/{{ .repo }}" target="_blank" role="button">
{{ partial "icon.html" "github" }}
</a>
<a class="px-4 py-2 !text-neutral !no-underline !rounded-md bg-primary-600 hover:!bg-primary-500 dark:bg-primary-800 dark:hover:!bg-primary-700"
href="https://{{ .name }}realworld.okami101.io/api" target="_blank" role="button">
OpenAPI
</a>
</div>
</div>
{{ end }}
</div>
</section>
<section>
<h2 class="text-xl mb-8 pb-2 border-b-8 border-primary-500 inline-block">
Others projects
</h2>
<div class="grid md:grid-cols-2 gap-4">
{{ range $.Site.Data.works.others }}
{{ range .projects }}
<div class="flex flex-col gap-4 rounded border-2 border-primary-500 p-4 h-full">
<div class="text-center">
<a href="https://github.com/{{ .repo }}" target="_blank">
@ -82,5 +53,6 @@
{{ end }}
</div>
</section>
{{ end }}
</article>
{{ end }}