-
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.
Merge pull request #10 from alexjosesilva/developer
Developer
- Loading branch information
Showing
9 changed files
with
158 additions
and
15 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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,6 @@ | ||
<div class="modalsucesso"> | ||
<h2>Solicitação enviada com sucesso</h2> | ||
<p>Sua solicitação foi enviada com sucesso!</p> | ||
<button (click)="fechar()">Fechar</button> | ||
</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,37 @@ | ||
.modalsucesso { | ||
background-color: white; | ||
border: 1px solid #ccc; | ||
border-radius: 5px; | ||
padding: 20px; | ||
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); | ||
} | ||
|
||
h2 { | ||
color: #333; | ||
} | ||
|
||
p { | ||
color: #666; | ||
} | ||
|
||
button { | ||
text-align: left; | ||
padding: 10px 20px; | ||
margin-right: 10px; | ||
border: 1px solid #000; | ||
border-radius: 5px; | ||
cursor: pointer; | ||
font-size: 1rem; | ||
color: #000; | ||
background-color: transparent; | ||
transition: background-color 0.3s; | ||
|
||
&:last-child { | ||
margin-right: 0; | ||
} | ||
|
||
&:hover { | ||
background-color: #8B4513; /* Marron leve */ | ||
} | ||
} | ||
|
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,23 @@ | ||
import { ComponentFixture, TestBed } from '@angular/core/testing'; | ||
|
||
import { SucessoModalComponent } from './sucesso-modal.component'; | ||
|
||
describe('SucessoModalComponent', () => { | ||
let component: SucessoModalComponent; | ||
let fixture: ComponentFixture<SucessoModalComponent>; | ||
|
||
beforeEach(async () => { | ||
await TestBed.configureTestingModule({ | ||
declarations: [ SucessoModalComponent ] | ||
}) | ||
.compileComponents(); | ||
|
||
fixture = TestBed.createComponent(SucessoModalComponent); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
}); | ||
|
||
it('should create', () => { | ||
expect(component).toBeTruthy(); | ||
}); | ||
}); |
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,20 @@ | ||
import { Component, EventEmitter, Output } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'app-sucesso-modal', | ||
templateUrl: './sucesso-modal.component.html', | ||
styleUrls: ['./sucesso-modal.component.scss'] | ||
}) | ||
export class SucessoModalComponent { | ||
|
||
@Output() fecharModal = new EventEmitter<void>(); | ||
mensagem: string = ''; | ||
|
||
constructor() { } | ||
|
||
fechar() { | ||
console.log("closeModal3"); | ||
this.fecharModal.emit(); | ||
} | ||
|
||
} |