rutas cambiadas

This commit is contained in:
SantiSvk
2024-06-06 13:00:00 -03:00
parent 72b84f720d
commit 5101a745aa
35 changed files with 501 additions and 216 deletions

View File

@ -201,9 +201,9 @@ defmodule DerivantesWeb.CoreComponents do
def simple_form(assigns) do
~H"""
<.form :let={f} for={@for} as={@as} {@rest}>
<div class="mt-10 space-y-8 bg-white">
<div >
<%= render_slot(@inner_block, f) %>
<div :for={action <- @actions} class="mt-2 flex items-center justify-between gap-6">
<div :for={action <- @actions}>
<%= render_slot(action, f) %>
</div>
</div>
@ -308,7 +308,7 @@ defmodule DerivantesWeb.CoreComponents do
~H"""
<div phx-feedback-for={@name}>
<label class="flex items-center gap-4 text-sm leading-6 text-zinc-600">
<label class="flex items-center gap-4 text-sm leading-6 text-white">
<input type="hidden" name={@name} value="false" />
<input
type="checkbox"
@ -316,7 +316,7 @@ defmodule DerivantesWeb.CoreComponents do
name={@name}
value="true"
checked={@checked}
class="rounded border-zinc-300 text-zinc-900 focus:ring-0"
class="rounded border-zinc-300 text-white focus:ring-0"
{@rest}
/>
<%= @label %>
@ -396,7 +396,7 @@ defmodule DerivantesWeb.CoreComponents do
def label(assigns) do
~H"""
<label for={@for} class="block text-sm font-semibold leading-6 text-zinc-800">
<label for={@for} class="block text-sm font-semibold leading-6 text-white">
<%= render_slot(@inner_block) %>
</label>
"""

View File

@ -1,29 +1,3 @@
<header class="px-4 sm:px-6 lg:px-8">
<div class="flex items-center justify-between border-b border-zinc-100 py-3 text-sm">
<div class="flex items-center gap-4">
<a href="/">
<img src={~p"/images/logo.svg"} width="36" />
</a>
<p class="bg-brand/5 text-brand rounded-full px-2 font-medium leading-6">
v<%= Application.spec(:phoenix, :vsn) %>
</p>
</div>
<div class="flex items-center gap-4 font-semibold leading-6 text-zinc-900">
<a href="https://twitter.com/elixirphoenix" class="hover:text-zinc-700">
@elixirphoenix
</a>
<a href="https://github.com/phoenixframework/phoenix" class="hover:text-zinc-700">
GitHub
</a>
<a
href="https://hexdocs.pm/phoenix/overview.html"
class="rounded-lg bg-zinc-100 px-2 py-1 hover:bg-zinc-200/80"
>
Get Started <span aria-hidden="true">&rarr;</span>
</a>
</div>
</div>
</header>
<main class="px-4 py-20 sm:px-6 lg:px-8">
<div class="mx-auto max-w-2xl">
<.flash_group flash={@flash} />

View File

@ -19,7 +19,7 @@
</li>
<li>
<.link
href={~p"/users/settings"}
href={~p"/derivantes/settings"}
class="text-[0.8125rem] leading-6 text-zinc-900 font-semibold hover:text-zinc-700"
>
Settings
@ -27,7 +27,7 @@
</li>
<li>
<.link
href={~p"/users/log_out"}
href={~p"/derivantes/log_out"}
method="delete"
class="text-[0.8125rem] leading-6 text-zinc-900 font-semibold hover:text-zinc-700"
>
@ -37,7 +37,7 @@
<% else %>
<li>
<.link
href={~p"/users/register"}
href={~p"/derivantes/register"}
class="text-[0.8125rem] leading-6 text-zinc-900 font-semibold hover:text-zinc-700"
>
Register
@ -45,7 +45,7 @@
</li>
<li>
<.link
href={~p"/users/log_in"}
href={~p"/derivantes/log_in"}
class="text-[0.8125rem] leading-6 text-zinc-900 font-semibold hover:text-zinc-700"
>
Log in