2023-02-04 09:16:51 -05:00
|
|
|
<div class="mx-auto px-8 sm:px-16 flex flex-col justify-center items-center text-center space-y-4 max-w-3xl">
|
|
|
|
<h1 class="title text-primary-600 text-2xl">
|
2023-02-25 15:47:37 -05:00
|
|
|
<%= gettext("Welcome to Cannery") %>
|
2021-09-02 23:32:52 -04:00
|
|
|
</h1>
|
2022-02-25 21:58:07 -05:00
|
|
|
|
2023-02-04 09:16:51 -05:00
|
|
|
<h2 class="title text-primary-600 text-lg">
|
|
|
|
<%= gettext("Shop from your local community") %>
|
|
|
|
</h2>
|
|
|
|
|
|
|
|
<hr class="hr" />
|
|
|
|
|
|
|
|
<ul class="flex flex-col space-y-4 text-center">
|
|
|
|
<li class="flex flex-col justify-center items-center
|
|
|
|
space-y-2">
|
|
|
|
<b class="whitespace-nowrap">
|
|
|
|
<%= gettext("Easy to Use:") %>
|
|
|
|
</b>
|
|
|
|
<p>
|
2023-02-25 15:47:37 -05:00
|
|
|
<%= gettext("Cannery lets you easily shop from your local community") %>
|
2023-02-04 09:16:51 -05:00
|
|
|
</p>
|
|
|
|
</li>
|
|
|
|
<li class="flex flex-col justify-center items-center space-y-2">
|
|
|
|
<b class="whitespace-nowrap">
|
|
|
|
<%= gettext("Secure:") %>
|
|
|
|
</b>
|
|
|
|
<p>
|
|
|
|
<%= gettext("Self-host your own instance, or use an instance from someone you trust.") %>
|
|
|
|
<%= gettext("Your data stays with you, period") %>
|
|
|
|
</p>
|
|
|
|
</li>
|
|
|
|
<li class="flex flex-col justify-center items-center
|
|
|
|
space-y-2">
|
|
|
|
<b class="whitespace-nowrap">
|
|
|
|
<%= gettext("Simple:") %>
|
|
|
|
</b>
|
|
|
|
<p>
|
|
|
|
<%= gettext("Access from any internet-capable device") %>
|
|
|
|
</p>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
<hr class="hr" />
|
|
|
|
|
|
|
|
<ul class="flex flex-col space-y-2 text-center justify-center">
|
|
|
|
<h2 class="title text-primary-600 text-lg">
|
|
|
|
<%= gettext("Instance Information") %>
|
|
|
|
</h2>
|
|
|
|
|
|
|
|
<li class="flex flex-col justify-center space-x-2">
|
|
|
|
<b>
|
|
|
|
<%= gettext("Admins:") %>
|
|
|
|
</b>
|
|
|
|
<p>
|
|
|
|
<%= if @admins |> Enum.empty?() do %>
|
|
|
|
<.link href={Routes.user_registration_path(Endpoint, :new)} class="hover:underline">
|
2023-02-25 15:47:37 -05:00
|
|
|
<%= dgettext("prompts", "Register to setup Cannery") %>
|
2023-02-04 09:16:51 -05:00
|
|
|
</.link>
|
|
|
|
<% else %>
|
|
|
|
<div class="flex flex-wrap justify-center space-x-2">
|
|
|
|
<a :for={%{email: email} <- @admins} class="hover:underline" href={"mailto:#{email}"}>
|
|
|
|
<%= email %>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
</p>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<li class="flex flex-row justify-center space-x-2">
|
|
|
|
<b><%= gettext("Registration:") %></b>
|
|
|
|
<p>
|
2023-02-25 15:47:37 -05:00
|
|
|
<%= case Application.get_env(:cannery, Cannery.Accounts)[:registration] do
|
2023-02-04 09:16:51 -05:00
|
|
|
"public" -> gettext("Public Signups")
|
|
|
|
_ -> gettext("Invite Only")
|
|
|
|
end %>
|
|
|
|
</p>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<li class="flex flex-row justify-center items-center space-x-2">
|
|
|
|
<b><%= gettext("Version:") %></b>
|
|
|
|
<.link
|
2023-02-25 15:47:37 -05:00
|
|
|
href="https://gitea.bubbletea.dev/shibao/cannery/src/branch/stable/CHANGELOG.md"
|
2023-02-04 09:16:51 -05:00
|
|
|
class="flex flex-row justify-center items-center space-x-2 hover:underline"
|
|
|
|
target="_blank"
|
|
|
|
rel="noopener noreferrer"
|
|
|
|
>
|
|
|
|
<p>
|
|
|
|
<%= @version %>
|
|
|
|
</p>
|
|
|
|
<i class="fas fa-md fa-info-circle"></i>
|
|
|
|
</.link>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
<hr class="hr" />
|
|
|
|
|
|
|
|
<ul class="flex flex-col space-y-2 text-center justify-center">
|
|
|
|
<h2 class="title text-primary-600 text-lg">
|
|
|
|
<%= gettext("Get involved!") %>
|
|
|
|
</h2>
|
|
|
|
|
|
|
|
<li class="flex flex-col justify-center space-x-2">
|
|
|
|
<.link
|
|
|
|
class="flex flex-row justify-center items-center space-x-2 hover:underline"
|
2023-02-25 15:47:37 -05:00
|
|
|
href="https://gitea.bubbletea.dev/shibao/cannery"
|
2023-02-04 09:16:51 -05:00
|
|
|
target="_blank"
|
|
|
|
rel="noopener noreferrer"
|
|
|
|
>
|
|
|
|
<p><%= gettext("View the source code") %></p>
|
|
|
|
<i class="fas fa-md fa-code"></i>
|
|
|
|
</.link>
|
|
|
|
</li>
|
|
|
|
<li class="flex flex-col justify-center space-x-2">
|
|
|
|
<.link
|
|
|
|
class="flex flex-row justify-center items-center space-x-2 hover:underline"
|
2023-02-25 15:47:37 -05:00
|
|
|
href="https://weblate.bubbletea.dev/engage/cannery"
|
2023-02-04 09:16:51 -05:00
|
|
|
target="_blank"
|
|
|
|
rel="noopener noreferrer"
|
|
|
|
>
|
|
|
|
<p><%= gettext("Help translate") %></p>
|
|
|
|
<i class="fas fa-md fa-language"></i>
|
|
|
|
</.link>
|
|
|
|
</li>
|
|
|
|
<li class="flex flex-col justify-center space-x-2">
|
|
|
|
<.link
|
|
|
|
class="flex flex-row justify-center items-center space-x-2 hover:underline"
|
2023-02-25 15:47:37 -05:00
|
|
|
href="https://gitea.bubbletea.dev/shibao/cannery/issues/new"
|
2023-02-04 09:16:51 -05:00
|
|
|
target="_blank"
|
|
|
|
rel="noopener noreferrer"
|
|
|
|
>
|
|
|
|
<p><%= gettext("Report bugs or request features") %></p>
|
|
|
|
<i class="fas fa-md fa-spider"></i>
|
|
|
|
</.link>
|
|
|
|
</li>
|
|
|
|
</ul>
|
2022-02-25 21:58:07 -05:00
|
|
|
</div>
|