Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 3 additions & 10 deletions scss/home.scss
Original file line number Diff line number Diff line change
Expand Up @@ -145,17 +145,10 @@ footer {
font-weight: 300;
font-size: 13.5px;

table {
width: 100%;
.footer-links {
display: flex;
justify-content: space-between;
margin-bottom: 40px;

td,
th {
text-align: left;
}
a:hover {
color: #1a88ff;
}
}

.row {
Expand Down
81 changes: 28 additions & 53 deletions templates/home.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -127,59 +127,34 @@
</section>
</main>
<footer>
<table>
<tr>
<th><%= locale.t['Languages'] || 'Languages' %></th>
<th><%= locale.t['Open Source'] || 'Open Source' %></th>
<th><%= locale.t['Contribute'] || 'Contribute' %></th>
</tr>
<tr>
<td><%- config.custom.langs[0] ? `<a href="${config.custom.langs[0].prefix}">${config.custom.langs[0].config.display}</a>` : undefined %></td>
<td><a href="https://github.com/axios/axios" target="_blank"><%= locale.t['Source on GitHub'] || 'Source on GitHub' %></a></td>
<td><a href="https://github.com/axios/axios" target="_blank"><%= locale.t['Fork on GitHub'] || 'Fork on GitHub' %></a></td>
</tr>
<tr>
<td><%- config.custom.langs[1] ? `<a href="${config.custom.langs[1].prefix}">${config.custom.langs[1].config.display}</a>` : undefined%></td>
<td><a href="https://github.com/axios/axios/issues" target="_blank"><%= locale.t['Issues'] || 'Issues' %></a></td>
<td>
<a href="https://github.com/axios/axios-docs" target="_blank"><%= locale.t['Fork the Website'] || 'Fork the Website' %></a>
</td>
</tr>
<tr>
<td><%- config.custom.langs[2] ? `<a href="${config.custom.langs[2].prefix}">${config.custom.langs[2].config.display}</a>` : undefined%></td>
<td>
<a href="https://github.com/axios/axios/pulls" target="_blank"><%= locale.t['Pull Requests'] || 'Pull Requests' %></a>
</td>
<td>
<a href="https://github.com/axios/axios/issues/new/choose" target="_blank"
><%= locale.t['Create an Issue'] || 'Create an Issue' %></a
>
</td>
</tr>
<tr>
<td><%- config.custom.langs[3] ? `<a href="${config.custom.langs[3].prefix}">${config.custom.langs[3].config.display}</a>` : undefined%></td>
<td>
<a
href="https://github.com/axios/axios/blob/v1.x/CODE_OF_CONDUCT.md" target="_blank"
><%= locale.t['Code of Conduct'] || 'Code of Conduct' %></a
>
</td>
<td>
<a href="https://opencollective.com/axios/contribute" target="_blank"
><%= locale.t['Become a sponsor'] || 'Become a sponsor' %></a
>
</td>
</tr>
<% config.custom.langs.slice(4).forEach(lang => { %>
<tr>
<td>
<a href="<%= lang.prefix %>"><%= lang.config.display %></a>
</td>
<td></td>
<td></td>
</tr>
<% }) %>
</table>
<div class="footer-links">
<div>
<h3><%= locale.t['Languages'] || 'Languages' %></h3>
<ul>
<% config.custom.langs.forEach(lang => { %>
<li><a href="<%= lang.prefix %>"><%= lang.config.display %></a></li>
<% }) %>
</ul>
</div>
<div>
<h3><%= locale.t['Open Source'] || 'Open Source' %></h3>
<ul>
<li><a href="https://github.com/axios/axios" target="_blank"><%= locale.t['Source on GitHub'] || 'Source on GitHub' %></a></li>
<li><a href="https://github.com/axios/axios/issues" target="_blank"><%= locale.t['Issues'] || 'Issues' %></a></li>
<li><a href="https://github.com/axios/axios/pulls" target="_blank"><%= locale.t['Pull Requests'] || 'Pull Requests' %></a></li>
<li><a href="https://github.com/axios/axios/blob/v1.x/CODE_OF_CONDUCT.md" target="_blank"><%= locale.t['Code of Conduct'] || 'Code of Conduct' %></a></li>
</ul>
</div>
<div>
<h3><%= locale.t['Contribute'] || 'Contribute' %></h3>
<ul>
<li><a href="https://github.com/axios/axios" target="_blank"><%= locale.t['Fork on GitHub'] || 'Fork on GitHub' %></a></li>
<li><a href="https://github.com/axios/axios-docs" target="_blank"><%= locale.t['Fork the Website'] || 'Fork the Website' %></a></li>
<li><a href="https://github.com/axios/axios/issues/new/choose" target="_blank"><%= locale.t['Create an Issue'] || 'Create an Issue' %></a></li>
<li><a href="https://opencollective.com/axios/contribute" target="_blank"><%= locale.t['Become a sponsor'] || 'Become a sponsor' %></a></li>
</ul>
</div>
</div>
<hr class="light-hr">
<div class="row">
<span class="copyright-notice">
Expand Down