mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-20 21:35:50 +00:00
-add header with no search funcionality
- change header in home and chat
This commit is contained in:
@@ -57,6 +57,10 @@ const routes: Routes = [
|
|||||||
{
|
{
|
||||||
path: 'group-duration',
|
path: 'group-duration',
|
||||||
loadChildren: () => import('./shared/popover/group-duration/group-duration.module').then( m => m.GroupDurationPageModule)
|
loadChildren: () => import('./shared/popover/group-duration/group-duration.module').then( m => m.GroupDurationPageModule)
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: 'header-no-search',
|
||||||
|
loadChildren: () => import('./shared/headers/header-no-search/header-no-search.module').then( m => m.HeaderNoSearchPageModule)
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,24 +1,9 @@
|
|||||||
<ion-header>
|
<ion-header>
|
||||||
<app-header></app-header>
|
<app-header></app-header>
|
||||||
</ion-header>
|
</ion-header>
|
||||||
<ion-header class="ion-no-border">
|
|
||||||
<ion-toolbar class="ion-no-border" class="bg-blue">
|
|
||||||
<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>
|
|
||||||
</ion-header>
|
|
||||||
<ion-header>
|
<ion-header>
|
||||||
<ion-toolbar class="bg-blue">
|
<ion-toolbar class="bg-blue">
|
||||||
<div class="main-content">
|
<div class="main-header">
|
||||||
<ion-toolbar>
|
<ion-toolbar>
|
||||||
<ion-buttons slot="end">
|
<ion-buttons slot="end">
|
||||||
<!-- customized TOGGLE button -->
|
<!-- customized TOGGLE button -->
|
||||||
@@ -30,7 +15,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</ion-buttons>
|
</ion-buttons>
|
||||||
<ion-title class="header-title">Agenda</ion-title>
|
<ion-label class="header-title">Agenda</ion-label>
|
||||||
</ion-toolbar>
|
</ion-toolbar>
|
||||||
<ion-toolbar>
|
<ion-toolbar>
|
||||||
<ion-segment [(ngModel)]="segment">
|
<ion-segment [(ngModel)]="segment">
|
||||||
|
|||||||
@@ -36,6 +36,45 @@
|
|||||||
border-radius: 15px;
|
border-radius: 15px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.main-header{
|
||||||
|
width: 100%; /* 400px */
|
||||||
|
height: 100%;
|
||||||
|
font-family: Roboto;
|
||||||
|
border-top-left-radius: 25px;
|
||||||
|
border-top-right-radius: 25px;
|
||||||
|
background-color: #fff;
|
||||||
|
overflow:hidden;
|
||||||
|
padding: 15px 5px 0px 5px;
|
||||||
|
color:#000;
|
||||||
|
transform: translate3d(0, 1px, 0);
|
||||||
|
|
||||||
|
.title-content{
|
||||||
|
width: 360px;
|
||||||
|
margin: 0px auto;
|
||||||
|
overflow: auto;
|
||||||
|
padding: 0 !important;
|
||||||
|
background: #ecf8ff;
|
||||||
|
}
|
||||||
|
.div-title{
|
||||||
|
padding: 0!important;
|
||||||
|
float: left;
|
||||||
|
}
|
||||||
|
.title{
|
||||||
|
font-size: 25px;
|
||||||
|
}
|
||||||
|
.div-icon{
|
||||||
|
width: 40px;
|
||||||
|
float: right;
|
||||||
|
font-size: 35px;
|
||||||
|
overflow: auto;
|
||||||
|
padding: 1px;
|
||||||
|
}
|
||||||
|
.div-icon ion-icon{
|
||||||
|
float: right;
|
||||||
|
padding-left: 20px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* TOGGLE button */
|
/* TOGGLE button */
|
||||||
@@ -182,9 +221,9 @@ input:checked[type="checkbox"]::before{
|
|||||||
}
|
}
|
||||||
.toggle{
|
.toggle{
|
||||||
position: relative;
|
position: relative;
|
||||||
display: inline;
|
display: block;
|
||||||
font-family: 'Montserrat', sans-serif;
|
font-family: 'Montserrat', sans-serif;
|
||||||
display: grid;
|
/* display: grid; */
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
label{
|
label{
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
<ion-header>
|
<ion-header>
|
||||||
<app-header></app-header>
|
<!-- <app-header></app-header> -->
|
||||||
|
<app-header-no-search></app-header-no-search>
|
||||||
</ion-header>
|
</ion-header>
|
||||||
<ion-header class="ion-no-border">
|
<ion-header class="ion-no-border">
|
||||||
<ion-toolbar class="bg-blue">
|
<ion-toolbar class="bg-blue">
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<ion-header class="ion-no-border">
|
<ion-header class="ion-no-border">
|
||||||
<app-header></app-header>
|
<app-header-no-search></app-header-no-search>
|
||||||
</ion-header>
|
</ion-header>
|
||||||
|
|
||||||
<!-- Default Refresher -->
|
<!-- Default Refresher -->
|
||||||
|
|||||||
@@ -0,0 +1,17 @@
|
|||||||
|
import { NgModule } from '@angular/core';
|
||||||
|
import { Routes, RouterModule } from '@angular/router';
|
||||||
|
|
||||||
|
import { HeaderNoSearchPage } from './header-no-search.page';
|
||||||
|
|
||||||
|
const routes: Routes = [
|
||||||
|
{
|
||||||
|
path: '',
|
||||||
|
component: HeaderNoSearchPage
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
imports: [RouterModule.forChild(routes)],
|
||||||
|
exports: [RouterModule],
|
||||||
|
})
|
||||||
|
export class HeaderNoSearchPageRoutingModule {}
|
||||||
@@ -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 { HeaderNoSearchPageRoutingModule } from './header-no-search-routing.module';
|
||||||
|
|
||||||
|
import { HeaderNoSearchPage } from './header-no-search.page';
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
imports: [
|
||||||
|
CommonModule,
|
||||||
|
FormsModule,
|
||||||
|
IonicModule,
|
||||||
|
HeaderNoSearchPageRoutingModule
|
||||||
|
],
|
||||||
|
declarations: [HeaderNoSearchPage]
|
||||||
|
})
|
||||||
|
export class HeaderNoSearchPageModule {}
|
||||||
@@ -0,0 +1,25 @@
|
|||||||
|
<ion-toolbar class="bg-blue">
|
||||||
|
|
||||||
|
<ion-grid>
|
||||||
|
|
||||||
|
<ion-row class="div-top-header ion-justify-content-between">
|
||||||
|
<ion-col>
|
||||||
|
<!-- <div (click)="openSearch()" class="div-search">
|
||||||
|
<ion-icon src='assets/images/icons-search.svg'></ion-icon>
|
||||||
|
</div> -->
|
||||||
|
</ion-col>
|
||||||
|
<ion-col>
|
||||||
|
<div class="div-logo">
|
||||||
|
<img src='assets/images/logo-no-bg.png' alt='logo'>
|
||||||
|
</div>
|
||||||
|
</ion-col>
|
||||||
|
<ion-col>
|
||||||
|
<div class="div-profile">
|
||||||
|
<ion-icon src='assets/images/icons-profile.svg'></ion-icon>
|
||||||
|
</div>
|
||||||
|
</ion-col>
|
||||||
|
</ion-row>
|
||||||
|
|
||||||
|
</ion-grid>
|
||||||
|
|
||||||
|
</ion-toolbar>
|
||||||
@@ -0,0 +1,32 @@
|
|||||||
|
@import '~src/function.scss';
|
||||||
|
|
||||||
|
.div-top-header{
|
||||||
|
margin: 0 auto;
|
||||||
|
background-color: #0782c9;
|
||||||
|
overflow: auto;
|
||||||
|
padding-top: em(15px);
|
||||||
|
border: 0!important;
|
||||||
|
|
||||||
|
.div-search{
|
||||||
|
font-size: 45px;
|
||||||
|
margin: 0 0 0 10px
|
||||||
|
}
|
||||||
|
.div-logo{
|
||||||
|
background: transparent;
|
||||||
|
width: em(140px);
|
||||||
|
margin: 0px auto;
|
||||||
|
margin-top: 5px;
|
||||||
|
justify-content: center;
|
||||||
|
display: flex;
|
||||||
|
}
|
||||||
|
.div-logo img{
|
||||||
|
width: 100%;
|
||||||
|
margin: 0px auto;
|
||||||
|
}
|
||||||
|
.div-profile{
|
||||||
|
font-size: 45px;
|
||||||
|
margin-right: 10px;
|
||||||
|
justify-content: flex-end;
|
||||||
|
display: flex;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,24 @@
|
|||||||
|
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
||||||
|
import { IonicModule } from '@ionic/angular';
|
||||||
|
|
||||||
|
import { HeaderNoSearchPage } from './header-no-search.page';
|
||||||
|
|
||||||
|
describe('HeaderNoSearchPage', () => {
|
||||||
|
let component: HeaderNoSearchPage;
|
||||||
|
let fixture: ComponentFixture<HeaderNoSearchPage>;
|
||||||
|
|
||||||
|
beforeEach(async(() => {
|
||||||
|
TestBed.configureTestingModule({
|
||||||
|
declarations: [ HeaderNoSearchPage ],
|
||||||
|
imports: [IonicModule.forRoot()]
|
||||||
|
}).compileComponents();
|
||||||
|
|
||||||
|
fixture = TestBed.createComponent(HeaderNoSearchPage);
|
||||||
|
component = fixture.componentInstance;
|
||||||
|
fixture.detectChanges();
|
||||||
|
}));
|
||||||
|
|
||||||
|
it('should create', () => {
|
||||||
|
expect(component).toBeTruthy();
|
||||||
|
});
|
||||||
|
});
|
||||||
@@ -0,0 +1,27 @@
|
|||||||
|
import { Component, OnInit } from '@angular/core';
|
||||||
|
import { ModalController } from '@ionic/angular';
|
||||||
|
import { SearchPage } from 'src/app/pages/search/search.page';
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'app-header-no-search',
|
||||||
|
templateUrl: './header-no-search.page.html',
|
||||||
|
styleUrls: ['./header-no-search.page.scss'],
|
||||||
|
})
|
||||||
|
export class HeaderNoSearchPage implements OnInit {
|
||||||
|
|
||||||
|
constructor(private modalController: ModalController) { }
|
||||||
|
|
||||||
|
ngOnInit() {
|
||||||
|
}
|
||||||
|
|
||||||
|
async openSearch() {
|
||||||
|
const modal = await this.modalController.create({
|
||||||
|
component: SearchPage,
|
||||||
|
cssClass: 'group-messages',
|
||||||
|
componentProps: {
|
||||||
|
}
|
||||||
|
});
|
||||||
|
return await modal.present();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -7,6 +7,7 @@ import { HeaderPrPage } from './header-pr/header-pr.page';
|
|||||||
import { BtnSeguintePage } from './btn-seguinte/btn-seguinte.page';
|
import { BtnSeguintePage } from './btn-seguinte/btn-seguinte.page';
|
||||||
import { BtnModalDismissPage } from './btn-modal-dismiss/btn-modal-dismiss.page';
|
import { BtnModalDismissPage } from './btn-modal-dismiss/btn-modal-dismiss.page';
|
||||||
import { ChatPopoverPage } from './popover/chat-popover/chat-popover.page';
|
import { ChatPopoverPage } from './popover/chat-popover/chat-popover.page';
|
||||||
|
import { HeaderNoSearchPage } from './headers/header-no-search/header-no-search.page';
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [
|
imports: [
|
||||||
@@ -16,13 +17,16 @@ import { ChatPopoverPage } from './popover/chat-popover/chat-popover.page';
|
|||||||
],
|
],
|
||||||
exports: [
|
exports: [
|
||||||
HeaderPage,
|
HeaderPage,
|
||||||
HeaderPrPage,
|
HeaderPrPage,
|
||||||
|
HeaderNoSearchPage,
|
||||||
BtnSeguintePage,
|
BtnSeguintePage,
|
||||||
BtnModalDismissPage,
|
BtnModalDismissPage,
|
||||||
],
|
],
|
||||||
entryComponents:[],
|
entryComponents:[],
|
||||||
declarations: [HeaderPage,
|
declarations: [
|
||||||
HeaderPrPage,
|
HeaderPage,
|
||||||
|
HeaderPrPage,
|
||||||
|
HeaderNoSearchPage,
|
||||||
BtnSeguintePage,
|
BtnSeguintePage,
|
||||||
BtnModalDismissPage,
|
BtnModalDismissPage,
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user