Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
PERFORMA_REPLICA
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
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
Muhammad Usman
PERFORMA_REPLICA
Commits
b49904bd
Commit
b49904bd
authored
Jun 12, 2020
by
Muhammad Usman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
register page refer code options fixed
parent
701aa5ac
Hide whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
483 additions
and
24 deletions
+483
-24
register.component.html
...nents/my-career-web/auth/register/register.component.html
+1
-1
base.component.ts
...r/src/app/components/my-career-web/base/base.component.ts
+27
-9
dashboard.module.ts
...pp/components/my-career-web/dashboard/dashboard.module.ts
+10
-1
dashboard.routing.ts
...p/components/my-career-web/dashboard/dashboard.routing.ts
+16
-1
dashboard.component.html
...y-career-web/dashboard/dashboard/dashboard.component.html
+16
-2
dashboard.component.scss
...y-career-web/dashboard/dashboard/dashboard.component.scss
+25
-0
dashboard.component.ts
.../my-career-web/dashboard/dashboard/dashboard.component.ts
+0
-10
home.component.html
...mponents/my-career-web/dashboard/home/home.component.html
+3
-0
home.component.scss
...mponents/my-career-web/dashboard/home/home.component.scss
+0
-0
home.component.ts
...components/my-career-web/dashboard/home/home.component.ts
+15
-0
left-sidebar.component.html
...er-web/dashboard/left-sidebar/left-sidebar.component.html
+62
-0
left-sidebar.component.scss
...er-web/dashboard/left-sidebar/left-sidebar.component.scss
+61
-0
left-sidebar.component.ts
...reer-web/dashboard/left-sidebar/left-sidebar.component.ts
+31
-0
right-sidebar.component.html
...-web/dashboard/right-sidebar/right-sidebar.component.html
+45
-0
right-sidebar.component.scss
...-web/dashboard/right-sidebar/right-sidebar.component.scss
+144
-0
right-sidebar.component.ts
...er-web/dashboard/right-sidebar/right-sidebar.component.ts
+15
-0
avatar.svg
frontend/angular/src/assets/my-career-web/svgs/avatar.svg
+12
-0
No files found.
frontend/angular/src/app/components/my-career-web/auth/register/register.component.html
View file @
b49904bd
...
...
@@ -25,7 +25,7 @@
<div
class=
"was-referred form-group"
>
<span>
Were you referred by another member?
</span>
<div
class=
"mt-sm-top"
>
<div
class=
"mt-sm-top"
style=
"white-space: nowrap;"
>
<p-radioButton
label=
"Yes"
[
value
]="
true
"
name=
"was_referred"
[(
ngModel
)]="
registerForm
.
was_referred
"
>
</p-radioButton>
<p-radioButton
label=
"No"
[
value
]="
false
"
name=
"was_referred"
[(
ngModel
)]="
registerForm
.
was_referred
"
[
ngStyle
]="{'
margin-left
'
:
'
15px
'}"
>
...
...
frontend/angular/src/app/components/my-career-web/base/base.component.ts
View file @
b49904bd
import
{
OnDestroy
}
from
'@angular/core'
;
import
{
HostListener
,
OnDestroy
,
OnInit
}
from
'@angular/core'
;
import
{
Subject
}
from
'rxjs'
;
export
class
BaseComponent
implements
OnDestroy
{
export
class
BaseComponent
implements
On
Init
,
On
Destroy
{
isEditMode
=
false
;
isLoading
=
false
;
isEditMode
=
false
;
isLoading
=
false
;
isMobileView
=
false
;
resizeTimeout
=
500
;
protected
componentInView
=
new
Subject
();
protected
componentInView
=
new
Subject
();
ngOnDestroy
():
void
{
this
.
componentInView
.
next
();
this
.
componentInView
.
complete
();
}
@
HostListener
(
'window:resize'
)
onWindowResize
()
{
//debounce resize, wait for resize to finish before doing stuff
if
(
this
.
resizeTimeout
)
{
clearTimeout
(
this
.
resizeTimeout
);
}
this
.
resizeTimeout
=
setTimeout
((()
=>
{
this
.
isMobileView
=
document
.
body
.
getBoundingClientRect
().
width
<=
600
;
}),
500
);
}
ngOnInit
():
void
{
this
.
isMobileView
=
document
.
body
.
getBoundingClientRect
().
width
<=
600
;
}
ngOnDestroy
():
void
{
this
.
componentInView
.
next
();
this
.
componentInView
.
complete
();
}
}
frontend/angular/src/app/components/my-career-web/dashboard/dashboard.module.ts
View file @
b49904bd
...
...
@@ -4,6 +4,9 @@ import { McSharedModule } from '../mc-shared/mc-shared.module';
import
{
DashboardRouting
}
from
'./dashboard.routing'
;
import
{
DashboardComponent
}
from
'./dashboard/dashboard.component'
;
import
{
HomeComponent
}
from
'./home/home.component'
;
import
{
LeftSidebarComponent
}
from
'./left-sidebar/left-sidebar.component'
;
import
{
RightSidebarComponent
}
from
'./right-sidebar/right-sidebar.component'
;
@
NgModule
({
imports
:
[
...
...
@@ -11,7 +14,13 @@ import { DashboardComponent } from './dashboard/dashboard.component';
McSharedModule
,
DashboardRouting
],
declarations
:
[
DashboardComponent
]
declarations
:
[
DashboardComponent
,
HomeComponent
,
LeftSidebarComponent
,
RightSidebarComponent
]
})
export
class
DashboardModule
{
}
frontend/angular/src/app/components/my-career-web/dashboard/dashboard.routing.ts
View file @
b49904bd
import
{
NgModule
}
from
'@angular/core'
;
import
{
RouterModule
,
Routes
}
from
'@angular/router'
;
import
{
DashboardComponent
}
from
'./dashboard/dashboard.component'
;
import
{
HomeComponent
}
from
'./home/home.component'
;
const
routes
:
Routes
=
[
{
path
:
''
,
component
:
DashboardComponent
}
{
path
:
''
,
component
:
DashboardComponent
,
children
:
[
{
path
:
'home'
,
component
:
HomeComponent
},
{
path
:
''
,
redirectTo
:
'home'
,
pathMatch
:
'full'
}
]
}
];
@
NgModule
({
...
...
frontend/angular/src/app/components/my-career-web/dashboard/dashboard/dashboard.component.html
View file @
b49904bd
<app-overlay
[
isActive
]="
isLoading
"
></app-overlay>
<a
(
click
)="
logout
()"
>
Logout
</a>
<div
class=
"row"
style=
"height: 100vh;"
*
ngIf=
"!isMobileView"
>
<div
class=
"col-md-12 dashboard-wrapper"
style=
"padding: 0;"
>
<div
class=
"dashboard-left-sidebar"
>
<app-left-sidebar></app-left-sidebar>
</div>
<div
class=
"dashboard-content"
>
<router-outlet></router-outlet>
</div>
<div
class=
"dashboard-right-sidebar"
>
<app-right-sidebar></app-right-sidebar>
</div>
</div>
</div>
frontend/angular/src/app/components/my-career-web/dashboard/dashboard/dashboard.component.scss
View file @
b49904bd
.dashboard-wrapper
{
display
:
flex
;
justify-content
:
space-between
;
height
:
100%
;
background
:
#FAFCFD
;
.dashboard
{
&
-left-sidebar
,
&
-right-sidebar
{
height
:
100%
;
box-shadow
:
0
0
20px
0
rgba
(
128
,
130
,
133
,
0
.13
);
min-width
:
260px
;
width
:
18%
;
}
&
-content-sidebar
{
}
&
-right-sidebar
{
}
}
}
frontend/angular/src/app/components/my-career-web/dashboard/dashboard/dashboard.component.ts
View file @
b49904bd
...
...
@@ -22,14 +22,4 @@ export class DashboardComponent extends BaseComponent implements OnInit {
//
}
logout
():
void
{
this
.
isLoading
=
true
;
this
.
as
.
logout
()
.
pipe
(
takeUntil
(
this
.
componentInView
))
.
subscribe
(()
=>
{
this
.
r
.
navigate
([
'/my-career-web/auth/login'
]);
this
.
isLoading
=
false
;
});
}
}
frontend/angular/src/app/components/my-career-web/dashboard/home/home.component.html
0 → 100644
View file @
b49904bd
<p>
home works!
</p>
frontend/angular/src/app/components/my-career-web/dashboard/home/home.component.scss
0 → 100644
View file @
b49904bd
frontend/angular/src/app/components/my-career-web/dashboard/home/home.component.ts
0 → 100644
View file @
b49904bd
import
{
Component
,
OnInit
}
from
'@angular/core'
;
@
Component
({
selector
:
'app-home'
,
templateUrl
:
'./home.component.html'
,
styleUrls
:
[
'./home.component.scss'
]
})
export
class
HomeComponent
implements
OnInit
{
constructor
()
{
}
ngOnInit
()
{
}
}
frontend/angular/src/app/components/my-career-web/dashboard/left-sidebar/left-sidebar.component.html
0 → 100644
View file @
b49904bd
<div
class=
"left-sidebar"
>
<div
class=
"matchd-logo"
>
<img
src=
"assets/my-career-web/images/MATCHD_LOGO.jpg"
alt=
""
>
</div>
<div
class=
"sidebar-navigation"
>
<div
class=
"sidebar-navigation-item"
routerLink=
"/my-career-web/dashboard/home"
routerLinkActive=
"active"
>
<span
class=
"sidebar-navigation-item-icon"
>
<i
class=
"fa fa-home"
></i>
</span>
<span
class=
"sidebar-navigation-item-text"
>
Home
</span>
</div>
<div
class=
"sidebar-navigation-item disabled"
>
<span
class=
"sidebar-navigation-item-icon"
>
<i
class=
"fa fa-lock"
></i>
</span>
<span
class=
"sidebar-navigation-item-text"
>
My Career Profile
</span>
</div>
<div
class=
"sidebar-navigation-item"
>
<span
class=
"sidebar-navigation-item-icon"
>
<i
class=
"fa fa-clipboard"
></i>
</span>
<span
class=
"sidebar-navigation-item-text"
>
My Reports
</span>
</div>
<div
class=
"sidebar-navigation-item"
>
<span
class=
"sidebar-navigation-item-icon"
>
<i
class=
"fa fa-gear"
></i>
</span>
<span
class=
"sidebar-navigation-item-text"
>
My Account
</span>
</div>
<div
class=
"sidebar-navigation-item"
style=
"pointer-events: none;"
>
<hr
style=
"border-bottom: 1px solid #E0E0E0;"
>
</div>
<div
class=
"sidebar-navigation-item"
(
click
)="
logout
()"
>
<span
class=
"sidebar-navigation-item-icon"
>
<i
class=
"fa"
[
ngClass
]="
isLoading
?
'
fa-spin
fa-spinner
'
:
'
fa-sign-out
'"
></i>
</span>
<span
class=
"sidebar-navigation-item-text"
>
Logout
</span>
</div>
</div>
</div>
frontend/angular/src/app/components/my-career-web/dashboard/left-sidebar/left-sidebar.component.scss
0 → 100644
View file @
b49904bd
@import
"~styles/my-career-styles/variables"
;
.left-sidebar
{
padding
:
26px
26px
0
0
;
.matchd-logo
{
height
:
32px
;
width
:
165px
;
margin-left
:
48px
;
img
{
width
:
100%
;
height
:
100%
;
}
}
.sidebar-navigation
{
margin-top
:
48px
;
&
-item
{
height
:
55px
;
border-radius
:
0
3px
3px
0
;
padding
:
17px
24px
;
transition
:
.3s
all
;
cursor
:
pointer
;
color
:
#58595B
;
&
-icon
{
font-size
:
18px
;
}
&
-text
{
padding-left
:
9px
;
font-family
:
$bodyFont
;
font-size
:
16px
;
font-weight
:
500
;
letter-spacing
:
0
;
line-height
:
21px
;
}
&
:hover
{
background
:
#eee
;
}
&
.active
{
background
:
linear-gradient
(
135deg
,
#12A8DE
0%
,
#1469A2
100%
);
color
:
#fff
;
&
:hover
{
box-shadow
:
0
0
7px
0
#12A8DE
;
}
}
&
.disabled
{
color
:
#9C9FA5
;
pointer-events
:
none
;
}
}
}
}
frontend/angular/src/app/components/my-career-web/dashboard/left-sidebar/left-sidebar.component.ts
0 → 100644
View file @
b49904bd
import
{
Component
}
from
'@angular/core'
;
import
{
takeUntil
}
from
'rxjs/operators'
;
import
{
AuthService
}
from
'../../services/auth.service'
;
import
{
Router
}
from
'@angular/router'
;
import
{
BaseComponent
}
from
'../../base/base.component'
;
@
Component
({
selector
:
'app-left-sidebar'
,
templateUrl
:
'./left-sidebar.component.html'
,
styleUrls
:
[
'./left-sidebar.component.scss'
]
})
export
class
LeftSidebarComponent
extends
BaseComponent
{
constructor
(
private
as
:
AuthService
,
private
r
:
Router
)
{
super
();
}
logout
():
void
{
this
.
isLoading
=
true
;
this
.
as
.
logout
()
.
pipe
(
takeUntil
(
this
.
componentInView
))
.
subscribe
(()
=>
{
this
.
r
.
navigate
([
'/my-career-web/auth/login'
]);
this
.
isLoading
=
false
;
});
}
}
frontend/angular/src/app/components/my-career-web/dashboard/right-sidebar/right-sidebar.component.html
0 → 100644
View file @
b49904bd
<div
class=
"right-sidebar"
>
<div
class=
"user-profile"
>
<i
class=
"fa fa-bell"
></i>
<div
class=
"user-profile-avatar-wrapper"
>
<div
class=
"user-profile-avatar"
>
<img
src=
"assets/my-career-web/svgs/avatar.svg"
alt=
""
>
</div>
</div>
<div
class=
"user-profile-label"
>
Profile 67% complete
</div>
<hr
style=
"border-bottom: 1px solid #E0E0E0; margin: 24px 0;"
>
<div
class=
"user-profile-name"
>
MARK STAFFORD
</div>
<div
class=
"user-profile-role"
style=
"margin-top: 5px;"
>
Web Developer
</div>
<div
class=
"user-profile-completion"
>
<div
class=
"user-profile-sections"
>
<div
class=
"user-profile-section active"
>
<span>
Personal Details
</span>
<span
class=
"section-percentage"
>
0%
</span>
<button
class=
"section-start"
>
Get started
</button>
</div>
<div
class=
"user-profile-section"
>
<span>
Work Strengths
</span>
<span
class=
"section-percentage"
>
0%
</span>
</div>
<div
class=
"user-profile-section"
>
<span>
Career Values
</span>
<span
class=
"section-percentage"
>
0%
</span>
</div>
<div
class=
"user-profile-section"
>
<span>
Career History
</span>
<span
class=
"section-percentage"
>
0%
</span>
</div>
<div
class=
"user-profile-section"
>
<span>
Diversity
</span>
<span
class=
"section-percentage"
>
0%
</span>
</div>
</div>
</div>
</div>
</div>
frontend/angular/src/app/components/my-career-web/dashboard/right-sidebar/right-sidebar.component.scss
0 → 100644
View file @
b49904bd
@import
"~styles/my-career-styles/variables"
;
.right-sidebar
{
padding
:
26px
24px
;
.user-profile
{
position
:
relative
;
&
-avatar-wrapper
{
position
:
relative
;
text-align
:
center
;
width
:
112px
;
height
:
112px
;
margin
:
0
auto
;
border-radius
:
100%
;
background
:
linear-gradient
(
270deg
,
#1469A2
50%
,
transparent
50%
)
,
linear-gradient
(
-90deg
,
#1469A2
50%
,
#EAECEE
50%
);
padding
:
4px
;
.user-profile-avatar
{
height
:
100%
;
width
:
100%
;
background
:
#fff
;
border-radius
:
50%
;
padding
:
12px
;
img
{
width
:
100%
;
height
:
100%
;
}
}
}
.fa-bell
{
position
:
absolute
;
right
:
0
;
top
:
0
;
font-size
:
22px
;
color
:
#12A8DE
;
}
&
-label
{
margin-top
:
18px
;
text-align
:
center
;
}
&
-name
,
&
-role
,
&
-label
{
color
:
#58595B
;
font-family
:
$bodyFont
;
font-size
:
16px
;
letter-spacing
:
0
;
line-height
:
21px
;
text-align
:
center
;
}
&
-name
{
font-weight
:
600
;
text-transform
:
uppercase
;
}
&
-completion
{
margin-top
:
30px
;
.user-profile-sections
{
padding
:
0
0
0
40px
;
.user-profile-section
{
border
:
1px
solid
#E0E0E0
;
border-radius
:
2px
;
font-size
:
14px
;
font-family
:
$bodyFont
;
margin-bottom
:
16px
;
padding
:
5px
8px
;
color
:
#9C9FA5
;
position
:
relative
;
.section-percentage
{
position
:
absolute
;
right
:
4px
;
top
:
4px
;
}
.section-start
{
border-radius
:
4px
;
background-color
:
#12A8DE
;
line-height
:
21px
;
font-family
:
$bodyFont
;
color
:
#fff
;
box-shadow
:
none
;
border
:
0
;
display
:
block
;
height
:
40px
;
width
:
100%
;
margin-top
:
7px
;
}
&
.active
{
border-color
:
#12A8DE
;
font-weight
:
bold
;
color
:
#58595B
;
&
:before
{
background
:
#12A8DE
;
}
&
:after
{
background
:
linear-gradient
(
0
,
#E0E0D8
-5%
,
#12A8DE
100%
);
}
}
&
:before
{
content
:
''
;
position
:
absolute
;
left
:
-35px
;
width
:
12px
;
height
:
12px
;
border-radius
:
50%
;
top
:
0
;
background
:
#E0E0E0
;
}
&
:after
{
content
:
''
;
position
:
absolute
;
left
:
-30px
;
width
:
2px
;
top
:
0
;
bottom
:
-18px
;
background
:
#E0E0E0
;
}
&
:last-child:after
{
top
:
unset
;
bottom
:
unset
;
}
}
}
}
}
}
frontend/angular/src/app/components/my-career-web/dashboard/right-sidebar/right-sidebar.component.ts
0 → 100644
View file @
b49904bd
import
{
Component
,
OnInit
}
from
'@angular/core'
;
@
Component
({
selector
:
'app-right-sidebar'
,
templateUrl
:
'./right-sidebar.component.html'
,
styleUrls
:
[
'./right-sidebar.component.scss'
]
})
export
class
RightSidebarComponent
implements
OnInit
{
constructor
()
{
}
ngOnInit
()
{
}
}
frontend/angular/src/assets/my-career-web/svgs/avatar.svg
0 → 100644
View file @
b49904bd
<?xml version="1.0" encoding="UTF-8"?>
<svg
width=
"76px"
height=
"76px"
viewBox=
"0 0 76 76"
version=
"1.1"
xmlns=
"http://www.w3.org/2000/svg"
xmlns:xlink=
"http://www.w3.org/1999/xlink"
>
<!-- Generator: sketchtool 63.1 (101010) - https://sketch.com -->
<g
id=
"Matchd-App-V2"
stroke=
"none"
stroke-width=
"1"
fill=
"none"
fill-rule=
"evenodd"
>
<g
id=
"Dashboard-new-user"
transform=
"translate(-1272.000000, -48.000000)"
>
<g
id=
"Avatar"
transform=
"translate(1272.000000, 48.000000)"
>
<circle
id=
"Oval"
fill=
"#AEAEAE"
cx=
"38"
cy=
"38"
r=
"38"
></circle>
<path
d=
"M47.5,29.3793103 C47.5,34.5691954 43.2566667,38.7586207 38,38.7586207 C32.7433333,38.7586207 28.5,34.5691954 28.5,29.3793103 C28.5,24.1894253 32.7433333,20 38,20 C43.2566667,20 47.5,24.1894253 47.5,29.3793103 L47.5,29.3793103 Z M19,50.8544996 C19,44.5634987 31.6666667,41.1034483 38,41.1034483 C44.3333333,41.1034483 57,44.5634987 57,50.8544996 L57,54 L19,54 L19,50.8544996 L19,50.8544996 Z"
id=
"Shape"
fill=
"#FFFFFF"
></path>
</g>
</g>
</g>
</svg>
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