From f880ec1b77ddc84d2e0f734c17b4484b58acfd4a Mon Sep 17 00:00:00 2001 From: Surya V <102609082+Surya-V-28@users.noreply.github.com> Date: Mon, 28 Aug 2023 07:21:53 +0000 Subject: [PATCH 1/5] style: added the logos on loginpage #292 --- .../authentication/authentication.component.html | 6 +++++- .../authentication/authentication.component.scss | 15 +++++++++++++-- .../authentication/authentication.component.ts | 10 +++++++++- .../portal/src/assets/company-logos/apple.svg | 1 + .../portal/src/assets/company-logos/facebook.svg | 1 + .../portal/src/assets/company-logos/github.svg | 1 + .../portal/src/assets/company-logos/google.svg | 1 + .../portal/src/assets/company-logos/microsoft.svg | 1 + .../portal/src/assets/company-logos/twitter.svg | 1 + 9 files changed, 33 insertions(+), 4 deletions(-) create mode 100644 packages/portal/src/assets/company-logos/apple.svg create mode 100644 packages/portal/src/assets/company-logos/facebook.svg create mode 100644 packages/portal/src/assets/company-logos/github.svg create mode 100644 packages/portal/src/assets/company-logos/google.svg create mode 100644 packages/portal/src/assets/company-logos/microsoft.svg create mode 100644 packages/portal/src/assets/company-logos/twitter.svg diff --git a/packages/portal/src/app/authentication/authentication.component.html b/packages/portal/src/app/authentication/authentication.component.html index bd659283..ee727276 100644 --- a/packages/portal/src/app/authentication/authentication.component.html +++ b/packages/portal/src/app/authentication/authentication.component.html @@ -6,7 +6,11 @@

Join with your favorite social media account

diff --git a/packages/portal/src/app/authentication/authentication.component.scss b/packages/portal/src/app/authentication/authentication.component.scss index cc7d9492..0afa2621 100644 --- a/packages/portal/src/app/authentication/authentication.component.scss +++ b/packages/portal/src/app/authentication/authentication.component.scss @@ -24,9 +24,20 @@ section { width: 100%; max-width: 400px; - button { + a { width: 100%; margin: 10px 0; + + .content { + display: flex; + height: 100%; + justify-content: center; + align-items: center; + + .text { + margin-left: 16px; + } + } } } img { @@ -46,7 +57,7 @@ section { } .btn__twitter { - background-color: #1da1f2; + background-color: #183343dd; color: #fff; } diff --git a/packages/portal/src/app/authentication/authentication.component.ts b/packages/portal/src/app/authentication/authentication.component.ts index 8bccc79a..6bc265c0 100644 --- a/packages/portal/src/app/authentication/authentication.component.ts +++ b/packages/portal/src/app/authentication/authentication.component.ts @@ -1,6 +1,8 @@ import { CommonModule } from "@angular/common"; import { Component, OnInit, inject } from "@angular/core"; import { MatButtonModule } from "@angular/material/button"; +import { DomSanitizer } from "@angular/platform-browser"; +import { MatIconRegistry, MatIconModule } from "@angular/material/icon"; import { MatCardModule } from "@angular/material/card"; import { MatFormFieldModule } from "@angular/material/form-field"; import { MatInputModule } from "@angular/material/input"; @@ -12,10 +14,16 @@ import { TextBlockComponent } from "../shared/text-block/text-block.component"; selector: "app-authentication", templateUrl: "./authentication.component.html", styleUrls: ["./authentication.component.scss"], - imports: [CommonModule, MatButtonModule, MatCardModule, MatFormFieldModule, MatInputModule, TextBlockComponent], + imports: [CommonModule, MatButtonModule, MatCardModule, MatFormFieldModule, MatInputModule, TextBlockComponent, MatIconModule], standalone: true, }) export class AuthenticationComponent implements OnInit { + public constructor(iconRegistry: MatIconRegistry, santizer: DomSanitizer) { + for (const provider of this.providers) { + iconRegistry.addSvgIcon(provider.id, santizer.bypassSecurityTrustResourceUrl(`../assets/company-logos/${provider.id}.svg`)); + } + } + redirectURL = "/home"; providers = [ diff --git a/packages/portal/src/assets/company-logos/apple.svg b/packages/portal/src/assets/company-logos/apple.svg new file mode 100644 index 00000000..8897cc7e --- /dev/null +++ b/packages/portal/src/assets/company-logos/apple.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/packages/portal/src/assets/company-logos/facebook.svg b/packages/portal/src/assets/company-logos/facebook.svg new file mode 100644 index 00000000..bd3031bb --- /dev/null +++ b/packages/portal/src/assets/company-logos/facebook.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/packages/portal/src/assets/company-logos/github.svg b/packages/portal/src/assets/company-logos/github.svg new file mode 100644 index 00000000..513caf5b --- /dev/null +++ b/packages/portal/src/assets/company-logos/github.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/packages/portal/src/assets/company-logos/google.svg b/packages/portal/src/assets/company-logos/google.svg new file mode 100644 index 00000000..3d587d1d --- /dev/null +++ b/packages/portal/src/assets/company-logos/google.svg @@ -0,0 +1 @@ + diff --git a/packages/portal/src/assets/company-logos/microsoft.svg b/packages/portal/src/assets/company-logos/microsoft.svg new file mode 100644 index 00000000..3c3fa5f8 --- /dev/null +++ b/packages/portal/src/assets/company-logos/microsoft.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/packages/portal/src/assets/company-logos/twitter.svg b/packages/portal/src/assets/company-logos/twitter.svg new file mode 100644 index 00000000..f9bf6f05 --- /dev/null +++ b/packages/portal/src/assets/company-logos/twitter.svg @@ -0,0 +1 @@ + \ No newline at end of file From 9af8ee84f6c30c85453f4ac320fca9320904b259 Mon Sep 17 00:00:00 2001 From: Surya V <102609082+Surya-V-28@users.noreply.github.com> Date: Wed, 30 Aug 2023 16:01:22 +0000 Subject: [PATCH 2/5] style: add-logos-register-page-292 --- packages/portal/package.json | 4 ++++ .../authentication.component.html | 4 +--- .../authentication/authentication.component.ts | 18 +++++++++--------- .../portal/src/assets/company-logos/apple.svg | 1 - .../src/assets/company-logos/facebook.svg | 1 - .../portal/src/assets/company-logos/github.svg | 1 - .../portal/src/assets/company-logos/google.svg | 1 - .../src/assets/company-logos/microsoft.svg | 1 - .../src/assets/company-logos/twitter.svg | 1 - packages/portal/src/index.html | 1 + 10 files changed, 15 insertions(+), 18 deletions(-) delete mode 100644 packages/portal/src/assets/company-logos/apple.svg delete mode 100644 packages/portal/src/assets/company-logos/facebook.svg delete mode 100644 packages/portal/src/assets/company-logos/github.svg delete mode 100644 packages/portal/src/assets/company-logos/google.svg delete mode 100644 packages/portal/src/assets/company-logos/microsoft.svg delete mode 100644 packages/portal/src/assets/company-logos/twitter.svg diff --git a/packages/portal/package.json b/packages/portal/package.json index e390817b..93a439c1 100644 --- a/packages/portal/package.json +++ b/packages/portal/package.json @@ -24,6 +24,10 @@ "@angular/platform-browser": "^16.0.5", "@angular/platform-browser-dynamic": "^16.0.5", "@angular/router": "^16.0.5", + "@fortawesome/angular-fontawesome": "^0.13.0", + "@fortawesome/fontawesome-svg-core": "^6.4.2", + "@fortawesome/free-brands-svg-icons": "^6.4.2", + "@fortawesome/free-solid-svg-icons": "^6.4.2", "apollo-angular": "^4.2.1", "graphql": "^16.6.0", "rxjs": "~7.5.0", diff --git a/packages/portal/src/app/authentication/authentication.component.html b/packages/portal/src/app/authentication/authentication.component.html index ee727276..862a1a64 100644 --- a/packages/portal/src/app/authentication/authentication.component.html +++ b/packages/portal/src/app/authentication/authentication.component.html @@ -2,12 +2,10 @@

Join with your favorite social media account

-