Skip to content

Open Source Wealth Management Software. Angular + NestJS + Prisma + Nx + TypeScript 🤍

Feature/hide footer on mobile (#113)

Thomas9851cce382da
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 57bc34b794..febb5857a5 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
+## Unreleased
+
+### Changed
+
+- Hid footer on mobile (except on landing page)
+
## 1.6.0 - 22.05.2021
### Added
diff --git a/apps/client/src/app/app.component.html b/apps/client/src/app/app.component.html
index c0c5d9b532..75c8d49c40 100644
--- a/apps/client/src/app/app.component.html
+++ b/apps/client/src/app/app.component.html
@@ -25,7 +25,10 @@
<router-outlet></router-outlet>
</main>
-<footer class="footer d-flex justify-content-center position-absolute w-100">
+<footer
+ *ngIf="currentRoute === 'start' || deviceType !== 'mobile'"
+ class="footer d-flex justify-content-center position-absolute w-100"
+>
<div class="container text-center">
<div>
© {{ currentYear }} <a href="https://ghostfol.io">Ghostfolio</a>
diff --git a/apps/client/src/app/app.component.ts b/apps/client/src/app/app.component.ts
index 6e27af9be5..039277d177 100644
--- a/apps/client/src/app/app.component.ts
+++ b/apps/client/src/app/app.component.ts
@@ -10,6 +10,7 @@ import { primaryColorHex, secondaryColorHex } from '@ghostfolio/common/config';
import { InfoItem, User } from '@ghostfolio/common/interfaces';
import { hasPermission, permissions } from '@ghostfolio/common/permissions';
import { MaterialCssVarsService } from 'angular-material-css-vars';
+import { DeviceDetectorService } from 'ngx-device-detector';
import { Subject } from 'rxjs';
import { filter, takeUntil } from 'rxjs/operators';
@@ -27,6 +28,7 @@ export class AppComponent implements OnDestroy, OnInit {
public canCreateAccount: boolean;
public currentRoute: string;
public currentYear = new Date().getFullYear();
+ public deviceType: string;
public info: InfoItem;
public isLoggedIn = false;
public user: User;
@@ -37,6 +39,7 @@ export class AppComponent implements OnDestroy, OnInit {
public constructor(
private cd: ChangeDetectorRef,
private dataService: DataService,
+ private deviceService: DeviceDetectorService,
private materialCssVarsService: MaterialCssVarsService,
private router: Router,
private tokenStorageService: TokenStorageService
@@ -46,6 +49,8 @@ export class AppComponent implements OnDestroy, OnInit {
}
public ngOnInit() {
+ this.deviceType = this.deviceService.getDeviceInfo().deviceType;
+
this.dataService.fetchInfo().subscribe((info) => {
this.info = info;
});
diff --git a/apps/client/src/app/pages/about/about-page.html b/apps/client/src/app/pages/about/about-page.html
index ce50b05306..bbfe62d167 100644
--- a/apps/client/src/app/pages/about/about-page.html
+++ b/apps/client/src/app/pages/about/about-page.html
@@ -5,15 +5,14 @@
<mat-card class="mb-3">
<mat-card-content>
<p>
- <strong>Ghostfolio</strong> ({{ version }}) is open source software
- which empowers busy folks to have a sharp look of their financial
- assets and to make solid, data-driven investment decisions by
- evaluating automated static portfolio analysis rules. The project
- has been initiated by
+ <strong>Ghostfolio</strong> is open source software which empowers
+ busy folks to have a sharp look of their financial assets and to
+ make solid, data-driven investment decisions by evaluating automated
+ static portfolio analysis rules. The project has been initiated by
<a href="https://dotsilver.ch">Thomas Kaul</a>.
<ng-container *ngIf="lastPublish">
- This instance has been last published on {{ lastPublish
- }}.</ng-container
+ This instance is running Ghostfolio {{ version }} and has been
+ last published on {{ lastPublish }}.</ng-container
>
</p>
<p>