Skip to content
Snippets Groups Projects
Commit 1d41c4fb authored by Lukas Mauß's avatar Lukas Mauß
Browse files

Show header only above card if mobile

parent 6b22879d
No related merge requests found
<div fxLayout="column" fxLayoutAlign="center" fxLayoutGap="20px" fxFill>
<div fxLayout="row" fxLayoutAlign="center">
<div fxLayout="row" fxLayoutAlign="center" *ngIf="mobile === true">
<h1>
<span class="main-heading-secondary">{{ 'login-page.welcome' | translate }}</span>
<span class="main-heading-primary">ARSnova</span>
......
......@@ -7,9 +7,14 @@ import { Component, OnInit } from '@angular/core';
})
export class HomePageComponent implements OnInit {
mobile: boolean = true;
constructor() { }
ngOnInit() {
if (window.innerWidth > 500) {
this.mobile = false;
}
}
}
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment