Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
myAppraisal
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
angular
myAppraisal
Commits
75b18de3
Commit
75b18de3
authored
Nov 29, 2024
by
Natthaphat Pankiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
แก้ routerlink ไปหน้า signup
parent
e79c0327
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
65 additions
and
120 deletions
+65
-120
login-page2.component.html
src/app/authentication/login-page/login-page2.component.html
+64
-119
register-page.component.ts
...p/authentication/register-page/register-page.component.ts
+1
-1
No files found.
src/app/authentication/login-page/login-page2.component.html
View file @
75b18de3
<div
class=
"auth"
>
<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"
>
<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"
/>
</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>
<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"
>
<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"
/>
</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>
</div>
<div
class=
"lg:col-span-6 col-span-12"
>
<div
class=
"authentication-page w-full"
>
<!-- ========== 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"
/>
</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"
>
Sign in
</h1>
<h1
class=
"block text-1xl font-bold text-gray-800 dark:text-white"
>
(ลงชื่อเข้าใช้งานระบบ)
</h1>
</div>
<div
class=
"mt-5"
>
<!-- Form -->
<div>
</div>
<div
class=
"lg:col-span-6 col-span-12"
>
<div
class=
"authentication-page w-full"
>
<!-- ========== 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"
/>
</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"
>
Sign in
</h1>
<h1
class=
"block text-1xl font-bold text-gray-800 dark:text-white"
>
(ลงชื่อเข้าใช้งานระบบ)
</h1>
</div>
<div
class=
"mt-5"
>
<!-- Form -->
<div>
<form
[
formGroup
]="
loginForm
"
(
ngSubmit
)="
Submit
()"
>
<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 -->
<!-- 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 -->
<!-- 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"
>
Sign up here
(กรุณาลงทะเบียนที่นี่ หากคุณยังไม่มีบัญชีเข้าใช้)
</a>
</p>
<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=
"/auth/register"
>
Sign up here
(กรุณาลงทะเบียนที่นี่ หากคุณยังไม่มีบัญชีเข้าใช้)
</a>
</p>
</div>
</div>
</form>
</div>
<!-- End Form -->
</div>
<!-- End Form -->
</div>
</div>
</
main
>
<!-- ========== END MAIN CONTENT ========== --
>
<
/div
>
</
div
>
</main
>
<
!-- ========== END MAIN CONTENT ========== --
>
</div>
</div>
</div>
</div>
\ No newline at end of file
</div>
</div>
src/app/authentication/register-page/register-page.component.ts
View file @
75b18de3
...
...
@@ -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'
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment