noahsettersten commited on
Commit
bf97079
1 Parent(s): fa95531

chore: Wrap auth live views in `<main>` tag

Browse files
lib/medical_transcription_web/live/user_login_live.ex CHANGED
@@ -3,7 +3,7 @@ defmodule MedicalTranscriptionWeb.UserLoginLive do
3
 
4
  def render(assigns) do
5
  ~H"""
6
- <div class="mx-auto max-w-sm">
7
  <.header class="text-center">
8
  Sign in to account
9
  <:subtitle>
@@ -31,7 +31,7 @@ defmodule MedicalTranscriptionWeb.UserLoginLive do
31
  </.button>
32
  </:actions>
33
  </.simple_form>
34
- </div>
35
  """
36
  end
37
 
 
3
 
4
  def render(assigns) do
5
  ~H"""
6
+ <main class="mx-auto max-w-sm">
7
  <.header class="text-center">
8
  Sign in to account
9
  <:subtitle>
 
31
  </.button>
32
  </:actions>
33
  </.simple_form>
34
+ </main>
35
  """
36
  end
37
 
lib/medical_transcription_web/live/user_registration_live.ex CHANGED
@@ -6,7 +6,7 @@ defmodule MedicalTranscriptionWeb.UserRegistrationLive do
6
 
7
  def render(assigns) do
8
  ~H"""
9
- <div class="mx-auto max-w-sm">
10
  <.header class="text-center">
11
  Register for an account
12
  <:subtitle>
@@ -38,7 +38,7 @@ defmodule MedicalTranscriptionWeb.UserRegistrationLive do
38
  <.button phx-disable-with="Creating account..." class="w-full">Create an account</.button>
39
  </:actions>
40
  </.simple_form>
41
- </div>
42
  """
43
  end
44
 
 
6
 
7
  def render(assigns) do
8
  ~H"""
9
+ <main class="mx-auto max-w-sm">
10
  <.header class="text-center">
11
  Register for an account
12
  <:subtitle>
 
38
  <.button phx-disable-with="Creating account..." class="w-full">Create an account</.button>
39
  </:actions>
40
  </.simple_form>
41
+ </main>
42
  """
43
  end
44
 
lib/medical_transcription_web/live/user_reset_password_live.ex CHANGED
@@ -5,7 +5,7 @@ defmodule MedicalTranscriptionWeb.UserResetPasswordLive do
5
 
6
  def render(assigns) do
7
  ~H"""
8
- <div class="mx-auto max-w-sm">
9
  <.header class="text-center">Reset Password</.header>
10
 
11
  <.simple_form
@@ -34,7 +34,7 @@ defmodule MedicalTranscriptionWeb.UserResetPasswordLive do
34
  <.link href={~p"/users/register"}>Register</.link>
35
  | <.link href={~p"/users/log_in"}>Log in</.link>
36
  </p>
37
- </div>
38
  """
39
  end
40
 
 
5
 
6
  def render(assigns) do
7
  ~H"""
8
+ <main class="mx-auto max-w-sm">
9
  <.header class="text-center">Reset Password</.header>
10
 
11
  <.simple_form
 
34
  <.link href={~p"/users/register"}>Register</.link>
35
  | <.link href={~p"/users/log_in"}>Log in</.link>
36
  </p>
37
+ </main>
38
  """
39
  end
40