Skip to content

Commit

Permalink
Merge pull request #435 from communitybridge/fix/text-change
Browse files Browse the repository at this point in the history
Added title and color change
  • Loading branch information
amolsontakke3576 authored Dec 12, 2024
2 parents 24a3d92 + 51dba95 commit 5b4ac69
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 3 deletions.
7 changes: 5 additions & 2 deletions src/app/app.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,18 @@
<app-alert></app-alert>
<div *ngIf="!showDashboard" class="wrapper vcenter-item">
<div class="box">
<div class="consent-title">Consent</div>

<app-checkbox [checked]="hasTermAccepted" text="I hereby certify that I am not, and/or the organization I am representing is not"
(checkboxEmitter)="onClickTermAccepted($event)" fontSize="16px" topMargin="5px" bold="true">
(checkboxEmitter)="onClickTermAccepted($event)" fontSize="16px" topMargin="5px" bold="true" [required]="true">
</app-checkbox>
<ul class="mt-2" style="width: 800px;">
<li>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;
</li>
<li>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</li>
<li>listed as a blocked person by the U.S. Department of the Treasury’s <a href="https://ofac.treasury.gov/sanctions-programs-and-country-information" target="_blank">Office of Foreign Assets Control (OFAC)</a>
<li>listed as a blocked person by the U.S. Department of the Treasury’s
<a style="color: #0099cc;" href="https://ofac.treasury.gov/sanctions-programs-and-country-information" target="_blank">Office of Foreign Assets Control (OFAC)</a>
or directly or indirectly owned 50 percent or more by such a listed person
</li>
</ul>
Expand Down
7 changes: 7 additions & 0 deletions src/app/app.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@
min-height: calc(100vh - 125px);
}

.consent-title{
font-size: 24px;
font-weight: bold;
margin-bottom: 20px;
text-align: center;
}

.vcenter-item{
display: flex;
align-items: center;
Expand Down
5 changes: 4 additions & 1 deletion src/app/shared/components/checkbox/checkbox.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@
SPDX-License-Identifier: MIT -->

<label class="container">
<span [ngStyle]="{'font-size': fontSize, 'font-weight': bold ? 'bold' : 'normal'}">{{text}}</span>
<span [ngStyle]="{'font-size': fontSize, 'font-weight': bold ? 'bold' : 'normal'}">
<span *ngIf="required" style="color: red;padding-right: 2px;">*</span>
{{text}}
</span>
<input type="checkbox" [checked]="checked" (click)="onCheckboxClick()">
<span class="checkmark" [ngStyle]="{'top': topMargin}"></span>
</label>
1 change: 1 addition & 0 deletions src/app/shared/components/checkbox/checkbox.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export class CheckboxComponent {
@Input() fontSize: string;
@Input() topMargin: string;
@Input() bold: boolean;
@Input() required: boolean;
@Output() checkboxEmitter: EventEmitter<any> = new EventEmitter<any>();

constructor() {}
Expand Down

0 comments on commit 5b4ac69

Please sign in to comment.