File tree Expand file tree Collapse file tree 9 files changed +100
-24
lines changed Expand file tree Collapse file tree 9 files changed +100
-24
lines changed Original file line number Diff line number Diff line change @@ -14,20 +14,22 @@ <h3>Account</h3>
14
14
You can choose to connect via < strong > email/username and password</ strong > , or
15
15
via one of the following identity providers supported
16
16
</ p >
17
- < ul class ="identity-providers-list ">
18
- < li >
19
- < i class ="fab fa-github "> </ i > Github
20
- </ li >
21
- < li >
22
- < i class ="fab fa-google "> </ i > Google
23
- </ li >
24
- < li >
25
- < i class ="fab fa-gitlab "> </ i > Gitlab
26
- </ li >
27
- < li >
28
- < i class ="fab fa-stack-overflow "> </ i > StackOverflow
29
- </ li >
30
- </ ul >
17
+ < div class ="identity-providers-list ">
18
+ < ul >
19
+ < li >
20
+ < i class ="fab fa-github "> </ i > Github
21
+ </ li >
22
+ < li >
23
+ < i class ="fab fa-google "> </ i > Google
24
+ </ li >
25
+ < li >
26
+ < i class ="fab fa-gitlab "> </ i > Gitlab
27
+ </ li >
28
+ < li >
29
+ < i class ="fab fa-stack-overflow "> </ i > StackOverflow
30
+ </ li >
31
+ </ ul >
32
+ </ div >
31
33
32
34
< hr >
33
35
Original file line number Diff line number Diff line change 6
6
text-align : center ;
7
7
}
8
8
}
9
-
10
- .identity-providers-list {
11
- margin-left : -2rem ;
12
- display : flex ;
13
- justify-content : space-between ;
14
- list-style : none ;
15
- }
Original file line number Diff line number Diff line change 1
1
import { RouterModule , Routes } from '@angular/router' ;
2
2
import { NgModule } from '@angular/core' ;
3
3
import { BookmarksTaggedComponent } from './tag/bookmarks-tagged.component' ;
4
- import { AboutComponent } from './about/about.component' ;
5
4
import { HomepageComponent } from './bookmarks/homepage.component' ;
6
5
import { PrivacyPolicyComponent } from './privacy/privacy-policy.component' ;
7
6
import { TermsOfServiceComponent } from './terms/terms-of-service.component' ;
@@ -11,6 +10,8 @@ import { PublicSnippetDetailsComponent } from './snippets/public-snippet-details
11
10
import { PublicSnippetsComponent } from './public-snippets/public-snippets.component' ;
12
11
import { SnippetTaggedComponent } from './snippets/tag/snippet-tagged.component' ;
13
12
import { ExtensionsPageComponent } from './extensions/extensions-page.component' ;
13
+ import { AboutComponent } from './about/about.component' ;
14
+ import { RegisterComponent } from './register/register.component' ;
14
15
15
16
const publicRoutes : Routes = [
16
17
{
@@ -66,6 +67,10 @@ const publicRoutes: Routes = [
66
67
path : 'about' ,
67
68
component : AboutComponent
68
69
} ,
70
+ {
71
+ path : 'register' ,
72
+ component : RegisterComponent
73
+ } ,
69
74
{
70
75
path : 'extensions' ,
71
76
component : ExtensionsPageComponent
Original file line number Diff line number Diff line change 1
1
import { NgModule } from '@angular/core' ;
2
2
import { SharedModule } from '../shared/shared.module' ;
3
- import { AboutComponent } from './about/about.component' ;
4
3
import { BookmarksTaggedService } from './tag/bookmarks-tagged.service' ;
5
4
import { BookmarksTaggedComponent } from './tag/bookmarks-tagged.component' ;
6
5
import { PublicRoutingModule } from './public-routing.module' ;
@@ -23,10 +22,13 @@ import { SnippetTaggedComponent } from './snippets/tag/snippet-tagged.component'
23
22
import { SnippetTagService } from './snippets/tag/snippet-tag.service' ;
24
23
import { FeedbackService } from './feedback/feedback.service' ;
25
24
import { ExtensionsPageComponent } from './extensions/extensions-page.component' ;
25
+ import { AboutComponent } from './about/about.component' ;
26
+ import { RegisterComponent } from './register/register.component' ;
26
27
27
28
@NgModule ( {
28
29
declarations : [
29
30
AboutComponent ,
31
+ RegisterComponent ,
30
32
ExtensionsPageComponent ,
31
33
PrivacyPolicyComponent ,
32
34
TermsOfServiceComponent ,
Original file line number Diff line number Diff line change
1
+ < div id ="about-content " class ="jumbotron ">
2
+ < h2 > Register</ h2 >
3
+ < p class ="lead mb-2 "> Create an < strong > account</ strong > on Codever to manage your dev bookmarks and code snippets.
4
+ You can choose to register with your < strong > personal email</ strong > or with one of the available identity
5
+ providers:
6
+
7
+ < div class ="identity-providers-list ">
8
+ < ul >
9
+ < li >
10
+ < i class ="fab fa-github "> </ i > Github
11
+ </ li >
12
+ < li >
13
+ < i class ="fab fa-google "> </ i > Google
14
+ </ li >
15
+ < li >
16
+ < i class ="fab fa-gitlab "> </ i > Gitlab
17
+ </ li >
18
+ < li >
19
+ < i class ="fab fa-stack-overflow "> </ i > StackOverflow
20
+ </ li >
21
+ </ ul >
22
+ </ div >
23
+
24
+
25
+ < p class ="mt-2 mb-3 ">
26
+ Once registered you can use the available extensions to easily manage your bookmarks and code snippets:
27
+ </ p >
28
+
29
+ < app-extensions [showEntryParagraph] ="false " [logoSize] ="32 "> </ app-extensions >
30
+
31
+ < button class ="ml-2 mt-4 btn btn-primary btn-sm " (click) ="login() "> Create account < i class ="fas fa-user-plus "> </ i > </ button >
32
+ </ div >
Original file line number Diff line number Diff line change
1
+
Original file line number Diff line number Diff line change
1
+ import { Component , OnInit } from '@angular/core' ;
2
+ import { environment } from '../../../environments/environment' ;
3
+ import { KeycloakService } from 'keycloak-angular' ;
4
+
5
+ @Component ( {
6
+ selector : 'app-about' ,
7
+ templateUrl : './register.component.html' ,
8
+ styleUrls : [ './register.component.scss' ]
9
+ } )
10
+ export class RegisterComponent implements OnInit {
11
+
12
+ environment = environment ;
13
+
14
+ constructor ( private keycloakService : KeycloakService ) {
15
+ }
16
+
17
+ ngOnInit ( ) {
18
+ }
19
+
20
+ login ( ) {
21
+ const options : Keycloak . KeycloakLoginOptions = { } ;
22
+ options . redirectUri = `${ environment . APP_HOME_URL } ` ;
23
+ this . keycloakService . login ( options ) ;
24
+ }
25
+
26
+ }
Original file line number Diff line number Diff line change 48
48
class ="dropdown-item "
49
49
href ="https://dev.to/ama/how-i-manage-my-dev-bookmarks-and-save-time-and-nerves-56ae "
50
50
target ="_blank ">
51
+ < i class ="fas fa-smile-beam fa-sm "> </ i >
51
52
Saves time and nerves
52
53
< sup class ="external-link-hint ">
53
54
< i class ="fas fa-external-link-alt " style ="font-size: smaller "> </ i >
Original file line number Diff line number Diff line change @@ -102,10 +102,24 @@ ul.tags li:not(:last-child):after {
102
102
justify-content : space-between ;
103
103
}
104
104
105
+ .identity-providers-list {
106
+ display : flex ;
107
+ ul {
108
+ margin-left : auto ;
109
+ margin-right : auto ;
110
+ display : flex ;
111
+ list-style : none ;
112
+ li {
113
+ margin-right : 2rem ;
114
+ }
115
+ }
116
+ }
117
+
105
118
// filter search-box
106
119
/* Bootstrap 4 text input with search icon */
107
- .has-search {
120
+ .has-search {
108
121
width : 30% ;
122
+
109
123
.form-control {
110
124
padding-left : 2.375rem ;
111
125
}
You can’t perform that action at this time.
0 commit comments