From 274f97fbdcc6edd97c298e48f2bdc892504add37 Mon Sep 17 00:00:00 2001 From: Miguel michelson Date: Fri, 17 Jun 2022 15:45:17 -0400 Subject: [PATCH] some organge tweaks --- .gitignore | 1 - README.md | 6 + lib/rauversion/accounts/user.ex | 2 +- .../templates/layout/_user_menu.html.heex | 75 +++++----- .../templates/page/index.html.heex | 16 ++- .../templates/user_registration/new.html.heex | 133 +++++++++++++++--- .../user_reset_password/edit.html.heex | 63 +++++++++ .../user_reset_password/new.html.heex | 46 ++++-- .../templates/user_session/new.html.heex | 127 ++++++++++++++--- priv/static/favicon.ico | Bin 1258 -> 0 bytes .../actionvance-eXVd7gDPO9A-unsplash.jpg | Bin 0 -> 264346 bytes .../daniel-schludi-mbGxz7pt0jM-unsplash.jpg | Bin 0 -> 3180435 bytes ...music-f7e7ab6c8889444dec047388b8887119.jpg | Bin 0 -> 278413 bytes priv/static/images/phoenix.png | Bin 13900 -> 0 bytes priv/static/robots.txt | 5 - 15 files changed, 369 insertions(+), 105 deletions(-) delete mode 100644 priv/static/favicon.ico create mode 100644 priv/static/images/actionvance-eXVd7gDPO9A-unsplash.jpg create mode 100644 priv/static/images/daniel-schludi-mbGxz7pt0jM-unsplash.jpg create mode 100644 priv/static/images/musician-making-music-f7e7ab6c8889444dec047388b8887119.jpg delete mode 100644 priv/static/images/phoenix.png delete mode 100644 priv/static/robots.txt diff --git a/.gitignore b/.gitignore index d58fc177..b3ad05d4 100644 --- a/.gitignore +++ b/.gitignore @@ -26,7 +26,6 @@ rauversion-*.tar # Ignore assets that are produced by build tools. /priv/static/assets/ -/priv/static/ # Ignore digested assets cache. /priv/static/cache_manifest.json diff --git a/README.md b/README.md index 26e39339..3fb9ecad 100644 --- a/README.md +++ b/README.md @@ -14,3 +14,9 @@ Now you can visit [`localhost:4000`](http://localhost:4000) from your browser. ### fake accounts iex -S mix fake_accounts + + +### images + +https://unsplash.com/photos/eXVd7gDPO9A +https://unsplash.com/photos/mbGxz7pt0jM diff --git a/lib/rauversion/accounts/user.ex b/lib/rauversion/accounts/user.ex index f502d5eb..edd91fe4 100644 --- a/lib/rauversion/accounts/user.ex +++ b/lib/rauversion/accounts/user.ex @@ -84,7 +84,7 @@ defmodule Rauversion.Accounts.User do """ def registration_changeset(user, attrs, opts \\ []) do user - |> cast(attrs, [:email, :password]) + |> cast(attrs, [:email, :password, :username]) |> validate_email() |> validate_password(opts) end diff --git a/lib/rauversion_web/templates/layout/_user_menu.html.heex b/lib/rauversion_web/templates/layout/_user_menu.html.heex index fca7f765..fab6b41d 100644 --- a/lib/rauversion_web/templates/layout/_user_menu.html.heex +++ b/lib/rauversion_web/templates/layout/_user_menu.html.heex @@ -3,7 +3,8 @@
@@ -21,8 +22,8 @@
  • <%= link "LiveDashboard", to: Routes.live_dashboard_path(@conn, :home) %>
  • <% end %> -
  • <%= link "Register", to: Routes.user_registration_path(@conn, :new) %>
  • -
  • <%= link "Log in", to: Routes.user_session_path(@conn, :new) %>
  • + <%= link "Register", to: Routes.user_registration_path(@conn, :new), class: "rounded-md py-2 px-3 text-sm font-medium text-white hover:bg-gray-800" %> + <%= link "Log in", to: Routes.user_session_path(@conn, :new), class: "rounded-md py-2 px-3 text-sm font-medium text-white hover:bg-gray-800" %>
    @@ -42,7 +43,7 @@
    - upload @@ -57,55 +58,48 @@ Heroicon name: outline/menu" x-state:on="Menu open" x-state:off="Menu closed" class="h-6 w-6 block" :class="{ 'hidden': open, 'block': !(open) }" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true"> -
    - + \ No newline at end of file diff --git a/lib/rauversion_web/templates/page/index.html.heex b/lib/rauversion_web/templates/page/index.html.heex index 43d77566..f76517a2 100644 --- a/lib/rauversion_web/templates/page/index.html.heex +++ b/lib/rauversion_web/templates/page/index.html.heex @@ -1,7 +1,7 @@
    -