This repository has been archived by the owner on May 27, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Move existing header code into own component. * Change location of logo sources to assets/logos. * Make background of header white to avoid render issues for poor mooc.house logo. * Add visual cues for header * Underline the currently selected data source(s). * Add variables for piping selected data later. See #4 and #5
- Loading branch information
Florian
committed
Jul 2, 2017
1 parent
3f69633
commit e2aa79b
Showing
11 changed files
with
79 additions
and
5 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,11 @@ | ||
img { | ||
margin-right: 3rem; | ||
height: 100px; | ||
cursor: pointer; | ||
} | ||
.section { | ||
background-color: white; | ||
} | ||
.selected { | ||
border-bottom: 1rem solid #67DE91; | ||
} |
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,18 @@ | ||
<div class="section center-align"> | ||
<!-- DISCLAIMER --> | ||
<!-- This code is super hacky and ugly, | ||
and I really wish that we find something | ||
prettier and more sophisticated. --> | ||
<img [class.selected]="openhpi" | ||
(click)="openhpi = !openhpi" | ||
src="../assets/logos/OpenHPI-logo.png" /> | ||
<img [class.selected]="opensap" | ||
(click)="opensap = !opensap" | ||
src="../assets/logos/OpenSAP-logo.png" /> | ||
<img [class.selected]="moochouse" | ||
(click)="moochouse = !moochouse" | ||
src="../assets/logos/mooc-house-logo.png" /> | ||
<img [class.selected]="openwho" | ||
(click)="openwho = !openwho" | ||
src="../assets/logos/OpenWHO-logo.png" /> | ||
</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,25 @@ | ||
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; | ||
|
||
import { HeaderComponent } from './header.component'; | ||
|
||
describe('HeaderComponent', () => { | ||
let component: HeaderComponent; | ||
let fixture: ComponentFixture<HeaderComponent>; | ||
|
||
beforeEach(async(() => { | ||
TestBed.configureTestingModule({ | ||
declarations: [ HeaderComponent ] | ||
}) | ||
.compileComponents(); | ||
})); | ||
|
||
beforeEach(() => { | ||
fixture = TestBed.createComponent(HeaderComponent); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
}); | ||
|
||
it('should be created', () => { | ||
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,21 @@ | ||
import { Component } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'jenz-header', | ||
templateUrl: './header.component.html', | ||
styleUrls: ['./header.component.css'] | ||
}) | ||
export class HeaderComponent { | ||
openhpi: boolean; | ||
opensap: boolean; | ||
moochouse: boolean; | ||
openwho: boolean; | ||
|
||
constructor() { | ||
this.openhpi = true; | ||
this.opensap = true; | ||
this.moochouse = false; | ||
this.openwho = false; | ||
} | ||
|
||
} |
Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.