guida-fediverso/themes/starter/layout/_partial/join.ejs

34 lines
1.7 KiB
Plaintext
Raw Normal View History

2018-08-24 00:18:07 +02:00
<%
const network = page.network;
const data = site.data[network].data;
%>
<div class="section-title">
<div style="background-color: #<%= data.logoClr %>">
<svg class="icon-logotype" role="img" aria-labelledby="logo<%= data.title %>">
<title id="logo<%= data.title %>"><%= data.title %> logo</title>
<use xlink:href="#icon-<%= data.title %>">
</svg>
</div><h2><%- __('join') %></h2>
</div>
<div>
<p><svg class="f-highlight <%- network %>" role="img" aria-labelledby="f-snow" style="position: relative"><title id="f-snow">network logo colour icon</title><use xlink:href="#icon-snowflake"></use></svg> Choose a server with open registrations and create an account:</p>
<ul class="server-list">
<% for (item in data.servers) { %>
<li>
<a href="<%= data.servers[item].url %>"><%- __('nodeList') %> /<%= data.servers[item].num %>/ </a></span>
</li>
<% } %>
</ul>
<% if (data.serverWizard) { %>
<p><svg class="f-highlight <%- network %>" role="img" aria-labelledby="f-snow" style="position: relative"><title id="f-snow">network logo colour icon</title><use xlink:href="#icon-snowflake"></use></svg> Or use a wizard to help you pick a server from the list:</p>
<a href="<%= data.serverWizard %>" class="u-block u-emphasize btn-action u-center"><%- __('wizard') %></a>
<% } %>
<% if (data.mobile) { %>
<p><svg class="f-highlight <%- network %>" role="img" aria-labelledby="f-snow" style="position: relative"><title id="f-snow">network logo colour icon</title><use xlink:href="#icon-snowflake"></use></svg> Choose a mobile application from the available ones:</p>
<div class="server-list"><a href="<%= data.mobile %>"><%- __('mobapps') %></a></div>
<% } %>
</div>