-
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.
- Loading branch information
1 parent
115f0fd
commit 3042853
Showing
7 changed files
with
91 additions
and
2 deletions.
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
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,33 @@ | ||
h1 { | ||
font-size: 3em; | ||
margin-bottom: 20px; | ||
font-weight: var(--fw-bold); | ||
font-family: var(--ff-primary); | ||
color: var(--clr-accent); | ||
text-shadow: 2px 2px var(--clr-dark); | ||
} | ||
|
||
h2 { | ||
margin-top: 20px; | ||
font-size: 1.3em; | ||
font-weight: var(--fw-reg); | ||
font-family: var(--ff-primary); | ||
color: var(--clr-dark); | ||
} | ||
|
||
.noresults { | ||
display: flex; | ||
flex-direction: column; | ||
text-align: center; | ||
} | ||
|
||
a { | ||
text-decoration: none; | ||
} | ||
|
||
.img-not-found { | ||
width: 500px; | ||
align-self: center; | ||
margin-top: 100px; | ||
cursor: pointer; | ||
} |
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,10 @@ | ||
<a (click)="returnList()"> | ||
<div class="noresults"> | ||
<img | ||
src="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQRLmDDGhuBgwDmBdnqVqGZ--vODJf3fkw_MIqhYxm4mGT1tzM&s" | ||
alt="Not Found Image" | ||
class="img-not-found" | ||
/> | ||
<h2>A pesquisa não encontrou resultados!</h2> | ||
</div> | ||
</a> |
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,25 @@ | ||
import { ComponentFixture, TestBed } from '@angular/core/testing'; | ||
|
||
import { ErrorComponent } from './error.component'; | ||
|
||
describe('ErrorComponent', () => { | ||
let component: ErrorComponent; | ||
let fixture: ComponentFixture<ErrorComponent>; | ||
|
||
beforeEach(async () => { | ||
await TestBed.configureTestingModule({ | ||
declarations: [ ErrorComponent ] | ||
}) | ||
.compileComponents(); | ||
}); | ||
|
||
beforeEach(() => { | ||
fixture = TestBed.createComponent(ErrorComponent); | ||
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,19 @@ | ||
import { Component, OnInit } from '@angular/core'; | ||
import { Router } from '@angular/router'; | ||
import { DatastoreService } from '../services/datastore.service'; | ||
|
||
@Component({ | ||
selector: 'app-error', | ||
templateUrl: './error.component.html', | ||
styleUrls: ['./error.component.css'], | ||
}) | ||
export class ErrorComponent implements OnInit { | ||
constructor(private dataStore: DatastoreService, private router: Router) {} | ||
|
||
ngOnInit(): void {} | ||
|
||
returnList() { | ||
this.dataStore.getImages(1); | ||
this.router.navigate(['']); | ||
} | ||
} |
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