[frontend] Add heading banner
This commit is contained in:
parent
acc6e33164
commit
9d02c32b5a
|
@ -1,15 +1,13 @@
|
||||||
|
<app-heading-one
|
||||||
|
*ngIf="hood$ | async as hood"
|
||||||
|
[title]="hood.name + ' (Hood)'"
|
||||||
|
></app-heading-one>
|
||||||
<div class="back">
|
<div class="back">
|
||||||
<a mat-button [routerLink]="['/dashboard']"
|
<a mat-button [routerLink]="['/dashboard']"
|
||||||
><mat-icon>keyboard_backspace</mat-icon> back</a
|
><mat-icon>keyboard_backspace</mat-icon> back</a
|
||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
<div class="dashboard">
|
<div class="dashboard">
|
||||||
<mat-card>
|
|
||||||
<mat-card-title *ngIf="hood$ | async as hood">
|
|
||||||
Your Hood - <strong>{{ hood.name }}</strong>
|
|
||||||
</mat-card-title>
|
|
||||||
</mat-card>
|
|
||||||
|
|
||||||
<mat-tab-group>
|
<mat-tab-group>
|
||||||
<mat-tab label="Filters">
|
<mat-tab label="Filters">
|
||||||
<app-hoodsettings [hoodId]="hoodId"> </app-hoodsettings>
|
<app-hoodsettings [hoodId]="hoodId"> </app-hoodsettings>
|
||||||
|
|
|
@ -3,9 +3,22 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.dashboard {
|
.dashboard {
|
||||||
margin: 10px;
|
margin-top: 0px;
|
||||||
|
margin-left: 10%;
|
||||||
|
margin-right: 10%;
|
||||||
|
margin-bottom: 2%;
|
||||||
|
@media (max-width: 600px) {
|
||||||
|
margin-left: 5%;
|
||||||
|
margin-right: 5%;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.back {
|
.back {
|
||||||
color: grey;
|
color: grey;
|
||||||
|
margin-top: 0px;
|
||||||
|
margin-bottom: 0px;
|
||||||
|
margin-left: 10px;
|
||||||
|
@media (max-width: 600px) {
|
||||||
|
margin-left: 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,8 +11,9 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
h1 {
|
h1 {
|
||||||
font-size: 2.3125rem;
|
|
||||||
line-height: 3rem;
|
line-height: 3rem;
|
||||||
|
font-size: 46px;
|
||||||
|
font-weight: 500;
|
||||||
}
|
}
|
||||||
|
|
||||||
p {
|
p {
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
<p>homepage works!</p>
|
<app-heading-one [title]="title"></app-heading-one>
|
||||||
|
|
|
@ -3,13 +3,12 @@ import { Component, OnInit } from '@angular/core';
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-homepage',
|
selector: 'app-homepage',
|
||||||
templateUrl: './homepage.component.html',
|
templateUrl: './homepage.component.html',
|
||||||
styleUrls: ['./homepage.component.scss']
|
styleUrls: ['./homepage.component.scss'],
|
||||||
})
|
})
|
||||||
export class HomepageComponent implements OnInit {
|
export class HomepageComponent implements OnInit {
|
||||||
|
title = 'Kibicara';
|
||||||
|
|
||||||
constructor() {}
|
constructor() {}
|
||||||
|
|
||||||
ngOnInit(): void {
|
ngOnInit(): void {}
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
|
<app-heading-one [title]="hood.name"></app-heading-one>
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<h1 class="heading">Hood - {{ hood.name }}</h1>
|
<div class="markdown">
|
||||||
<div>
|
|
||||||
<markdown class="markdown" [data]="hood.landingpage"></markdown>
|
<markdown class="markdown" [data]="hood.landingpage"></markdown>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,7 @@
|
||||||
.container {
|
.container {
|
||||||
display: grid;
|
display: grid;
|
||||||
margin-left: 15%;
|
margin-left: 10%;
|
||||||
margin-right: 15%;
|
margin-right: 10%;
|
||||||
margin-top: 5%;
|
|
||||||
margin-bottom: 5%;
|
margin-bottom: 5%;
|
||||||
gap: 30px;
|
gap: 30px;
|
||||||
}
|
}
|
||||||
|
@ -13,5 +12,5 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.markdown {
|
.markdown {
|
||||||
margin-bottom: 50px;
|
margin-top: 20px;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
<div class="banner">
|
<!-- <div class="banner">
|
||||||
<h1>Discover hoods</h1>
|
<h1>Discover hoods</h1>
|
||||||
</div>
|
</div> -->
|
||||||
|
<app-heading-one [title]="title"></app-heading-one>
|
||||||
<div class="page">
|
<div class="page">
|
||||||
<mat-form-field class="searchbar">
|
<mat-form-field class="searchbar">
|
||||||
<mat-label> <mat-icon>search</mat-icon> Search for hoods</mat-label>
|
<mat-label> <mat-icon>search</mat-icon> Search for hoods</mat-label>
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
.page {
|
.page {
|
||||||
padding-left: 10%;
|
padding-left: 10%;
|
||||||
padding-right: 10%;
|
padding-right: 10%;
|
||||||
padding-bottom: 10%;
|
margin-bottom: 5%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.list {
|
.list {
|
||||||
|
|
|
@ -9,6 +9,7 @@ import { HoodsService } from '../core/api/api/hoods.service';
|
||||||
export class HoodspageComponent implements OnInit {
|
export class HoodspageComponent implements OnInit {
|
||||||
hoods$;
|
hoods$;
|
||||||
searchText: string;
|
searchText: string;
|
||||||
|
title = 'Discover hoods';
|
||||||
|
|
||||||
constructor(private readonly hoodsService: HoodsService) {}
|
constructor(private readonly hoodsService: HoodsService) {}
|
||||||
|
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
<p>organizerspage works!</p>
|
<app-heading-one [title]="title"></app-heading-one>
|
||||||
|
|
|
@ -3,13 +3,12 @@ import { Component, OnInit } from '@angular/core';
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-organizerspage',
|
selector: 'app-organizerspage',
|
||||||
templateUrl: './organizerspage.component.html',
|
templateUrl: './organizerspage.component.html',
|
||||||
styleUrls: ['./organizerspage.component.scss']
|
styleUrls: ['./organizerspage.component.scss'],
|
||||||
})
|
})
|
||||||
export class OrganizerspageComponent implements OnInit {
|
export class OrganizerspageComponent implements OnInit {
|
||||||
|
title = 'Hood administration';
|
||||||
|
|
||||||
constructor() {}
|
constructor() {}
|
||||||
|
|
||||||
ngOnInit(): void {
|
ngOnInit(): void {}
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
<h1 class="h1">{{ title }}</h1>
|
|
@ -0,0 +1,14 @@
|
||||||
|
.h1 {
|
||||||
|
background-color: #46277a;
|
||||||
|
height: 10%;
|
||||||
|
min-height: 70px;
|
||||||
|
padding-left: 10%;
|
||||||
|
padding-top: 5%;
|
||||||
|
color: white;
|
||||||
|
font-size: 46px;
|
||||||
|
font-weight: 500;
|
||||||
|
@media (max-width: 600px) {
|
||||||
|
padding-top: 10%;
|
||||||
|
font-size: 30px;
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,14 @@
|
||||||
|
import { Component, OnInit, Input } from '@angular/core';
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'app-heading-one',
|
||||||
|
templateUrl: './heading-one.component.html',
|
||||||
|
styleUrls: ['./heading-one.component.scss'],
|
||||||
|
})
|
||||||
|
export class HeadingOneComponent implements OnInit {
|
||||||
|
@Input() title;
|
||||||
|
|
||||||
|
constructor() {}
|
||||||
|
|
||||||
|
ngOnInit(): void {}
|
||||||
|
}
|
|
@ -8,6 +8,7 @@ import { CommonModule } from '@angular/common';
|
||||||
import { Ng2SearchPipeModule } from 'ng2-search-filter';
|
import { Ng2SearchPipeModule } from 'ng2-search-filter';
|
||||||
import { YesNoDialogComponent } from './yes-no-dialog/yes-no-dialog.component';
|
import { YesNoDialogComponent } from './yes-no-dialog/yes-no-dialog.component';
|
||||||
import { OverlayComponent } from './overlay/overlay.component';
|
import { OverlayComponent } from './overlay/overlay.component';
|
||||||
|
import { HeadingOneComponent } from './heading-one/heading-one.component';
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
declarations: [
|
declarations: [
|
||||||
|
@ -15,6 +16,7 @@ import { OverlayComponent } from './overlay/overlay.component';
|
||||||
NotFoundComponent,
|
NotFoundComponent,
|
||||||
YesNoDialogComponent,
|
YesNoDialogComponent,
|
||||||
OverlayComponent,
|
OverlayComponent,
|
||||||
|
HeadingOneComponent,
|
||||||
],
|
],
|
||||||
imports: [
|
imports: [
|
||||||
MaterialModule,
|
MaterialModule,
|
||||||
|
@ -27,6 +29,7 @@ import { OverlayComponent } from './overlay/overlay.component';
|
||||||
exports: [
|
exports: [
|
||||||
ToolbarComponent,
|
ToolbarComponent,
|
||||||
NotFoundComponent,
|
NotFoundComponent,
|
||||||
|
HeadingOneComponent,
|
||||||
MaterialModule,
|
MaterialModule,
|
||||||
ReactiveFormsModule,
|
ReactiveFormsModule,
|
||||||
FormsModule,
|
FormsModule,
|
||||||
|
|
Loading…
Reference in a new issue