-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Changed the no-content component to look like the Figma design - Fixed a bug where loading the gene overview page with an invalid gene id would lead to an error
- Loading branch information
Showing
10 changed files
with
101 additions
and
29 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
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="row no-content"> | ||
<div class="col-md-12 col-sm-12 col-12"> | ||
<h1 class="no-content-heading">We're sorry!</h1> | ||
<h1 class="no-content-message">Page not found.</h1> | ||
</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,27 @@ | ||
@import "../../../assets/css/helpers/variables"; | ||
@import "../../../assets/css/helpers/mixins"; | ||
|
||
.no-content { | ||
// Navbar minus footer minus body bottom margin for footer | ||
height: calc(100vh - #{$navbar-height} - #{$footer-height}); | ||
|
||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
|
||
background-image: url('/assets/img/no-content.svg'); | ||
background-size: cover !important; | ||
|
||
h1 { | ||
text-align: center; | ||
color: #FFFFFF; | ||
} | ||
|
||
.no-content-heading { | ||
font-size: $font-size-xxx-large; | ||
} | ||
|
||
.no-content-message { | ||
font-size: $font-size-x-large; | ||
} | ||
} |
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,26 @@ | ||
import { NO_ERRORS_SCHEMA } from '@angular/core'; | ||
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; | ||
|
||
import { NoContentComponent } from './no-content.component'; | ||
|
||
describe('Component: NoContent', () => { | ||
let component: NoContentComponent; | ||
let fixture: ComponentFixture<NoContentComponent>; | ||
|
||
beforeEach(async(() => { | ||
TestBed.configureTestingModule({ | ||
declarations: [ | ||
NoContentComponent | ||
], | ||
schemas: [NO_ERRORS_SCHEMA] | ||
}) | ||
.compileComponents(); | ||
|
||
fixture = TestBed.createComponent(NoContentComponent); | ||
component = fixture.componentInstance; | ||
})); | ||
|
||
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
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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