Commit 75b18de3 by Natthaphat Pankiang

แก้ routerlink ไปหน้า signup

parent e79c0327
......@@ -2,22 +2,13 @@
<div class="flex h-full !py-0 bg-white dark:bg-bgdark">
<div class="grid grid-cols-12 gap-6 w-full h-full">
<div class="lg:col-span-6 col-span-12 hidden lg:block relative">
<div class="cover relative w-full h-full z-[1] p-10" >
<div class="cover relative w-full h-full z-[1] p-10">
<a routerLink="/dashboard/sales" class="header- logo">
<img style="height: 36px; width: 93px;"
src="./assets/img/brand-logos/logo-login-light.png"
alt="logo"
class="ltr:ml-auto rtl:mr-auto block"
/>
<img style="height: 36px; width: 93px;" src="./assets/img/brand-logos/logo-login-light.png" alt="logo"
class="ltr:ml-auto rtl:mr-auto block" />
</a>
<div
class="authentication-page justify-center w-full max-w-7xl mx-auto p-0"
>
<img
src="./assets/img/loginform/Computer login-bro.png"
alt="logo"
class="mx-auto h-[500px]"
/>
<div class="authentication-page justify-center w-full max-w-7xl mx-auto p-0">
<img src="./assets/img/loginform/Computer login-bro.png" alt="logo" class="mx-auto h-[500px]" />
</div>
</div>
</div>
......@@ -26,28 +17,16 @@
<!-- ========== MAIN CONTENT ========== -->
<main id="content" class="w-full max-w-md mx-auto p-6">
<a routerLink="/dashboard/sales" class="header-logo">
<img
src="./assets/img/brand-logos/logo.png"
alt="logo"
class="mx-auto block dark:hidden"
/>
<img
src="./assets/img/brand-logos/desktop-dark.png"
alt="logo"
class="mx-auto hidden dark:block"
/>
<img src="./assets/img/brand-logos/logo.png" alt="logo" class="mx-auto block dark:hidden" />
<img src="./assets/img/brand-logos/desktop-dark.png" alt="logo" class="mx-auto hidden dark:block" />
</a>
<div class="mt-2">
<div class="p-4 sm:p-7">
<div class="text-center">
<h1
class="block text-2xl font-bold text-gray-800 dark:text-white"
>
<h1 class="block text-2xl font-bold text-gray-800 dark:text-white">
Sign in
</h1>
<h1
class="block text-1xl font-bold text-gray-800 dark:text-white"
>
<h1 class="block text-1xl font-bold text-gray-800 dark:text-white">
(ลงชื่อเข้าใช้งานระบบ)
</h1>
</div>
......@@ -60,21 +39,11 @@
<div class="grid gap-y-4">
<!-- Form Group -->
<div>
<label
for="email"
class="block text-sm mb-2 dark:text-white"
>Email address (อีเมล์)</label
>
<label for="email" class="block text-sm mb-2 dark:text-white">Email address (อีเมล์)</label>
<div class="relative">
<input
type="email"
id="email"
name="email"
<input type="email" id="email" name="email"
class="py-2 px-3 block w-full border-gray-200 rounded-sm text-sm focus:border-primary focus:ring-primary dark:bg-bgdark dark:border-white/10 dark:text-white/70"
placeholder="Username"
autocomplete
formControlName="username"
/>
placeholder="Username" autocomplete formControlName="username" />
</div>
</div>
<!-- End Form Group -->
......@@ -82,26 +51,14 @@
<!-- Form Group -->
<div>
<div class="flex justify-between items-center">
<label
for="password"
class="block text-sm mb-2 dark:text-white"
>Password (รหัสผ่าน)</label
>
<a
class="text-sm text-primary decoration-2 hover:underline font-medium"
routerLink="/forgotpassword/basic"
>Forgot password?</a
>
<label for="password" class="block text-sm mb-2 dark:text-white">Password (รหัสผ่าน)</label>
<a class="text-sm text-primary decoration-2 hover:underline font-medium"
routerLink="/forgotpassword/basic">Forgot password?</a>
</div>
<div class="relative">
<input [type]="showPassword ? 'text' : 'password'"
id="password"
name="password"
<input [type]="showPassword ? 'text' : 'password'" id="password" name="password"
class="py-2 px-3 block w-full border-gray-200 rounded-sm text-sm focus:border-primary focus:ring-primary dark:bg-bgdark dark:border-white/10 dark:text-white/70"
placeholder="Password"
autocomplete
formControlName="password"
/>
placeholder="Password" autocomplete formControlName="password" />
</div>
</div>
<!-- End Form Group -->
......@@ -109,33 +66,22 @@
<!-- Checkbox -->
<div class="flex items-center">
<div class="flex">
<input
id="remember-me"
name="remember-me"
type="checkbox"
class="shrink-0 mt-0.5 border-gray-200 rounded text-primary focus:ring-primary dark:bg-bgdark dark:border-white/10 dark:checked:bg-primary dark:checked:border-primary dark:focus:ring-offset-white/10"
/>
<input id="remember-me" name="remember-me" type="checkbox"
class="shrink-0 mt-0.5 border-gray-200 rounded text-primary focus:ring-primary dark:bg-bgdark dark:border-white/10 dark:checked:bg-primary dark:checked:border-primary dark:focus:ring-offset-white/10" />
</div>
<div class="ltr:ml-3 rtl:mr-3">
<label for="remember-me" class="text-sm dark:text-white"
>Remember me</label
>
<label for="remember-me" class="text-sm dark:text-white">Remember me</label>
</div>
</div>
<!-- End Checkbox -->
<a
routerLink="/dashboard/sales"
class="py-2 px-3 inline-flex justify-center items-center gap-2 rounded-sm border border-transparent font-semibold bg-primary text-white hover:bg-primary focus:outline-none focus:ring-0 focus:ring-primary focus:ring-offset-0 transition-all text-sm dark:focus:ring-offset-white/10"
>Sign in</a
>
<a routerLink="/dashboard/sales"
class="py-2 px-3 inline-flex justify-center items-center gap-2 rounded-sm border border-transparent font-semibold bg-primary text-white hover:bg-primary focus:outline-none focus:ring-0 focus:ring-primary focus:ring-offset-0 transition-all text-sm dark:focus:ring-offset-white/10">Sign
in</a>
<div class="text-center">
<p class="mt-3 text-sm text-gray-600 dark:text-white/70">
Don't have an account yet?
(คุณมีบัญชีเเล้วหรือยัง?)
<a
class="text-primary decoration-2 hover:underline font-medium"
routerLink="/signin/basic"
>
<a class="text-primary decoration-2 hover:underline font-medium" routerLink="/auth/register">
Sign up here
(กรุณาลงทะเบียนที่นี่ หากคุณยังไม่มีบัญชีเข้าใช้)
</a>
......@@ -154,4 +100,4 @@
</div>
</div>
</div>
</div>
\ No newline at end of file
</div>
......@@ -21,7 +21,7 @@ export class RegisterPageComponent {
const html: any = this.elementRef.nativeElement.ownerDocument.documentElement;
html.classList.add('h-full', 'light');
html.removeAttribute('data-header-styles', 'light');
// html.removeAttribute('data-nav-layout', 'vertical');
if (localStorage.getItem('synto-header-mode') == 'dark') {
const html: any = this.elementRef.nativeElement.ownerDocument.documentElement;
html.classList.add('h-full', 'dark');
......
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