Add integration of publication

This commit is contained in:
Tiago Kayaya
2020-12-10 11:22:06 +01:00
parent 21cb7d5e96
commit 8597d0a0b0
17 changed files with 274 additions and 19 deletions
@@ -0,0 +1,17 @@
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { HeaderPage } from './header.page';
const routes: Routes = [
{
path: '',
component: HeaderPage
}
];
@NgModule({
imports: [RouterModule.forChild(routes)],
exports: [RouterModule],
})
export class HeaderPageRoutingModule {}
+20
View File
@@ -0,0 +1,20 @@
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule } from '@angular/forms';
import { IonicModule } from '@ionic/angular';
import { HeaderPageRoutingModule } from './header-routing.module';
import { HeaderPage } from './header.page';
@NgModule({
imports: [
CommonModule,
FormsModule,
IonicModule,
HeaderPageRoutingModule
],
declarations: [HeaderPage]
})
export class HeaderPageModule {}
+14
View File
@@ -0,0 +1,14 @@
<ion-header class="ion-no-border">
<ion-toolbar class="ion-no-border">
<div class="div-top-header">
<div class="div-search">
<ion-icon src='assets/images/icons-search.svg'></ion-icon>
</div>
<div class="div-logo">
<img src='assets/images/logo-no-bg.png' alt='logo'>
</div>
<div class="div-profile">
<ion-icon src='assets/images/icons-profile.svg'></ion-icon>
</div>
</div>
</ion-toolbar>
+41
View File
@@ -0,0 +1,41 @@
:host{
background: #0782c9;
}
ion-content{
--background: transparent;
}
ion-toolbar{
background: transparent;
border-width: 0 !important;
}
.div-top-header{
width: 400px;
margin: 0 auto;
background-color: #0782c9;
overflow: auto;
padding-top: 15px;
border: 0!important;
}
.div-search{
font-size: 45px;
float: left;
margin: 0 0 0 10px
}
.div-logo{
background: transparent;
width: 140px;
margin: 5px 0 0px 71px;
float: left;
}
.div-logo img{
width: 100%;
}
.div-profile{
font-size: 45px;
float: right;
margin-right: 10px;
}
ion-content{
--background:#0782c9;
--border: none;
}
+24
View File
@@ -0,0 +1,24 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { IonicModule } from '@ionic/angular';
import { HeaderPage } from './header.page';
describe('HeaderPage', () => {
let component: HeaderPage;
let fixture: ComponentFixture<HeaderPage>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ HeaderPage ],
imports: [IonicModule.forRoot()]
}).compileComponents();
fixture = TestBed.createComponent(HeaderPage);
component = fixture.componentInstance;
fixture.detectChanges();
}));
it('should create', () => {
expect(component).toBeTruthy();
});
});
+15
View File
@@ -0,0 +1,15 @@
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-header',
templateUrl: './header.page.html',
styleUrls: ['./header.page.scss'],
})
export class HeaderPage implements OnInit {
constructor() { }
ngOnInit() {
}
}