frontender 4

This commit is contained in:
julian 2024-07-04 13:45:42 -03:00
parent efd656a208
commit ad3c3f8e33
4 changed files with 18 additions and 14 deletions

View File

@ -47,6 +47,7 @@ body{
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
margin-right: 150px;
} }
.log_in_form{ .log_in_form{
@ -66,10 +67,11 @@ body{
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
border-radius: 5px; border-radius: 5px;
padding: 15px;
height: max-content; height: max-content;
max-width: 250px; width: 400px;
text-align: center; text-align: center;
padding-top: 25px;
padding-bottom: 25px;
} }
.reg_form{ .reg_form{
@ -80,8 +82,9 @@ body{
align-items: center; align-items: center;
padding: 15px; padding: 15px;
height: max-content; height: max-content;
width: 300px;
text-align: center; text-align: center;
width: 400px;
height: max-content;
} }
div > .reg_form{} div > .reg_form{}
@ -205,7 +208,7 @@ div > .reg_form{}
.login-container{ .login-container{
display: flex; display: flex;
justify-content: space-evenly; justify-content: center;
margin-top: 50px; margin-top: 50px;
align-items: flex-start; align-items: flex-start;
} }
@ -213,7 +216,7 @@ div > .reg_form{}
.welcome_text{ .welcome_text{
background-color: #a0cfd2; background-color: #a0cfd2;
width: 40%; width: 40%;
padding: 30px; padding: 35px;
max-width: 500px; max-width: 500px;
font-size: 18px; font-size: 18px;
border-radius: 5px; border-radius: 5px;

View File

@ -429,10 +429,10 @@ defmodule DerivantesWeb.CoreComponents do
~H""" ~H"""
<header class={[@actions != [] && "flex items-center justify-between gap-6", @class]}> <header class={[@actions != [] && "flex items-center justify-between gap-6", @class]}>
<div> <div>
<h1 class="text-lg font-semibold leading-8 text-zinc-800"> <h1 class="text-3xl font-semibold leading-8 text-zinc-800 mt-4">
<%= render_slot(@inner_block) %> <%= render_slot(@inner_block) %>
</h1> </h1>
<p :if={@subtitle != []} class="mt-2 text-sm leading-6 text-zinc-600"> <p :if={@subtitle != []} class="mt-6 text-md leading-6 text-zinc-600">
<%= render_slot(@subtitle) %> <%= render_slot(@subtitle) %>
</p> </p>
</div> </div>

View File

@ -1,4 +1,4 @@
<!-- <.flash_group flash={@flash} /> <.flash_group flash={@flash} />
<div class="left-[40rem] fixed inset-y-0 right-0 z-0 hidden lg:block xl:left-[50rem]"> <div class="left-[40rem] fixed inset-y-0 right-0 z-0 hidden lg:block xl:left-[50rem]">
<svg <svg
viewBox="0 0 1480 957" viewBox="0 0 1480 957"
@ -36,8 +36,10 @@
fill="#A41C42" fill="#A41C42"
fill-opacity=".2" fill-opacity=".2"
/> />
</svg> </svg>
</div> </div>
<div class="px-4 py-10 sm:px-6 sm:py-28 lg:px-8 xl:px-28 xl:py-32"> <div class="px-4 py-10 sm:px-6 sm:py-28 lg:px-8 xl:px-28 xl:py-32">
<div class="mx-auto max-w-xl lg:mx-0"> <div class="mx-auto max-w-xl lg:mx-0">
<svg viewBox="0 0 71 48" class="h-12" aria-hidden="true"> <svg viewBox="0 0 71 48" class="h-12" aria-hidden="true">
@ -216,8 +218,7 @@
</a> </a>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
-->

View File

@ -7,7 +7,7 @@ defmodule DerivantesWeb.UserRegistrationLive do
def render(assigns) do def render(assigns) do
~H""" ~H"""
<div class="register_screen"> <div class="register_screen">
<.header class="text-center mb-5 mt-5"> <.header class="text-center mb-5 mt-5 text-xl">
Registre su nueva cuenta Registre su nueva cuenta
<:subtitle> <:subtitle>
¿Ya tiene una cuenta? ¿Ya tiene una cuenta?
@ -31,13 +31,13 @@ defmodule DerivantesWeb.UserRegistrationLive do
<.error :if={@check_errors}> <.error :if={@check_errors}>
Hubo un error. Hubo un error.
</.error> </.error>
<img src={~p"/images/sana_americano_logo.png"} alt="Sanatorio Americano Logo" style="margin-top: 5px; margin-bottom: 20px;"/> <img src={~p"/images/sana_americano_logo.png"} alt="Sanatorio Americano Logo" style="margin-top: 30px; margin-bottom: 20px;"/>
<.input class="imput_text w-40" field={@form[:matricula]} type="text" placeholder="Matrícula" required /> <.input class="imput_text w-40" field={@form[:matricula]} type="text" placeholder="Matrícula" required />
<.input class="imput_text w-40" field={@form[:email]} type="email" placeholder="Email" required /> <.input class="imput_text w-40" field={@form[:email]} type="email" placeholder="Email" required />
<.input class="imput_text w-40" field={@form[:password]} type="password" placeholder="Contraseña" required /> <.input class="imput_text w-40" field={@form[:password]} type="password" placeholder="Contraseña" required />
<:actions> <:actions>
<.button phx-disable-with="Creando cuenta..." class="submit_button" style="margin-top: 15px;">Crear cuenta</.button> <.button phx-disable-with="Creando cuenta..." class="submit_button" style="margin-top: 20px; margin-bottom: 25px;">Crear cuenta</.button>
</:actions> </:actions>
</.simple_form> </.simple_form>
</div> </div>