Skip to main content

Privacy Policy Acceptance

The Privacy Policy Acceptance component is a simple component that allows you to display a privacy policy and ask the user to accept it. This component is useful when you want to make sure that the user has read and accepted your privacy policy before they can proceed.

Users access this page only when they first log in to the application. After accepting the privacy policy, the user is redirected to the application's home page. If the privacy policy updates, the user should be redirected to the privacy policy page to accept the new terms.

Suggested route path

REMINDER

The example bellow follows angular 17 standards. To a better understanding of how to use or import them, please refer to the Angular documentation.

We suggest the following route path structure:

auth.routing.ts
import { BfmPrivacyPolicyAcceptanceComponent } from "@celerofinancas/ui-auth";

export const AUTH_ROUTES: Route[] = [
{
path: "privacy-policy",
component: BfmPrivacyPolicyAcceptanceComponent,
}
// ...
];

BfmPrivacyPolicyAcceptanceComponent

This section describes the BfmPrivacyPolicyAcceptanceComponent component.

Privacy page

Composition

The BfmPrivacyPolicyAcceptanceComponent component is composed of the following elements:

Usage

To use the BfmPrivacyPolicyAcceptanceComponent, you need to import it in your component:

privacy-policy.component.ts
import { BfmPrivacyPolicyAcceptanceComponent, BfmPrivacyPolicyComponent } from "@celerofinancas/ui-auth";

@Component({
standalone: true,
selector: 'bfm-privacy-policy-acceptance',
imports: [
BfmPrivacyPolicyAcceptanceComponent,
BfmPrivacyPolicyComponent
],
templateUrl: './privacy-policy.component.html',
})
export class PrivacyPolicyComponent {}

Then, you can use the BfmPrivacyPolicyAcceptanceComponent in your template:

privacy-policy.component.html
<bfm-privacy-policy-acceptance
[logo]="logo"
[signOutText]="signOutText"
[hasAccepted]="hasAccepted"
[showUseTerms]="showUseTerms"
[downloadTermDescription]="downloadTermDescription"
[acceptTermDescription]="acceptTermDescription"
[privacyPolicyImage]="privacyPolicyImage"
/>

Inputs

The BfmPrivacyPolicyAcceptanceComponent has the following inputs:

The image displayed in the page.

TypeDefault
stringassets/terms/privacy-policy.svg

signOutText

The text to be displayed on the accept button.

TypeDefault
stringSair

hasAccepted

Weather the user has already accepted the policy

TypeDefault
booleanfalse

showUseTerms

Controls whether the user terms are displayed.

TypeDefault
booleanfalse

downloadTermDescription

Text to show in the download button

TypeDefault
stringBaixar termo

acceptTermDescription

Text to show in the accept button.

TypeDefault
stringAceitar

privacyPolicyImage

Image to show in the privacy policy section.

TypeDefault
stringassets/terms/privacy-policy.svg