feat: news module

This commit is contained in:
Jovan Krunić
2021-01-13 18:21:14 +01:00
parent 3c079cd189
commit 22cd0af1bf
17 changed files with 320 additions and 4 deletions

View File

@@ -0,0 +1,25 @@
<ion-header>
<ion-toolbar>
<ion-buttons slot="start">
<ion-back-button></ion-back-button>
<ion-menu-button></ion-menu-button>
</ion-buttons>
<!--TODO: read this from the config (menu item title)-->
<ion-title>{{'news.title' | translate}}</ion-title>
</ion-toolbar>
</ion-header>
<ion-content fullscreen>
<ion-grid>
<ion-row *ngIf="!news">
<ion-col size="12" size-md="6" *ngFor="let skeleton of [1, 2, 3, 4, 5]">
<stapps-skeleton-news-item></stapps-skeleton-news-item>
</ion-col>
</ion-row>
<ion-row *ngIf="news">
<ion-col size="12" size-md="6" *ngFor="let item of news">
<stapps-news-item [item]="item"></stapps-news-item>
</ion-col>
</ion-row>
</ion-grid>
</ion-content>