back interdiff of round #1 and #0

appview/pages: add knots description to /knots #319

merged
opened by ok-ciel.bsky.social targeting master from ok-ciel.bsky.social/core: push-yxvvnyzoownu

Provide an explaination to what a Knot is. Pulled from the introducing tangled blog post. Addsd a link to the self hosting documentation in core. Removes additional padding to be more consistent with the other setting pages.

Signed-off-by: Ciel jamie@longest.voyage

files
appview
pages
templates
REVERTED
appview/pages/templates/knots.html
··· 4 <p class="text-xl font-bold dark:text-white">Knots</p> 5 </div> 6 <div class="flex flex-col"> 7 - <section class="rounded bg-white dark:bg-gray-800 drop-shadow-sm px-6 py-4 mb-6 w-full lg:w-fit"> 8 - <p class="dark:text-gray-300">Knots are lightweight headless servers that enable users to host Git repositories with ease. Knots are designed for either single or multi-tenant use which is perfect for self-hosting on a Raspberry Pi at home, or larger “community” servers. By default, Tangled provides managed knots where you can host your repositories for free. <a href="https://tangled.sh/@tangled.sh/core/blob/master/docs/knot-hosting.md">Checkout the documentation if you're interested in self-hosting.</a></p> 9 - </section> 10 - 11 <h2 class="text-sm font-bold py-2 px-6 uppercase dark:text-gray-300">register a knot</h2> 12 <section class="rounded bg-white dark:bg-gray-800 drop-shadow-sm px-6 py-4 mb-6 w-full lg:w-fit"> 13 <p class="mb-8 dark:text-gray-300">Generate a key to initialize your knot server.</p> 14 - <form 15 hx-post="/knots/key" 16 - class="max-w-2xl space-y-4" 17 hx-indicator="#generate-knot-key-spinner" 18 > 19 <input
··· 4 <p class="text-xl font-bold dark:text-white">Knots</p> 5 </div> 6 <div class="flex flex-col"> 7 <h2 class="text-sm font-bold py-2 px-6 uppercase dark:text-gray-300">register a knot</h2> 8 <section class="rounded bg-white dark:bg-gray-800 drop-shadow-sm px-6 py-4 mb-6 w-full lg:w-fit"> 9 <p class="mb-8 dark:text-gray-300">Generate a key to initialize your knot server.</p> 10 + <form 11 hx-post="/knots/key" 12 + class="max-w-2xl mb-8 space-y-4" 13 hx-indicator="#generate-knot-key-spinner" 14 > 15 <input
NEW
appview/pages/templates/knots/index.html
··· 7 8 <section class="bg-white dark:bg-gray-800 p-6 rounded relative w-full mx-auto drop-shadow-sm dark:text-white"> 9 <div class="flex flex-col gap-6"> 10 {{ template "knots/fragments/knotListingFull" . }} 11 {{ block "register" . }} {{ end }} 12 </div> 13 </section> 14 {{ end }} 15 16 {{ define "register" }} 17 <section class="rounded max-w-2xl flex flex-col gap-2"> 18 <h2 class="text-sm font-bold py-2 uppercase dark:text-gray-300">register a knot</h2>
··· 7 8 <section class="bg-white dark:bg-gray-800 p-6 rounded relative w-full mx-auto drop-shadow-sm dark:text-white"> 9 <div class="flex flex-col gap-6"> 10 + {{ block "about" . }} {{ end }} 11 {{ template "knots/fragments/knotListingFull" . }} 12 {{ block "register" . }} {{ end }} 13 </div> 14 </section> 15 {{ end }} 16 17 + {{ define "about" }} 18 + <section class="rounded flex flex-col gap-2"> 19 + <p class="dark:text-gray-300">Knots are lightweight headless servers that enable users to host Git repositories with ease. Knots are designed for either single or multi-tenant use which is perfect for self-hosting on a Raspberry Pi at home, or larger “community” servers. By default, Tangled provides managed knots where you can host your repositories for free. <a href="https://tangled.sh/@tangled.sh/core/blob/master/docs/knot-hosting.md">Checkout the documentation if you're interested in self-hosting.</a></p> 20 + </section> 21 + {{ end }} 22 + 23 {{ define "register" }} 24 <section class="rounded max-w-2xl flex flex-col gap-2"> 25 <h2 class="text-sm font-bold py-2 uppercase dark:text-gray-300">register a knot</h2>