This commit is contained in:
Olu Amey
2020-09-12 04:14:02 -04:00
parent 150c2fe2d4
commit 5de3a31b73
10 changed files with 76 additions and 10 deletions
+20 -2
View File
@@ -1,9 +1,27 @@
import { Injectable } from '@angular/core';
import { Injectable, Injector } from '@angular/core';
import { HTTP } from '@ionic-native/http/ngx';
//import { HttpClient, HttpHeaders, HttpParams } from '@angular/common/http'
//import 'rxjs/add/operator/map'
//import { Observable, from } from 'rxjs'
/*
import { FloatSessionProvider } from '../float-session/float-session'
import { LocationTrackerProvider } from '../location-tracker/location-tracker'
import { FloatEventsService } from '../float-events/float-events';
import { CONFIG } from '../app-config'
*/
@Injectable({
providedIn: 'root'
})
export class BlackConnectService {
// data source - https://www.theblackfaces.com/feed/
constructor(
public http: HTTP
) {
constructor() { }
}
}
+10 -1
View File
@@ -4,7 +4,16 @@ import { PreloadAllModules, RouterModule, Routes } from '@angular/router';
const routes: Routes = [
{
path: '',
loadChildren: () => import('./tabs/tabs.module').then(m => m.TabsPageModule)
loadChildren: () => import('./home/home.module').then(m => m.HomePageModule)
},
{
path: 'home',
loadChildren: () => import('./home/home.module').then( m => m.HomePageModule)
}
,
{
path: 'member',
loadChildren: () => import('./home/home.module').then( m => m.HomePageModule)
}
];
@NgModule({
+5 -1
View File
@@ -1,3 +1,4 @@
import { BlackConnectService } from './api/black-connect.service';
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { RouteReuseStrategy } from '@angular/router';
@@ -9,6 +10,8 @@ import { StatusBar } from '@ionic-native/status-bar/ngx';
import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
@NgModule({
declarations: [AppComponent],
entryComponents: [],
@@ -16,8 +19,9 @@ import { AppComponent } from './app.component';
providers: [
StatusBar,
SplashScreen,
BlackConnectService,
{ provide: RouteReuseStrategy, useClass: IonicRouteStrategy }
],
bootstrap: [AppComponent]
})
export class AppModule {}
export class AppModule { }
+3 -3
View File
@@ -1,9 +1,9 @@
<ion-header>
<!--ion-header>
<ion-toolbar>
<ion-title>home</ion-title>
</ion-toolbar>
</ion-header>
</!--ion-header-->
<ion-content>
<ion-content class="home_style">
</ion-content>
+13
View File
@@ -0,0 +1,13 @@
.home_style{
display: flex;
flex-direction: column;
--padding-top: constant(safe-area-inset-top); //for iOS 11.2;
--padding-top: env(safe-area-inset-top); //for iOS 11.1
--padding-bottom: 40px;
--padding-start: 0;
--padding-end: 0;
--background: #ECECFF;
--background-image: url('/assets/imgs/black_home.png');
background-size: cover;
}
+1 -1
View File
@@ -1,7 +1,7 @@
<ion-header [translucent]="true">
<ion-toolbar>
<ion-title>
Tab 1
BlackFaces
</ion-title>
</ion-toolbar>
</ion-header>
+7
View File
@@ -1,4 +1,6 @@
import { Component } from '@angular/core';
import { BlackConnectService } from '../api/black-connect.service';
@Component({
selector: 'app-tab1',
@@ -9,4 +11,9 @@ export class Tab1Page {
constructor() {}
}