WIP contribution nav
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Râu Cao
2023-06-12 14:32:59 +02:00
parent 8eb5f093a4
commit 462dd24da3
7 changed files with 62 additions and 16 deletions

View File

@@ -1,6 +1,10 @@
<%= render HeaderComponent.new(title: "Contributions") %>
<%# <%= render HeaderComponent.new(title: "Contributions") %>
<%= render HeaderWithTabsComponent.new(
# title: "Contributions",
tabnav_partial: "shared/tabnav_contributions"
) %>
<%= render MainWithTabnavComponent.new(tabnav_partial: "shared/tabnav_contributions") do %>
<%= render MainSimpleComponent.new do %>
<section>
<% if @donations.any? %>
<p class="mb-12">

View File

@@ -1,6 +1,9 @@
<%= render HeaderComponent.new(title: "Contributions") %>
<%= render HeaderWithTabsComponent.new(
# title: "Contributions",
tabnav_partial: "shared/tabnav_contributions"
) %>
<%= render MainWithTabnavComponent.new(tabnav_partial: "shared/tabnav_contributions") do %>
<%= render MainSimpleComponent.new do %>
<section>
<p class="mb-8">
Project contributions are how we develop and run all Kosmos software and

View File

@@ -1,12 +1,8 @@
<div class="border-b border-gray-200">
<nav class="-mb-px flex" aria-label="Tabs">
<%= render TabnavLinkComponent.new(
name: "Donations", path: contributions_donations_path,
active: current_page?(contributions_donations_path)
) %>
<%= render TabnavLinkComponent.new(
name: "Projects", path: contributions_projects_path,
active: current_page?(contributions_projects_path)
) %>
</nav>
</div>
<%= render HeaderTabLinkComponent.new(
name: "Donations", path: contributions_donations_path,
active: current_page?(contributions_donations_path)
) %>
<%= render HeaderTabLinkComponent.new(
name: "Projects", path: contributions_projects_path,
active: current_page?(contributions_projects_path)
) %>