-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add modal alert on web about update income tax
- Loading branch information
Showing
5 changed files
with
66 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
<app-modal></app-modal> | ||
<app-header></app-header> | ||
<router-outlet></router-outlet> | ||
<app-footer></app-footer> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
.modal { | ||
background: rgba(0, 0, 0, .5) | ||
} | ||
|
||
.modal-title { | ||
color: var(--bs-primary); | ||
text-align: center; | ||
font-weight: bold; | ||
} | ||
|
||
.modal-body { | ||
text-align: justify; | ||
} | ||
|
||
.btn-primary { | ||
background-color: var(--bs-primary); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<button type="button" (click)="openModal()" style="display:none"></button> | ||
|
||
<div class="modal" tabindex="-1" role="dialog" [ngStyle]="{'display':display}"> | ||
<div class="modal-dialog modal-dialog-centered" role="document"> | ||
<div class="modal-content"> | ||
<h3 class="modal-title mt-3">AVISO</h3> | ||
<div class="modal-body"> | ||
<p>Portal do Trabalhador está com os valores de base dos cálculos atualizados com a | ||
Medida Provisória Nº 1171, publicada na data de 30/04/2023, relacionada a nova | ||
tabela progressiva do Imposto de Renda.</p> | ||
</div> | ||
<div class="modal-footer"> | ||
<button type="button" class="btn btn-primary" (click)="onCloseHandled()">Fechar</button> | ||
</div> | ||
</div> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import { Component, OnInit } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'app-modal', | ||
templateUrl: './modal.component.html', | ||
styleUrls: ['./modal.component.css'] | ||
}) | ||
export class ModalComponent implements OnInit { | ||
|
||
display = "none" | ||
|
||
constructor() { } | ||
|
||
ngOnInit(): void { | ||
setTimeout(() => { | ||
this.openModal() | ||
}, 500) | ||
} | ||
|
||
openModal() { | ||
this.display = "block"; | ||
} | ||
|
||
onCloseHandled() { | ||
this.display = "none"; | ||
} | ||
|
||
} |
3733f1f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
brazilian-worker – ./
brazilian-worker-heytorvas.vercel.app
brazilian-worker-git-main-heytorvas.vercel.app
brazilian-worker.vercel.app
ctps.heytor.dev