frontender v.1

This commit is contained in:
julian 2024-06-28 10:41:04 -03:00
parent dcd7107e54
commit e61985d50e
3 changed files with 36 additions and 23 deletions

View File

@ -17,6 +17,12 @@ body{
margin-right: auto; margin-right: auto;
} }
.login-a{
display: flex;
flex-direction: column;
align-items: center;
}
.log_in_form{ .log_in_form{
background-color: #297177; background-color: #297177;
display: flex; display: flex;
@ -36,6 +42,8 @@ body{
border-radius: 5px; border-radius: 5px;
padding: 15px; padding: 15px;
height: max-content; height: max-content;
max-width: 250px;
text-align: center;
} }
.auth_form img{ .auth_form img{
@ -62,8 +70,9 @@ body{
padding-bottom: 10px; padding-bottom: 10px;
width: 205px; width: 205px;
border-radius: 5px; border-radius: 5px;
margin-top: 20px;
font-weight: bold; font-weight: bold;
font-size: 18px;
margin-top: 5px;
} }
.info_panel{ .info_panel{
@ -153,7 +162,8 @@ body{
.login-container{ .login-container{
display: flex; display: flex;
justify-content: space-evenly; justify-content: space-evenly;
align-items: center; margin-top: 50px;
align-items: flex-start;
} }
.welcome_text{ .welcome_text{
@ -162,6 +172,7 @@ body{
padding: 30px; padding: 30px;
max-width: 500px; max-width: 500px;
font-size: 18px; font-size: 18px;
border-radius: 5px;
} }
@media (min-width: 1250px) { @media (min-width: 1250px) {

2
lib/derivantes_web/components/core_components.ex Normal file → Executable file
View File

@ -308,7 +308,7 @@ defmodule DerivantesWeb.CoreComponents do
~H""" ~H"""
<div phx-feedback-for={@name}> <div phx-feedback-for={@name}>
<label class="flex items-center gap-4 text-sm leading-6 text-white"> <label class="flex items-center gap-4 text-sm leading-6 text-white mt-2">
<input type="hidden" name={@name} value="false" /> <input type="hidden" name={@name} value="false" />
<input <input
type="checkbox" type="checkbox"

View File

@ -4,18 +4,7 @@ defmodule DerivantesWeb.UserLoginLive do
def render(assigns) do def render(assigns) do
~H""" ~H"""
<div class="login-container"> <div class="login-container">
<div> <div class="login-a">
<.header class="text-center">
Entra en su cuenta
<:subtitle>
¿No tiene una?
<.link navigate={~p"/derivantes/register"} class="font-semibold text-[#297177] hover:underline">
Registre y active
</.link>
su cuenta ahora.
</:subtitle>
</.header>
<.simple_form <.simple_form
for={@form} for={@form}
id="login_form" id="login_form"
@ -27,15 +16,17 @@ defmodule DerivantesWeb.UserLoginLive do
<.input <.input
field={@form[:email]} field={@form[:email]}
type="email" type="email"
label="Email" label=""
class="imput_text" class="imput_text"
placeholder="Email"
required required
/> />
<.input <.input
field={@form[:password]} field={@form[:password]}
type="password" type="password"
label="Contraseña" label=""
class="imput_text" class="imput_text"
placeholder="Contraseña"
required required
/> />
@ -46,18 +37,29 @@ defmodule DerivantesWeb.UserLoginLive do
</.link> </.link>
</:actions> </:actions>
<:actions> <:actions>
<.button phx-disable-with="Entrando..." class="w-full submit_button"> <.button phx-disable-with="Ingresando..." class="w-full submit_button">
Entrar <span aria-hidden="true"></span> Ingresar <span aria-hidden="true"></span>
</.button> </.button>
</:actions> </:actions>
</.simple_form> </.simple_form>
<.header class="text-center">
Ingrese a su cuenta
<:subtitle>
¿No tiene una? <br>
<.link navigate={~p"/derivantes/register"} class="font-semibold text-[#297177] hover:underline">
Registre y active
</.link>
su cuenta ahora.
</:subtitle>
</.header>
</div> </div>
<div class="welcome_text"> <div class="welcome_text">
<p>Bienvenido a Entrega Digital</p> <p style="text-align: center;">Bienvenido a Entrega Digital <br><b>Sanatorio Americano.</b></p><br>
<p>Sanatorio Americano.</p> <p>En este sitio, usted podrá visualizar los informes y estudios realizados en nuestra institución.</p><br>
<p>En este sitio, usted podrá visualizar los informes y estudios realizados en nuestra institución.</p> <p>Si presenta inconvenientes con los datos ingresados, puede comunicarse con nosotros enviando un correo a <b>mesadeayuda@sanatorio-americano.com.ar</b> detallando su nombre completo y D.N.I.</p>
<p>Si presenta inconvenientes con los datos ingresados, puede comunicarse con nosotros enviando un correo a mesadeayuda@sanatorio-americano.com.ar detallando su nombre completo y D.N.I.</p>
</div> </div>
</div> </div>
""" """