From 10b1f8c855fd36cf9beb3dbc48aca96d6a4610e0 Mon Sep 17 00:00:00 2001 From: julian Date: Fri, 28 Jun 2024 11:19:27 -0300 Subject: [PATCH] frontender v.2 --- assets/css/app.css | 24 ++++++++++++++++++- lib/derivantes/accounts/user.ex | 2 +- .../components/core_components.ex | 2 +- .../components/layouts/root.html.heex | 4 ++-- .../live/derivantes/derivantes_live.ex | 2 +- .../live/user_registration_live.ex | 20 ++++++++-------- priv/gettext/en/LC_MESSAGES/errors.po | 0 priv/gettext/errors.pot | 0 test/derivantes/accounts_test.exs | 0 .../live/user_registration_live_test.exs | 2 +- .../live/user_reset_password_live_test.exs | 0 11 files changed, 39 insertions(+), 17 deletions(-) mode change 100644 => 100755 lib/derivantes/accounts/user.ex mode change 100644 => 100755 lib/derivantes_web/components/layouts/root.html.heex mode change 100644 => 100755 lib/derivantes_web/live/user_registration_live.ex mode change 100644 => 100755 priv/gettext/en/LC_MESSAGES/errors.po mode change 100644 => 100755 priv/gettext/errors.pot mode change 100644 => 100755 test/derivantes/accounts_test.exs mode change 100644 => 100755 test/derivantes_web/live/user_registration_live_test.exs mode change 100644 => 100755 test/derivantes_web/live/user_reset_password_live_test.exs diff --git a/assets/css/app.css b/assets/css/app.css index e2bd1e4..4236651 100755 --- a/assets/css/app.css +++ b/assets/css/app.css @@ -17,6 +17,10 @@ body{ margin-right: auto; } +.root_header{ + background-color: #297177; +} + .login-a{ display: flex; flex-direction: column; @@ -46,6 +50,18 @@ body{ text-align: center; } +.reg_form{ + background-color: #297177; + border-radius: 5px; + display: flex; + flex-direction: column; + align-items: center; + padding: 15px; + height: max-content; + width: 250px; + text-align: center; +} + .auth_form img{ margin-top: 10px; margin-bottom: 20px; @@ -72,7 +88,7 @@ body{ border-radius: 5px; font-weight: bold; font-size: 18px; - margin-top: 5px; + margin-top: 10px; } .info_panel{ @@ -175,6 +191,12 @@ body{ border-radius: 5px; } +.register_screen{ + display: flex; + flex-direction: column; + align-items: center; +} + @media (min-width: 1250px) { .log_in_container{ width: 50%; diff --git a/lib/derivantes/accounts/user.ex b/lib/derivantes/accounts/user.ex old mode 100644 new mode 100755 index e2dc477..916cbf8 --- a/lib/derivantes/accounts/user.ex +++ b/lib/derivantes/accounts/user.ex @@ -51,7 +51,7 @@ defmodule Derivantes.Accounts.User do defp validate_email(changeset, opts) do changeset |> validate_required([:email]) - |> validate_format(:email, ~r/^[^\s]+@[^\s]+$/, message: "must have the @ sign and no spaces") + |> validate_format(:email, ~r/^[^\s]+@[^\s]+$/, message: "Ingrese un email válido") |> validate_length(:email, max: 160) |> maybe_validate_unique_email(opts) end diff --git a/lib/derivantes_web/components/core_components.ex b/lib/derivantes_web/components/core_components.ex index 1be9bc8..473d592 100755 --- a/lib/derivantes_web/components/core_components.ex +++ b/lib/derivantes_web/components/core_components.ex @@ -409,7 +409,7 @@ defmodule DerivantesWeb.CoreComponents do def error(assigns) do ~H""" -

+

<.icon name="hero-exclamation-circle-mini" class="mt-0.5 h-5 w-5 flex-none" /> <%= render_slot(@inner_block) %>

diff --git a/lib/derivantes_web/components/layouts/root.html.heex b/lib/derivantes_web/components/layouts/root.html.heex old mode 100644 new mode 100755 index 11cd701..895e8f9 --- a/lib/derivantes_web/components/layouts/root.html.heex +++ b/lib/derivantes_web/components/layouts/root.html.heex @@ -12,8 +12,8 @@ - -