alfa
This commit is contained in:
10
themes/main-theme/layouts/partials/card.html
Normal file
10
themes/main-theme/layouts/partials/card.html
Normal file
@ -0,0 +1,10 @@
|
||||
<div class="border border-forest">
|
||||
<div class="inline-flex items-center justify-start pl-8 pr-72 pt-2.5 pb-2 left-0 top-0 bg-forest w-full">
|
||||
<p class="flex-1 h-full text-2xl font-medium leading-loose text-almost-white">{{.cardTitle}}</p>
|
||||
</div>
|
||||
<div class="prose pt-4 px-8">
|
||||
<p class="text-base leading-snug text-forest">
|
||||
{{.cardSummary}}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
14
themes/main-theme/layouts/partials/cards/blog-item.html
Normal file
14
themes/main-theme/layouts/partials/cards/blog-item.html
Normal file
@ -0,0 +1,14 @@
|
||||
<div class="border border-salmon">
|
||||
<div class="inline-flex items-center justify-start px-8 pt-2.5 pb-2 bg-salmon w-full">
|
||||
<p class="flex-1 w-full text-2xl font-medium leading-loose text-almost-white">{{.Title}}</p>
|
||||
</div>
|
||||
<div class="prose pt-4 px-8">
|
||||
<p class="text-base leading-snug text-salmon">
|
||||
{{.Summary}}
|
||||
</p>
|
||||
</div>
|
||||
<div class="inline-flex items-center justify-start px-8 pt-2.5 pb-2 bg-salmon w-full">
|
||||
{{ if .Title }} <a class="flex-1 w-full text-xl underline font-normal leading-loose text-almost-white"
|
||||
href="{{ .Permalink }}">Read more</a> {{ end }}
|
||||
</div>
|
||||
</div>
|
16
themes/main-theme/layouts/partials/footer.html
Normal file
16
themes/main-theme/layouts/partials/footer.html
Normal file
@ -0,0 +1,16 @@
|
||||
<footer class="bg-grayish inline-grid grid-cols-3 pt-8 pb-9">
|
||||
<div class="m-auto min-w-fit flex flex-col justify-center col-start-2">
|
||||
<img src="/interpeer-logo-small.svg" class="h-6 mb-6 w-fit m-auto " alt="Logo Interpeer small">
|
||||
<div class="relative flex w-fit">
|
||||
<p class="w-28 h-5 text-base leading-tight underline text-center text-salmon">
|
||||
Codeberg</p>
|
||||
<p class="w-28 h-5 text-base leading-tight underline text-center text-salmon">
|
||||
Mastodon</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="items-end mt-auto">
|
||||
<p class="w-72 h-9 text-base leading-tight text-right text-forest">The Interpeer Project was created and
|
||||
maintained by <a href="#" class="text-salmon">Jens
|
||||
Finkhauser.</a></p>
|
||||
</div>
|
||||
</footer>
|
10
themes/main-theme/layouts/partials/head.html
Normal file
10
themes/main-theme/layouts/partials/head.html
Normal file
@ -0,0 +1,10 @@
|
||||
<head>
|
||||
<!-- <link rel='stylesheet' type='text/css' href='/style.css'> -->
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta name="robots" content="index, follow">
|
||||
<meta charset="utf-8">
|
||||
<link rel="stylesheet" href="/styles.css">
|
||||
{{ $css := resources.Get "css/compiled/output.css" }}
|
||||
{{ $style := $css | resources.Minify }}
|
||||
<link type="text/css" rel="stylesheet" href="{{ $style.RelPermalink }}" />
|
||||
</head>
|
8
themes/main-theme/layouts/partials/header.html
Normal file
8
themes/main-theme/layouts/partials/header.html
Normal file
@ -0,0 +1,8 @@
|
||||
<header class="header-background">
|
||||
<div class="h-28 w-full flex items-center justify-between container mx-auto">
|
||||
<a href="/">
|
||||
<img src="/logo.svg" class="h-9" alt="Logo Interpeer">
|
||||
</a>
|
||||
{{- partial "nav.html" . -}}
|
||||
</div>
|
||||
</header>
|
12
themes/main-theme/layouts/partials/mail-subscription.html
Normal file
12
themes/main-theme/layouts/partials/mail-subscription.html
Normal file
@ -0,0 +1,12 @@
|
||||
<div class="relative max-w-md border-[1px] border-forest">
|
||||
<div class="inline-flex items-center justify-center px-4 py-3.5 bg-forest w-full">
|
||||
<p class="flex-1 h-full text-xl font-medium leading-7 text-center text-white">Join the mailing list</p>
|
||||
</div>
|
||||
<form class="relative border border-forest flex flex-row py-4 px-4">
|
||||
<input class="border-b text-base leading-tight border-forest text-gray-400 mr-4" type="text"
|
||||
placeholder="Email address">
|
||||
<input
|
||||
class="text-xl border-b border-forest leading-7 text-forest cursor-pointer focus:outline-1 focus:outline focus:outline-offset-2"
|
||||
type="submit" value="Subscribe">
|
||||
</form>
|
||||
</div>
|
13
themes/main-theme/layouts/partials/nav.html
Normal file
13
themes/main-theme/layouts/partials/nav.html
Normal file
@ -0,0 +1,13 @@
|
||||
<nav>
|
||||
<ul class="flex">
|
||||
{{ $currentPage := . }}
|
||||
{{ range .Site.Menus.main }}
|
||||
<li class="px-4">
|
||||
<a href="{{ .URL }}" class="font-medium uppercase text-almost-white underline hover:text-salmon{{ if $currentPage.IsMenuCurrent "main" . }} !text-salmon{{ end }}">
|
||||
{{ .Pre }}
|
||||
<span>{{ .Name }}</span>
|
||||
</a>
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</nav>
|
48
themes/main-theme/layouts/partials/pagination.html
Normal file
48
themes/main-theme/layouts/partials/pagination.html
Normal file
@ -0,0 +1,48 @@
|
||||
{{ $pag := $.Paginator }}
|
||||
{{ if gt $pag.TotalPages 1 }}
|
||||
<nav class="pagination w-full flex justify-center py-10">
|
||||
<ul class="flex w-max items-center space-x-2">
|
||||
{{ with $pag.First }}
|
||||
<li>
|
||||
<a href="{{ .URL }}" class="pagination-link text-salmon" disabled aria-label="First">
|
||||
<span aria-hidden="true">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="17" height="18"><g fill="none" fill-rule="evenodd" stroke="#FA765B" stroke-width="2"><path d="M16 17 8 9l8-8"/><path d="M10 17 2 9l8-8"/></g></svg>
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
{{ end }}
|
||||
<li>
|
||||
<a href="{{ if $pag.HasPrev }}{{ $pag.Prev.URL }}{{ end }}" class="pagination-link" {{ if not $pag.HasPrev }} disabled{{ end }} aria-label="Previous"><svg xmlns="http://www.w3.org/2000/svg" width="17" height="18"><g fill="none" fill-rule="evenodd" stroke="#FA765B" stroke-width="2"><path d="M10 17 2 9l8-8"/></g></svg></a>
|
||||
</li>
|
||||
{{ $ellipsed := false }}
|
||||
{{ $shouldEllipse := false }}
|
||||
{{ range $pag.Pagers }}
|
||||
{{ $right := sub .TotalPages .PageNumber }}
|
||||
{{ $showNumber := or (le .PageNumber 3) (eq $right 0) }}
|
||||
{{ $showNumber := or $showNumber (and (gt .PageNumber (sub $pag.PageNumber 2)) (lt .PageNumber (add $pag.PageNumber 2))) }}
|
||||
{{ if $showNumber }}
|
||||
{{ $ellipsed = false }}
|
||||
{{ $shouldEllipse = false }}
|
||||
{{ else }}
|
||||
{{ $shouldEllipse = not $ellipsed }}
|
||||
{{ $ellipsed = true }}
|
||||
{{ end }}
|
||||
{{ if $showNumber }}
|
||||
<li><a class="pagination-link text-xl leading-normal {{ if eq . $pag }}text-salmon underline{{ end }}" href="{{ .URL }}">{{ .PageNumber }}</a></li>
|
||||
{{ else if $shouldEllipse }}
|
||||
<li class="pagination-link" disabled><span aria-hidden="true"> … </span></li>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
<li>
|
||||
<a href="{{ if $pag.HasNext }}{{ $pag.Next.URL }}{{ end }}" class="pagination-link" {{ if not $pag.HasNext }}disabled{{ end }} aria-label="Next"><svg xmlns="http://www.w3.org/2000/svg" width="11" height="18" fill="none"><path stroke="#FA765B" stroke-width="2" d="m1 1 8 8-8 8"/></svg></a>
|
||||
</li>
|
||||
{{ with $pag.Last }}
|
||||
<li>
|
||||
<a class="flex" href="{{ .URL }}" class="pagination-link" {{ if not $pag.HasNext }}disabled{{ end }} aria-label="Last">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="17" height="18"><g fill="none" fill-rule="evenodd" stroke="#FA765B" stroke-width="2"><path d="m1 1 8 8-8 8"/><path d="m7 1 8 8-8 8"/></g></svg>
|
||||
</a>
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</nav>
|
||||
{{ end }}
|
Reference in New Issue
Block a user