Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mySkill-x
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
mySkill-x
Commits
75b18de3
Commit
75b18de3
authored
Nov 29, 2024
by
DESKTOP-HBB3MIJ\myHR
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
แก้ routerlink ไปหน้า signup
parent
e79c0327
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
81 deletions
+26
-81
login-page2.component.html
src/app/authentication/login-page/login-page2.component.html
+25
-80
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
...
@@ -2,22 +2,13 @@
...
@@ -2,22 +2,13 @@
<div
class=
"flex h-full !py-0 bg-white dark:bg-bgdark"
>
<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=
"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=
"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"
>
<a
routerLink=
"/dashboard/sales"
class=
"header- logo"
>
<img
style=
"height: 36px; width: 93px;"
<img
style=
"height: 36px; width: 93px;"
src=
"./assets/img/brand-logos/logo-login-light.png"
alt=
"logo"
src=
"./assets/img/brand-logos/logo-login-light.png"
class=
"ltr:ml-auto rtl:mr-auto block"
/>
alt=
"logo"
class=
"ltr:ml-auto rtl:mr-auto block"
/>
</a>
</a>
<div
<div
class=
"authentication-page justify-center w-full max-w-7xl mx-auto p-0"
>
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]"
/>
>
<img
src=
"./assets/img/loginform/Computer login-bro.png"
alt=
"logo"
class=
"mx-auto h-[500px]"
/>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -26,28 +17,16 @@
...
@@ -26,28 +17,16 @@
<!-- ========== MAIN CONTENT ========== -->
<!-- ========== MAIN CONTENT ========== -->
<main
id=
"content"
class=
"w-full max-w-md mx-auto p-6"
>
<main
id=
"content"
class=
"w-full max-w-md mx-auto p-6"
>
<a
routerLink=
"/dashboard/sales"
class=
"header-logo"
>
<a
routerLink=
"/dashboard/sales"
class=
"header-logo"
>
<img
<img
src=
"./assets/img/brand-logos/logo.png"
alt=
"logo"
class=
"mx-auto block dark:hidden"
/>
src=
"./assets/img/brand-logos/logo.png"
<img
src=
"./assets/img/brand-logos/desktop-dark.png"
alt=
"logo"
class=
"mx-auto hidden dark:block"
/>
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>
</a>
<div
class=
"mt-2"
>
<div
class=
"mt-2"
>
<div
class=
"p-4 sm:p-7"
>
<div
class=
"p-4 sm:p-7"
>
<div
class=
"text-center"
>
<div
class=
"text-center"
>
<h1
<h1
class=
"block text-2xl font-bold text-gray-800 dark:text-white"
>
class=
"block text-2xl font-bold text-gray-800 dark:text-white"
>
Sign in
Sign in
</h1>
</h1>
<h1
<h1
class=
"block text-1xl font-bold text-gray-800 dark:text-white"
>
class=
"block text-1xl font-bold text-gray-800 dark:text-white"
>
(ลงชื่อเข้าใช้งานระบบ)
(ลงชื่อเข้าใช้งานระบบ)
</h1>
</h1>
</div>
</div>
...
@@ -60,21 +39,11 @@
...
@@ -60,21 +39,11 @@
<div
class=
"grid gap-y-4"
>
<div
class=
"grid gap-y-4"
>
<!-- Form Group -->
<!-- Form Group -->
<div>
<div>
<label
<label
for=
"email"
class=
"block text-sm mb-2 dark:text-white"
>
Email address (อีเมล์)
</label>
for=
"email"
class=
"block text-sm mb-2 dark:text-white"
>
Email address (อีเมล์)
</label
>
<div
class=
"relative"
>
<div
class=
"relative"
>
<input
<input
type=
"email"
id=
"email"
name=
"email"
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"
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"
placeholder=
"Username"
autocomplete
formControlName=
"username"
/>
autocomplete
formControlName=
"username"
/>
</div>
</div>
</div>
</div>
<!-- End Form Group -->
<!-- End Form Group -->
...
@@ -82,26 +51,14 @@
...
@@ -82,26 +51,14 @@
<!-- Form Group -->
<!-- Form Group -->
<div>
<div>
<div
class=
"flex justify-between items-center"
>
<div
class=
"flex justify-between items-center"
>
<label
<label
for=
"password"
class=
"block text-sm mb-2 dark:text-white"
>
Password (รหัสผ่าน)
</label>
for=
"password"
<a
class=
"text-sm text-primary decoration-2 hover:underline font-medium"
class=
"block text-sm mb-2 dark:text-white"
routerLink=
"/forgotpassword/basic"
>
Forgot password?
</a>
>
Password (รหัสผ่าน)
</label
>
<a
class=
"text-sm text-primary decoration-2 hover:underline font-medium"
routerLink=
"/forgotpassword/basic"
>
Forgot password?
</a
>
</div>
</div>
<div
class=
"relative"
>
<div
class=
"relative"
>
<input
[
type
]="
showPassword
?
'
text
'
:
'
password
'"
<input
[
type
]="
showPassword
?
'
text
'
:
'
password
'"
id=
"password"
name=
"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"
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"
placeholder=
"Password"
autocomplete
formControlName=
"password"
/>
autocomplete
formControlName=
"password"
/>
</div>
</div>
</div>
</div>
<!-- End Form Group -->
<!-- End Form Group -->
...
@@ -109,33 +66,22 @@
...
@@ -109,33 +66,22 @@
<!-- Checkbox -->
<!-- Checkbox -->
<div
class=
"flex items-center"
>
<div
class=
"flex items-center"
>
<div
class=
"flex"
>
<div
class=
"flex"
>
<input
<input
id=
"remember-me"
name=
"remember-me"
type=
"checkbox"
id=
"remember-me"
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"
/>
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>
<div
class=
"ltr:ml-3 rtl:mr-3"
>
<div
class=
"ltr:ml-3 rtl:mr-3"
>
<label
for=
"remember-me"
class=
"text-sm dark:text-white"
<label
for=
"remember-me"
class=
"text-sm dark:text-white"
>
Remember me
</label>
>
Remember me
</label
>
</div>
</div>
</div>
</div>
<!-- End Checkbox -->
<!-- End Checkbox -->
<a
<a
routerLink=
"/dashboard/sales"
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
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"
in
</a>
>
Sign in
</a
>
<div
class=
"text-center"
>
<div
class=
"text-center"
>
<p
class=
"mt-3 text-sm text-gray-600 dark:text-white/70"
>
<p
class=
"mt-3 text-sm text-gray-600 dark:text-white/70"
>
Don't have an account yet?
Don't have an account yet?
(คุณมีบัญชีเเล้วหรือยัง?)
(คุณมีบัญชีเเล้วหรือยัง?)
<a
<a
class=
"text-primary decoration-2 hover:underline font-medium"
routerLink=
"/auth/register"
>
class=
"text-primary decoration-2 hover:underline font-medium"
routerLink=
"/signin/basic"
>
Sign up here
Sign up here
(กรุณาลงทะเบียนที่นี่ หากคุณยังไม่มีบัญชีเข้าใช้)
(กรุณาลงทะเบียนที่นี่ หากคุณยังไม่มีบัญชีเข้าใช้)
</a>
</a>
...
@@ -154,4 +100,4 @@
...
@@ -154,4 +100,4 @@
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
\ No newline at end of file
src/app/authentication/register-page/register-page.component.ts
View file @
75b18de3
...
@@ -21,7 +21,7 @@ export class RegisterPageComponent {
...
@@ -21,7 +21,7 @@ export class RegisterPageComponent {
const
html
:
any
=
this
.
elementRef
.
nativeElement
.
ownerDocument
.
documentElement
;
const
html
:
any
=
this
.
elementRef
.
nativeElement
.
ownerDocument
.
documentElement
;
html
.
classList
.
add
(
'h-full'
,
'light'
);
html
.
classList
.
add
(
'h-full'
,
'light'
);
html
.
removeAttribute
(
'data-header-styles'
,
'light'
);
html
.
removeAttribute
(
'data-header-styles'
,
'light'
);
// html.removeAttribute('data-nav-layout', 'vertical');
if
(
localStorage
.
getItem
(
'synto-header-mode'
)
==
'dark'
)
{
if
(
localStorage
.
getItem
(
'synto-header-mode'
)
==
'dark'
)
{
const
html
:
any
=
this
.
elementRef
.
nativeElement
.
ownerDocument
.
documentElement
;
const
html
:
any
=
this
.
elementRef
.
nativeElement
.
ownerDocument
.
documentElement
;
html
.
classList
.
add
(
'h-full'
,
'dark'
);
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