Skip to content

Commit

Permalink
fix: dinamic paths
Browse files Browse the repository at this point in the history
  • Loading branch information
RicoPleasure committed Nov 26, 2024
1 parent 0f438fe commit 5581af6
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion lib/atomic_web/components/legal_pages_links.ex
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ defmodule AtomicWeb.Components.LegalPagesLinks do

def legal_pages_links(assigns) do
~H"""
<div class="flex-colunm group mt-2 mb-4 px-8 flex w-full flex-wrap place-items-center justify-center gap-x-6 gap-y-1">
<div class="flex-colunm group mt-2 mb-4 flex w-full flex-wrap place-items-center justify-center gap-x-6 gap-y-1 px-8">
<.link navigate={~p"/tos"} class="shrink-0 select-none">
<p class="text-xs font-semibold text-zinc-400 hover:underline">Terms of Service</p>
</.link>
Expand Down
18 changes: 9 additions & 9 deletions lib/atomic_web/live/legal_terms_live/components/header.ex
Original file line number Diff line number Diff line change
Expand Up @@ -23,23 +23,23 @@ defmodule AtomicWeb.LegalTermsLive.Components.Header do

def header(assigns) do
~H"""
<header class="fixed flex w-full max-w-[2000px] place-items-center justify-between bg-white pt-8 pr-8 pb-4 pl-4">
<header class="max-w-[2000px] fixed flex w-full place-items-center justify-between bg-white pt-8 pr-8 pb-4 pl-4">
<div class="flex place-items-center gap-x-6 md:gap-x-12 lg:pl-12">
<div class="flex place-items-center gap-x-4">
<!-- Atomic Logo -->
<.link navigate={~p"/"}>
<img src={~p"/images/atomic.svg"} class="h-14 w-auto" />
</.link>
</div>
</div>
<div class="flex hidden place-items-center gap-x-2 text-sm font-semibold text-zinc-300 sm:block sm:gap-x-4 sm:space-x-2 md:space-x-4">
<%= for {type, title, path} <- link_pages(@page_name) do %>
<%= case type do %>
<% :current -> %>
<span class="text-lg text-zinc-400"> <%= title %> </span>
<% :link -> %>
<.link class="hover:text-zinc-400" navigate={~p"/#{path}"}><%= title %></.link>
<%= for {type, title, path} <- link_pages(@page_name) do %>
<%= case type do %>
<% :current -> %>
<span class="text-lg text-zinc-400"><%= title %></span>
<% :link -> %>
<.link class="hover:text-zinc-400" navigate={"/" <> path}><%= title %></.link>
<% end %>
<% end %>
<% end %>
</div>
</div>
<!-- Link to Home (hidden on mobile) -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,5 +74,5 @@

<div class="border my-8"></div>
</section>
</div>
</div>
</main>
Original file line number Diff line number Diff line change
Expand Up @@ -117,5 +117,5 @@
</div>
<div class="border my-8"></div>
</section>
</div>
</div>
</main>
Original file line number Diff line number Diff line change
Expand Up @@ -82,5 +82,5 @@
</div>
<div class="border my-8"></div>
</section>
</div>
</div>
</main>

0 comments on commit 5581af6

Please sign in to comment.