tailwind body, html and other stuff.

This commit is contained in:
fiatjaf
2023-10-25 18:05:25 -03:00
parent b6b950fad8
commit 88dcf490c2
10 changed files with 40 additions and 109 deletions

View File

@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html class="theme--default">
<html class="theme--default text-lg sm:text-xl font-light print:text-base">
<meta charset="UTF-8" />
<head>
<title>{{.TitleizedContent}}</title>
@@ -52,7 +52,9 @@
{{template "head_common" .}}
</head>
<body class="note">
<body
class="note | mb-16 print:text-black text-gray-600 dark:text-neutral-50 bg-white dark:bg-stone-900"
>
{{template "top" .}}
<div class="sm:flex sm:justify-center sm:items-center mx-auto px-4 sm:px-0">
@@ -72,22 +74,22 @@
{{.Metadata.Name}}
<!---->
{{if not (eq .Metadata.Name .Metadata.DisplayName)}}
<span class="text-sm sm:text-xl text-slate-400"
<span class="text-sm sm:text-xl text-stone-400"
>{{.Metadata.DisplayName}}</span
>
{{end}}
</div>
<div class="text-sm sm:text-base text-slate-400">
<div class="text-sm sm:text-base text-stone-400">
{{.NpubShort}}
</div>
</div>
</a>
</header>
<div class="w-full text-right text-sm text-slate-400">
<div class="w-full text-right text-sm text-stone-400">
{{.CreatedAt}}
</div>
<div class="w-full text-right text-sm text-slate-400">
<div class="w-full text-right text-sm text-stone-400">
{{ if not (eq "" .ParentLink) }} In reply to
<span class="text-strongpink">{{ .ParentLink }}</span> {{ end }}
</div>