Commit b7dfe12f by sawit

Update View Login

parent 504df891
<div
style="background:url(assets/images/background/bg2.jpg); background-repeat: no-repeat; background-size: cover; background-attachment: fixed;"
class="flex justify-center authentication authentication-basic items-center h-full text-defaultsize text-defaulttextcolor">
<div class="grid grid-cols-12">
<div class="xxl:col-span-4 xl:col-span-4 lg:col-span-4 md:col-span-3 sm:col-span-2"></div>
<div class="xxl:col-span-4 xl:col-span-4 lg:col-span-4 md:col-span-6 sm:col-span-8 col-span-12">
<div class="box">
<div class="box-body !p-[3rem]">
<div class="my-[2.5rem] flex justify-center">
<a>
<img src="./assets/images/brand-logos/logo.png" alt="logo" class="desktop-logo">
<img src="./assets/images/brand-logos/logo.png" alt="logo" class="desktop-dark">
</a>
</div>
<p class="h5 font-semibold mb-2 text-center">Sign In</p>
<div class="login-container">
<div class="login-panel left-panel">
<div class="brand-container">
<div class="mt-3">
<div class="brand-illustration">
<img src="/assets/images/logoallHR/logo-myhr-light.png" alt="Login Illustration">
</div>
<!-- <h1 class="brand-title">ระบบบริหารจัดการงานทรัพยากรบุคคล และบริการด้าน HR แบบครบวงจร</h1> -->
<!-- <p class="brand-subtitle"></p> -->
</div>
</div>
<div class="login-panel right-panel">
<div class="mt-3">
<h2 class="form-title">Welcome Back!</h2>
<p class="form-subtitle">Sign in to continue to manage</p>
<form [formGroup]="loginForm" (ngSubmit)="login()" id="segment-1" class="hidden" role="tabpanel"
aria-labelledby="segment-item-1">
<!-- <div class="form-group mt-2"> -->
......@@ -146,9 +143,18 @@
<div class="xl:col-span-12 col-span-12 grid mt-2">
<button type="submit" [disabled]="
!loginForm.valid
" class="ti-btn ti-btn-primary !bg-primary !text-white !font-medium">Sign In</button>
" class="login-button">Sign In</button>
</div>
</div>
<div class="divider">Or continue with</div>
<div class="social-login">
<button class="social-btn google"><i class="ti ti-brand-google"></i> Google</button>
<button class="social-btn facebook"><i class="ti ti-brand-facebook"></i> Facebook</button>
</div>
<p class="signup-link">
Don't have an account? <a routerLink="/auth/register">Sign up now</a>
</p>
</form>
<!-- End Form -->
</div>
......@@ -157,8 +163,5 @@
</div>
</div>
</div>
</div>
<div class="xxl:col-span-4 xl:col-span-4 lg:col-span-4 md:col-span-3 sm:col-span-2"></div>
</div>
</div>
::ng-deep{
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');
:host {
font-family: 'Poppins', sans-serif;
}
.firebase {
width: 30px;
height: 30px;
.login-container {
display: flex;
height: 100vh;
width: 100%;
overflow: hidden;
}
.login-panel {
flex: 1;
display: flex;
justify-content: center;
align-items: center;
padding: 40px;
transition: all 0.5s ease;
}
/* Left Panel - Branding */
.left-panel {
background: linear-gradient(135deg, #4a56e2, #2c38b8ac);
color: white;
.brand-container {
text-align: center;
animation: fadeIn 1s ease-in-out;
}
.brand-title {
font-size: 4rem;
font-weight: 700;
margin: 0;
letter-spacing: 2px;
}
.brand-subtitle {
font-size: 1.2rem;
margin: 0 0 40px 0;
opacity: 0.8;
}
.brand-illustration img {
max-width: 80%;
height: auto;
animation: float 4s ease-in-out infinite;
}
}
/* Right Panel - Form */
.right-panel {
background-color: #f4f7fc;
}
.login-form-container {
width: 100%;
max-width: 400px;
animation: slideInUp 0.8s ease-in-out;
}
.form-title {
font-size: 2rem;
font-weight: 700;
color: #1e293b;
margin-bottom: 8px;
}
.form-subtitle {
font-size: 1rem;
color: #64748b;
margin-bottom: 30px;
}
.input-group {
margin-bottom: 20px;
label {
display: block;
font-size: 0.9rem;
font-weight: 600;
color: #475569;
margin-bottom: 8px;
}
.input-wrapper {
position: relative;
i {
position: absolute;
left: 15px;
top: 50%;
transform: translateY(-50%);
color: #94a3b8;
}
input {
width: 100%;
padding: 12px 12px 12px 45px;
border: 1px solid #e2e8f0;
border-radius: 8px;
font-size: 1rem;
transition: border-color 0.3s, box-shadow 0.3s;
&:focus {
outline: none;
border-color: #4a56e2;
box-shadow: 0 0 0 3px rgba(74, 86, 226, 0.2);
}
}
.rounded-lg{
width: 120px;
justify-content: center;
margin: auto;
border-radius: 0.75rem;
}
}
\ No newline at end of file
}
}
.form-options {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 30px;
font-size: 0.9rem;
}
.remember-me {
display: flex;
align-items: center;
gap: 8px;
}
.forgot-password, .signup-link a {
color: #4a56e2;
text-decoration: none;
font-weight: 600;
&:hover { text-decoration: underline; }
}
.login-button {
width: 100%;
padding: 14px;
border: none;
border-radius: 8px;
background-color: #4a56e2;
color: white;
font-size: 1rem;
font-weight: 600;
cursor: pointer;
transition: background-color 0.3s, transform 0.2s;
&:hover {
background-color: #3c48c0;
transform: translateY(-2px);
}
}
.divider {
margin: 30px 0;
text-align: center;
color: #94a3b8;
font-size: 0.9rem;
position: relative;
&::before, &::after {
content: '';
position: absolute;
top: 50%;
width: 40%;
height: 1px;
background-color: #e2e8f0;
}
&::before { left: 0; }
&::after { right: 0; }
}
.social-login {
display: flex;
gap: 15px;
margin-bottom: 30px;
}
.social-btn {
flex: 1;
padding: 12px;
border-radius: 8px;
border: 1px solid #e2e8f0;
background-color: white;
cursor: pointer;
font-size: 0.9rem;
font-weight: 600;
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
transition: all 0.3s;
&:hover {
border-color: #cbd5e1;
background-color: #f8fafc;
}
}
.signup-link {
text-align: center;
font-size: 0.9rem;
color: #475569;
}
/* Animations */
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
@keyframes slideInUp {
from { transform: translateY(30px); opacity: 0; }
to { transform: translateY(0); opacity: 1; }
}
@keyframes float {
0%, 100% { transform: translateY(0); }
50% { transform: translateY(-20px); }
}
/* Responsive */
@media (max-width: 768px) {
.login-container {
flex-direction: column;
}
.left-panel {
display: none; /* Hide illustration on small screens */
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment