Skip to content

Commit

Permalink
grid for footer
Browse files Browse the repository at this point in the history
  • Loading branch information
Floppy committed Sep 16, 2024
1 parent 26ad360 commit 8349d7a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
4 changes: 4 additions & 0 deletions app/assets/stylesheets/layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,7 @@
.grid-2-auto {
grid-template-columns: auto auto;
}

.grid-4-auto {
grid-template-columns: auto auto auto auto;
}
10 changes: 5 additions & 5 deletions app/views/application/_footer.html.erb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<footer class="container-fluid mt-5 py-2 border-top" id="footer">
<div class="grid">
<div class="g-col-lg-3 me-auto">
<div class="grid grid-4-auto">
<div>
<span class="d-inline-flex align-items-center mb-2">
<%= image_tag "roundel.svg", width: 48, height: 48, class: "me-2", alt: translate(".logo") %>
<span class="fs-5"><%= t "application.title" %></span>
Expand All @@ -15,22 +15,22 @@
</li>
</ul>
</div>
<div class="g-col-4 g-col-lg-2 mb-3">
<div>
<h5><%= t ".stats_heading" %></h5>
<ul class="list-unstyled">
<li class="mb-2"><%= Library.count %> <%= Library.model_name.human(count: Library.count) %></li>
<li class="mb-2"><%= Model.count %> <%= Model.model_name.human(count: Model.count) %></li>
<li class="mb-2"><%= ModelFile.count %> <%= ModelFile.model_name.human(count: ModelFile.count) %></li>
</ul>
</div>
<div class="g-col-4 g-col-lg-2 mb-3">
<div>
<h5><%= t ".development_heading" %></h5>
<ul class="list-unstyled">
<li class="mb-2"><a href="https://github.com/manyfold3d/manyfold" target="_blank"><%= t ".code" %></a></li>
<li class="mb-2"><a href="https://github.com/manyfold3d/manyfold/issues" target="_blank"><%= t ".issues" %></a></li>
</ul>
</div>
<div class="g-col-4 g-col-lg-2 mb-3">
<div>
<h5><%= t ".community_heading" %></h5>
<ul class="list-unstyled">
<li class="mb-2"><a href="https://matrix.to/#/#manyfold:one.ems.host" target="_blank"><%= t ".chat" %></a></li>
Expand Down

0 comments on commit 8349d7a

Please sign in to comment.