231 lines
4.8 KiB
Svelte
231 lines
4.8 KiB
Svelte
<script lang="ts">
|
|
import heroImage from "$lib/assets/docs-hero.jpg";
|
|
import IconCode from "$lib/assets/icons/code.svg?component";
|
|
import IconFlash from "$lib/assets/icons/flash.svg?component";
|
|
import { resolve } from "$app/paths";
|
|
import { toDocsPath } from "$lib/models/docs.ts";
|
|
</script>
|
|
|
|
<hgroup>
|
|
<h1>Sovereign Infrastructure by Design</h1>
|
|
<h2>Clan is a declarative framework for reliable, self-hosted computing</h2>
|
|
</hgroup>
|
|
|
|
<img class="hero" src={heroImage} width="640" height="360" alt="Hero" />
|
|
<div class="actions">
|
|
<a
|
|
class="button primary"
|
|
href={resolve(toDocsPath("getting-started/quick-start"))}
|
|
><IconFlash width="16" />Get Started</a
|
|
>
|
|
<a class="button" href="https://git.clan.lol/clan/clan-core" rel="external"
|
|
><IconCode width="16" />View on Gitea</a
|
|
>
|
|
</div>
|
|
<ul class="intro">
|
|
<li>
|
|
<p>
|
|
Declarative framework for managing fleets of machines without a central
|
|
controller
|
|
</p>
|
|
</li>
|
|
<li><p>Peer-to-peer infrastructure management built on NixOS</p></li>
|
|
<li>
|
|
<p>First-class support for networking, backups, and resource management</p>
|
|
</li>
|
|
<li>
|
|
<p>
|
|
Integrates with sops-nix, nixos-anywhere, and disko for provisioning and
|
|
secrets
|
|
</p>
|
|
</li>
|
|
<li>
|
|
<p>
|
|
Extensible via community-maintained Clan Services applied across multiple
|
|
machines
|
|
</p>
|
|
</li>
|
|
</ul>
|
|
|
|
<section>
|
|
<h2>Guides</h2>
|
|
|
|
<dl>
|
|
<a href={resolve(toDocsPath("guides/inventory/intro-to-inventory"))}>
|
|
<dt>Inventory</dt>
|
|
<dd><span>Learn how about inventory</span></dd>
|
|
</a>
|
|
<a href={resolve(toDocsPath("guides/vars/intro-to-vars"))}>
|
|
<dt>Vars</dt>
|
|
<dd><span>Learn how to use vars</span></dd>
|
|
</a>
|
|
<a href={resolve(toDocsPath("guides/macos"))}>
|
|
<dt>macOS</dt>
|
|
<dd><span>Using Clan to manage your macOS machines</span></dd>
|
|
</a>
|
|
</dl>
|
|
</section>
|
|
|
|
<section>
|
|
<h2>Reference</h2>
|
|
<dl>
|
|
<a href={resolve(toDocsPath("reference/cli"))}>
|
|
<dt>CLI</dt>
|
|
<dd><span>command line interface</span></dd>
|
|
</a>
|
|
<a href={resolve(toDocsPath("reference/options/clan"))}>
|
|
<dt>Clan Options</dt>
|
|
<dd><span>Search all options</span></dd>
|
|
</a>
|
|
<a href={resolve(toDocsPath("services/definition"))}>
|
|
<dt>Services</dt>
|
|
<dd><span>Discover services</span></dd>
|
|
</a>
|
|
</dl>
|
|
</section>
|
|
|
|
<style>
|
|
hgroup {
|
|
margin: 32px 0;
|
|
}
|
|
|
|
h1 {
|
|
margin: 0;
|
|
line-height: 1.2;
|
|
}
|
|
|
|
h2 {
|
|
margin: 0;
|
|
margin-block-start: 20px;
|
|
color: var(--secondary-fg-color);
|
|
border: 0;
|
|
font-weight: inherit;
|
|
font-size: inherit;
|
|
}
|
|
|
|
.intro {
|
|
color: var(--secondary-fg-color);
|
|
font-size: 16px;
|
|
|
|
li {
|
|
margin: 10px 0;
|
|
}
|
|
}
|
|
|
|
.hero {
|
|
inline-size: 100%;
|
|
block-size: auto;
|
|
border-radius: 24px;
|
|
}
|
|
|
|
.actions {
|
|
display: flex;
|
|
gap: 10px;
|
|
justify-content: center;
|
|
margin: 36px 0;
|
|
}
|
|
|
|
.button {
|
|
display: flex;
|
|
gap: 8px;
|
|
padding: 8px 16px;
|
|
color: var(--button-fg-color);
|
|
background: var(--button-bg-color);
|
|
border: 1px solid var(--button-border-color);
|
|
border-radius: 3px;
|
|
box-shadow: inset 2px 2px 0 0 var(--button-highlight-color);
|
|
font-size: 16px;
|
|
text-decoration: none;
|
|
|
|
&.primary {
|
|
color: var(--primary-button-fg-color);
|
|
background-color: var(--primary-button-bg-color);
|
|
border-color: var(--primary-button-border-color);
|
|
box-shadow: inset 2px 2px 0 0 var(--primary-button-highlight-color);
|
|
}
|
|
}
|
|
|
|
section {
|
|
display: flex;
|
|
flex-direction: column;
|
|
padding: 0 14px;
|
|
margin: 28px 0;
|
|
background: var(--content-secondary-bg-color);
|
|
border-radius: 16px;
|
|
|
|
h2 {
|
|
margin: 14px 0;
|
|
color: inherit;
|
|
font-weight: 700;
|
|
font-size: 24px;
|
|
}
|
|
}
|
|
|
|
dl {
|
|
margin: 0;
|
|
|
|
a {
|
|
display: flex;
|
|
flex-flow: column;
|
|
margin-block-end: 14px;
|
|
color: inherit;
|
|
background: var(--content-bg-color);
|
|
border: 1px solid var(--content-border-color);
|
|
border-radius: 6px;
|
|
text-decoration: none;
|
|
}
|
|
}
|
|
|
|
dt {
|
|
padding: 24px;
|
|
font-size: 30px;
|
|
}
|
|
|
|
dd {
|
|
display: flex;
|
|
align-items: center;
|
|
block-size: 95px;
|
|
margin: 0 4px 4px;
|
|
color: #fff;
|
|
background: url($lib/assets/purple-orange-gradient.jpg);
|
|
background-size: cover;
|
|
font-size: 14px;
|
|
|
|
> span {
|
|
display: block;
|
|
inline-size: 180px;
|
|
margin-inline-start: 24px;
|
|
}
|
|
|
|
dl a:first-child & {
|
|
color: #000;
|
|
background-image: url($lib/assets/blue-orange-gradient.jpg);
|
|
}
|
|
}
|
|
|
|
@media (--docs-tablet) {
|
|
hgroup {
|
|
margin-block: 48px;
|
|
}
|
|
|
|
section {
|
|
padding-inline: 24px;
|
|
|
|
h2 {
|
|
margin-block: 20px;
|
|
}
|
|
}
|
|
|
|
dl {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 14px;
|
|
margin-block-end: 24px;
|
|
|
|
a {
|
|
margin: 0;
|
|
}
|
|
}
|
|
}
|
|
</style>
|