add show
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
<nav class="head">
|
||||
<div class="links">
|
||||
<a href="#" routerLink="/songs" routerLinkActive="active">Lieder</a>
|
||||
<a href="#" routerLink="/show" routerLinkActive="active">Veranstaltungen</a>
|
||||
<a href="#" routerLink="/user" routerLinkActive="active">Benutzer</a>
|
||||
</div>
|
||||
<div class="actions">
|
||||
|
||||
@@ -9,6 +9,7 @@ nav {
|
||||
right: 0;
|
||||
height: 60px;
|
||||
background: @navigation-background;
|
||||
z-index: 1;
|
||||
.card-3;
|
||||
|
||||
display: flex;
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
.row {
|
||||
display: flex;
|
||||
flex-direction: row-reverse;
|
||||
flex-wrap: wrap;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
@@ -6,11 +6,18 @@
|
||||
border-radius: 8px;
|
||||
background: #fffe;
|
||||
overflow: hidden;
|
||||
width: 50vw;
|
||||
width: 800px;
|
||||
@media screen and (max-width: 860px) {
|
||||
width: 100vw;
|
||||
border-radius: 0px;
|
||||
background: #fffa;
|
||||
}
|
||||
|
||||
&.padding {
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.heading {
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
<div class="header">
|
||||
<button mat-icon-button>
|
||||
<fa-icon [icon]="faFilter"></fa-icon>
|
||||
</button>
|
||||
<button mat-icon-button routerLink="new">
|
||||
<fa-icon [icon]="faNew"></fa-icon>
|
||||
</button>
|
||||
</div>
|
||||
@@ -0,0 +1,11 @@
|
||||
|
||||
.header {
|
||||
position: relative;
|
||||
height: 34px;
|
||||
margin: 20px 20px -20px 20px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: flex-end;
|
||||
color: #A6C4F5;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
import {async, ComponentFixture, TestBed} from '@angular/core/testing';
|
||||
|
||||
import {ListHeaderComponent} from './list-header.component';
|
||||
|
||||
describe('ListHeaderComponent', () => {
|
||||
let component: ListHeaderComponent;
|
||||
let fixture: ComponentFixture<ListHeaderComponent>;
|
||||
|
||||
beforeEach(async(() => {
|
||||
TestBed.configureTestingModule({
|
||||
declarations: [ListHeaderComponent]
|
||||
})
|
||||
.compileComponents();
|
||||
}));
|
||||
|
||||
beforeEach(() => {
|
||||
fixture = TestBed.createComponent(ListHeaderComponent);
|
||||
component = fixture.componentInstance;
|
||||
fixture.detectChanges();
|
||||
});
|
||||
|
||||
it('should create', () => {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
||||
23
src/app/widget-modules/list-header/list-header.component.ts
Normal file
23
src/app/widget-modules/list-header/list-header.component.ts
Normal file
@@ -0,0 +1,23 @@
|
||||
import {Component, OnInit} from '@angular/core';
|
||||
import {faFilter} from '@fortawesome/free-solid-svg-icons/faFilter';
|
||||
import {faBars} from '@fortawesome/free-solid-svg-icons/faBars';
|
||||
import {faPlus} from '@fortawesome/free-solid-svg-icons/faPlus';
|
||||
|
||||
@Component({
|
||||
selector: 'app-list-header',
|
||||
templateUrl: './list-header.component.html',
|
||||
styleUrls: ['./list-header.component.less']
|
||||
})
|
||||
export class ListHeaderComponent implements OnInit {
|
||||
|
||||
public faNew = faPlus;
|
||||
public faFilter = faFilter;
|
||||
public faMenu = faBars;
|
||||
|
||||
constructor() {
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
}
|
||||
|
||||
}
|
||||
21
src/app/widget-modules/list-header/list-header.module.ts
Normal file
21
src/app/widget-modules/list-header/list-header.module.ts
Normal file
@@ -0,0 +1,21 @@
|
||||
import {NgModule} from '@angular/core';
|
||||
import {CommonModule} from '@angular/common';
|
||||
import {ListHeaderComponent} from './list-header.component';
|
||||
import {FontAwesomeModule} from '@fortawesome/angular-fontawesome';
|
||||
import {MatButtonModule} from '@angular/material/button';
|
||||
import {RouterModule} from '@angular/router';
|
||||
|
||||
@NgModule({
|
||||
declarations: [ListHeaderComponent],
|
||||
exports: [
|
||||
ListHeaderComponent
|
||||
],
|
||||
imports: [
|
||||
CommonModule,
|
||||
FontAwesomeModule,
|
||||
MatButtonModule,
|
||||
RouterModule
|
||||
]
|
||||
})
|
||||
export class ListHeaderModule {
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
import {NgModule} from '@angular/core';
|
||||
import {CommonModule} from '@angular/common';
|
||||
import {ShowTypePipe} from './show-type.pipe';
|
||||
|
||||
|
||||
@NgModule({
|
||||
declarations: [ShowTypePipe],
|
||||
exports: [
|
||||
ShowTypePipe
|
||||
],
|
||||
imports: [
|
||||
CommonModule
|
||||
]
|
||||
})
|
||||
export class ShowTypeTranslaterModule {
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
import {ShowTypePipe} from './show-type.pipe';
|
||||
|
||||
describe('ShowTypePipe', () => {
|
||||
it('create an instance', () => {
|
||||
const pipe = new ShowTypePipe();
|
||||
expect(pipe).toBeTruthy();
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,22 @@
|
||||
import {Pipe, PipeTransform} from '@angular/core';
|
||||
|
||||
@Pipe({
|
||||
name: 'showType'
|
||||
})
|
||||
export class ShowTypePipe implements PipeTransform {
|
||||
|
||||
transform(type: string): string {
|
||||
switch (type) {
|
||||
case 'worship':
|
||||
return 'Gottesdienst Anbetung';
|
||||
case 'praise':
|
||||
return 'Gottesdienst Lobpreis';
|
||||
case 'homegroup':
|
||||
return 'Hauskreis';
|
||||
case 'prayergroup':
|
||||
return 'Gebetskreis';
|
||||
}
|
||||
;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user