2018-12-06 17:54:16 +00:00
|
|
|
@use template_utils::*;
|
|
|
|
@use plume_models::instance::Instance;
|
2018-12-07 11:05:01 +00:00
|
|
|
@use routes::*;
|
2018-12-06 17:54:16 +00:00
|
|
|
|
|
|
|
@(ctx: BaseContext, instance: Instance, n_users: i32, n_articles: i32)
|
|
|
|
|
|
|
|
<section class="spaced">
|
|
|
|
<div class="cards">
|
|
|
|
<div class="presentation card">
|
|
|
|
<h2>@i18n!(ctx.1, "What is Plume?")</h2>
|
|
|
|
<main>
|
|
|
|
<p>@i18n!(ctx.1, "Plume is a decentralized blogging engine.")</p>
|
|
|
|
<p>@i18n!(ctx.1, "Authors can manage various blogs from an unique website.")</p>
|
|
|
|
<p>@i18n!(ctx.1, "Articles are also visible on other Plume websites, and you can interact with them directly from other platforms like Mastodon.")</p>
|
|
|
|
</main>
|
2018-12-07 11:05:01 +00:00
|
|
|
<a href="@uri!(user::new)">@i18n!(ctx.1, "Create your account")</a>
|
2018-12-06 17:54:16 +00:00
|
|
|
</div>
|
|
|
|
<div class="presentation card">
|
|
|
|
<h2>@i18n!(ctx.1, "About {0}"; instance.name)</h2>
|
|
|
|
<main>
|
|
|
|
@Html(instance.short_description_html)
|
|
|
|
<section class="stats">
|
|
|
|
<div>
|
|
|
|
<p>@Html(i18n!(ctx.1, "Home to <em>{0}</em> people"; n_users))</p>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<p>@Html(i18n!(ctx.1, "Who wrote <em>{0}</em> articles"; n_articles))</p>
|
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
</main>
|
2018-12-07 11:05:01 +00:00
|
|
|
<a href="@uri!(instance::about)">@i18n!(ctx.1, "Read the detailed rules")</a>
|
2018-12-06 17:54:16 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</section>
|