Redesign node view and use it as the landing-page

This commit is contained in:
Rūdolfs Ošiņš
2024-07-26 10:20:01 +02:00
parent 266afb17c8
commit c0049f83ba
50 changed files with 1051 additions and 1021 deletions
+18 -18
View File
@@ -10,19 +10,31 @@
<style>
.section {
display: flex;
justify-content: space-between;
align-items: center;
padding: 0.5rem 0;
padding-bottom: 0.5rem;
}
.text {
padding-right: 2rem;
}
</style>
<div class="section" style:padding-top="0.5rem">
Policy:
<span class="txt-bold">{capitalize(policy)}</span>
</div>
<div class="txt-missing text">
{#if policy === "allow"}
All discovered repositories will be seeded.
{:else if policy === "block"}
Only selected repositories will be seeded.
{/if}
</div>
{#if policy === "allow"}
<div class="section">
<div class="section" style:padding-top="0.5rem">
Scope:
<span class="txt-bold">{capitalize(scope)}</span>
</div>
<div class="txt-missing">
<div class="txt-missing text">
{#if scope === "all"}
All changes in seeded repositories, made by any peer, will be synced.
{:else if scope === "followed"}
@@ -30,15 +42,3 @@
{/if}
</div>
{/if}
<div class="section">
Policy:
<span class="txt-bold">{capitalize(policy)}</span>
</div>
<div class="txt-missing">
{#if policy === "allow"}
All discovered repositories will get seeded.
{:else if policy === "block"}
Only repositories marked as such will get seeded.
{/if}
</div>