Initial commit

This commit is contained in:
Kayaya
2020-08-05 15:39:16 +01:00
commit d25ebc0d28
110 changed files with 17161 additions and 0 deletions
+33
View File
@@ -0,0 +1,33 @@
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule } from '@angular/forms';
import { IonicModule } from '@ionic/angular';
import { Component } from '@angular/core';
import { SlidesComponent } from './slides/slides.component';
import { StartComponent } from './start/start.component';
import { LogoComponent } from './logo/logo.component';
@NgModule({
declarations: [
SlidesComponent,
StartComponent,
LogoComponent
],
exports: [
/* Exportar para o acesso de outros componentes e páginas na aplicação*/
SlidesComponent,
StartComponent,
LogoComponent,
Component
],
imports: [
CommonModule,
FormsModule,
IonicModule
]
})
export class ComponentsModule { }
@@ -0,0 +1,2 @@
<img src='assets/images/logo.png' alt='logo'>
@@ -0,0 +1,3 @@
img{
width: 100px;
}
@@ -0,0 +1,24 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { IonicModule } from '@ionic/angular';
import { LogoComponent } from './logo.component';
describe('LogoComponent', () => {
let component: LogoComponent;
let fixture: ComponentFixture<LogoComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ LogoComponent ],
imports: [IonicModule.forRoot()]
}).compileComponents();
fixture = TestBed.createComponent(LogoComponent);
component = fixture.componentInstance;
fixture.detectChanges();
}));
it('should create', () => {
expect(component).toBeTruthy();
});
});
+14
View File
@@ -0,0 +1,14 @@
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-logo',
templateUrl: './logo.component.html',
styleUrls: ['./logo.component.scss'],
})
export class LogoComponent implements OnInit {
constructor() { }
ngOnInit() {}
}
@@ -0,0 +1,11 @@
<ion-slides pager="true" [options]="slideOpts">
<ion-slide>
<app-logo></app-logo>
</ion-slide>
<ion-slide>
<h2>Slide 2</h2>
</ion-slide>
<ion-slide>
<h2>Slide 3</h2>
</ion-slide>
</ion-slides>
@@ -0,0 +1,7 @@
ion-slides{
padding: 160px 20px;
/* h2{
font-size: 26px;
font-weight: bold;
} */
}
@@ -0,0 +1,24 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { IonicModule } from '@ionic/angular';
import { SlidesComponent } from './slides.component';
describe('SlidesComponent', () => {
let component: SlidesComponent;
let fixture: ComponentFixture<SlidesComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ SlidesComponent ],
imports: [IonicModule.forRoot()]
}).compileComponents();
fixture = TestBed.createComponent(SlidesComponent);
component = fixture.componentInstance;
fixture.detectChanges();
}));
it('should create', () => {
expect(component).toBeTruthy();
});
});
@@ -0,0 +1,19 @@
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-slides',
templateUrl: './slides.component.html',
styleUrls: ['./slides.component.scss'],
})
export class SlidesComponent implements OnInit {
slideOpts = {
intialSlides: 0,
speed: 400
}
constructor() { }
ngOnInit() {}
}
@@ -0,0 +1 @@
<ion-button expand="block" color="primary" (click)="navigateToLoginPage()">Avançar</ion-button>
@@ -0,0 +1,24 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { IonicModule } from '@ionic/angular';
import { StartComponent } from './start.component';
describe('StartComponent', () => {
let component: StartComponent;
let fixture: ComponentFixture<StartComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ StartComponent ],
imports: [IonicModule.forRoot()]
}).compileComponents();
fixture = TestBed.createComponent(StartComponent);
component = fixture.componentInstance;
fixture.detectChanges();
}));
it('should create', () => {
expect(component).toBeTruthy();
});
});
@@ -0,0 +1,20 @@
import { Component, OnInit } from '@angular/core';
import { Router } from '@angular/router';
@Component({
selector: 'app-start',
templateUrl: './start.component.html',
styleUrls: ['./start.component.scss'],
})
export class StartComponent implements OnInit {
constructor(private router: Router) { }
ngOnInit() {}
navigateToLoginPage(){
this.router.navigate(['login'])
}
}