located in Cuba, Iran, North Korea, Syria, the Crimea Region of Ukraine, or the Russian-controlled areas of the Donetsk or Luhansk regions of Ukraine;
-
-
owned or controlled by, acting for or on behalf of, or an individual or entity that has in the past acted for or on behalf of the Government of Cuba,
- Iran, North Korea, Syria, or Venezuela; or
-
listed as a blocked person by the U.S. Department of the Treasury’s
- Office of Foreign Assets Control (OFAC)
- or directly or indirectly owned 50 percent or more by such a listed person
-
located in Cuba, Iran, North Korea, Syria, the Crimea Region of Ukraine, or the Russian-controlled areas of the Donetsk or Luhansk regions of Ukraine;
+
+
owned or controlled by, acting for or on behalf of, or an individual or entity that has in the past acted for or on behalf of the Government of Cuba,
+ Iran, North Korea, Syria, or Venezuela; or
+
listed as a blocked person by the U.S. Department of the Treasury’s
+ Office of Foreign Assets Control (OFAC)
+ or directly or indirectly owned 50 percent or more by such a listed person
+
+
+
+
\ No newline at end of file
diff --git a/src/app/shared/components/consent/consent.component.scss b/src/app/shared/components/consent/consent.component.scss
new file mode 100644
index 00000000..bee5c085
--- /dev/null
+++ b/src/app/shared/components/consent/consent.component.scss
@@ -0,0 +1,13 @@
+/* Copyright The Linux Foundation and each contributor to CommunityBridge.
+ SPDX-License-Identifier: MIT */
+
+.consent-title{
+ font-size: 24px;
+ font-weight: bold;
+ margin-bottom: 5px;
+ text-align: center;
+ }
+ /* Some custom styles to beautify this example */
+ .wrapper{
+ font-size: 16px;
+ }
diff --git a/src/app/shared/components/consent/consent.component.spec.ts b/src/app/shared/components/consent/consent.component.spec.ts
new file mode 100644
index 00000000..92d0e3cf
--- /dev/null
+++ b/src/app/shared/components/consent/consent.component.spec.ts
@@ -0,0 +1,29 @@
+// Copyright The Linux Foundation and each contributor to CommunityBridge.
+// SPDX-License-Identifier: MIT
+
+
+import { ComponentFixture, TestBed } from '@angular/core/testing';
+
+import { ConsentComponent } from './consent.component';
+
+describe('ConsentComponent', () => {
+ let component: ConsentComponent;
+ let fixture: ComponentFixture;
+
+ beforeEach(async () => {
+ await TestBed.configureTestingModule({
+ declarations: [ ConsentComponent ]
+ })
+ .compileComponents();
+ });
+
+ beforeEach(() => {
+ fixture = TestBed.createComponent(ConsentComponent);
+ component = fixture.componentInstance;
+ fixture.detectChanges();
+ });
+
+ it('should create', () => {
+ expect(component).toBeTruthy();
+ });
+});
diff --git a/src/app/shared/components/consent/consent.component.ts b/src/app/shared/components/consent/consent.component.ts
new file mode 100644
index 00000000..17eadc8c
--- /dev/null
+++ b/src/app/shared/components/consent/consent.component.ts
@@ -0,0 +1,25 @@
+// Copyright The Linux Foundation and each contributor to CommunityBridge.
+// SPDX-License-Identifier: MIT
+
+
+import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';
+
+@Component({
+ selector: 'app-consent',
+ templateUrl: './consent.component.html',
+ styleUrls: ['./consent.component.scss']
+})
+export class ConsentComponent implements OnInit {
+
+ @Input() hasTermAccepted = false;
+ @Output() termAccepted: EventEmitter = new EventEmitter();
+ constructor() { }
+
+ ngOnInit(): void {
+ }
+
+ onClickTermAccepted(event:boolean) {
+ this.hasTermAccepted = event
+ this.termAccepted.emit(event)
+ }
+}
diff --git a/src/app/shared/shared.module.ts b/src/app/shared/shared.module.ts
index 4ff2a4c7..ade16a1c 100644
--- a/src/app/shared/shared.module.ts
+++ b/src/app/shared/shared.module.ts
@@ -18,6 +18,7 @@ import { InterceptorService } from './services/interceptor.service';
import { AuthComponent } from './components/auth/auth.component';
import { FooterComponent } from './components/footer/footer.component';
import { CommonModule } from '@angular/common';
+import { ConsentComponent } from './components/consent/consent.component';
@NgModule({
declarations: [
@@ -31,7 +32,8 @@ import { CommonModule } from '@angular/common';
TrimCharactersPipe,
CheckboxComponent,
AuthComponent,
- FooterComponent
+ FooterComponent,
+ ConsentComponent
],
imports: [
CommonModule
@@ -46,7 +48,8 @@ import { CommonModule } from '@angular/common';
ProjectTitleComponent,
TrimCharactersPipe,
CheckboxComponent,
- FooterComponent
+ FooterComponent,
+ ConsentComponent
],
providers: [StorageService, AuthService, LfxHeaderService, InterceptorService]
})