Skip to content

Commit

Permalink
Dynmically render all frameworks on landing page
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoroth committed Nov 4, 2023
1 parent a19c543 commit 1b6dccb
Showing 1 changed file with 12 additions and 30 deletions.
42 changes: 12 additions & 30 deletions app/views/application/home/_integrations.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -17,37 +17,19 @@
</p>
</div>

<!-- Integration boxes -->
<div class="relative max-w-xs sm:max-w-md mx-auto md:max-w-6xl grid grid-cols-2 sm:grid-cols-3 md:grid-cols-6 gap-2">
<a href="/frameworks/rails" class="rounded-xl relative flex justify-center items-center bg-gray--900 aspect-square p-2">
<i class="devicon-rails-plain-wordmark colored text-8xl"></i>
</a>

<a href="/frameworks/laravel" class="rounded-xl relative flex justify-center items-center bg-gray--900 aspect-square p-2">
<i class="devicon-laravel-plain-wordmark colored text-6xl"></i>
</a>

<a href="/frameworks/symfony" class="rounded-xl relative flex justify-center items-center bg-gray--900 aspect-square p-2">
<i class="devicon-symfony-original-wordmark text-6xl"></i>
</a>

<a href="/frameworks/django" class="rounded-xl relative flex justify-center items-center bg-gray--900 aspect-square p-2">
<i class="devicon-django-plain text-5xl"></i>
</a>

<a href="/frameworks/wagtail" class="rounded-xl relative flex justify-center items-center bg-gray--900 aspect-square p-2">
<i class="devicon-python-plain text-5xl"></i>
</a>

<a href="/frameworks/bridgetown" class="rounded-xl relative flex justify-center items-center bg-gray--900 aspect-square p-2">
<img src="<%= image_path("frameworks/bridgetown.png") %>" alt="Bridgetown Logo" class="max-w-[60px]">
</a>

<a href="/frameworks/phoenix" class="rounded-xl relative flex justify-center items-center bg-gray--900 aspect-square p-2">
<i class="devicon-phoenix-plain-wordmark colored text-6xl"></i>
</a>
<div class="relative max-w-xs sm:max-w-md mx-auto md:max-w-6xl grid grid-cols-2 sm:grid-cols-3 md:grid-cols-5">
<% FrameworkModel.grouped_by_language.each do |language, pages| %>
<% pages.each do |page| %>
<a href="<%= page.request_path %>" class="rounded-xl relative flex justify-center items-center hover:bg-gray-900/75 aspect-square">
<% if page.image %>
<%= image_tag image_path(page.image), alt: "#{page.framework} Logo", class: "w-20" %>
<% elsif page.icon_class %>
<%= tag.i class: "#{page.icon_class} text-7xl" %>
<% end %>
</a>
<% end %>
<% end %>
</div>

</div>
</div>
</section>

0 comments on commit 1b6dccb

Please sign in to comment.