Skip to content

Commit

Permalink
feat(hero): add hero
Browse files Browse the repository at this point in the history
  • Loading branch information
marcjulian committed Aug 12, 2019
1 parent 4fdefca commit 7858680
Show file tree
Hide file tree
Showing 7 changed files with 88 additions and 1 deletion.
12 changes: 12 additions & 0 deletions src/app/components/hero/hero.component.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<section id="hero">
<ion-grid fixed>
<ion-row>
<ion-col size="12" class="ion-text-center">
<ion-text color="light">
<h1 class="fivethree-title">We are fivethree.</h1>
<h2 class="fivethree-subtitle">Cross-platform App & Backend Developer</h2>
</ion-text>
</ion-col>
</ion-row>
</ion-grid>
</section>
19 changes: 19 additions & 0 deletions src/app/components/hero/hero.component.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#hero {
height: 50vh;
background: var(--ion-color-dark);

.fivethree-title {
display: block;
font-weight: 500;
font-size: 6rem;
letter-spacing: 3px;
padding: 3rem 0 2rem;
margin-top: 2rem;
}

.fivethree-subtitle {
padding-bottom: 5rem;
line-height: 2.8rem;
font-weight: 400;
}
}
27 changes: 27 additions & 0 deletions src/app/components/hero/hero.component.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import { async, ComponentFixture, TestBed } from '@angular/core/testing';

import { HeroComponent } from './hero.component';

describe('HeroComponent', () => {
let component: HeroComponent;
let fixture: ComponentFixture<HeroComponent>;

beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ HeroComponent ],
schemas: [CUSTOM_ELEMENTS_SCHEMA],
})
.compileComponents();
}));

beforeEach(() => {
fixture = TestBed.createComponent(HeroComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});

it('should create', () => {
expect(component).toBeTruthy();
});
});
14 changes: 14 additions & 0 deletions src/app/components/hero/hero.component.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { Component, OnInit } from '@angular/core';

@Component({
selector: 'app-hero',
templateUrl: './hero.component.html',
styleUrls: ['./hero.component.scss'],
})
export class HeroComponent implements OnInit {

constructor() { }

ngOnInit() {}

}
12 changes: 12 additions & 0 deletions src/app/components/hero/hero.module.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { HeroComponent } from './hero.component';
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { IonicModule } from '@ionic/angular';

@NgModule({
declarations: [HeroComponent],
imports: [CommonModule, IonicModule],
exports: [HeroComponent],
providers: []
})
export class HeroModule {}
4 changes: 3 additions & 1 deletion src/app/pages/home/home.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { RouterModule } from '@angular/router';

import { HomePage } from './home.page';
import { ComponentsModule } from '@components/components.module';
import { HeroModule } from '@components/hero/hero.module';

@NgModule({
imports: [
Expand All @@ -18,7 +19,8 @@ import { ComponentsModule } from '@components/components.module';
component: HomePage
}
]),
ComponentsModule
ComponentsModule,
HeroModule
],
declarations: [HomePage]
})
Expand Down
1 change: 1 addition & 0 deletions src/app/pages/home/home.page.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<ion-content>
<app-header></app-header>
<app-hero></app-hero>

<app-about></app-about>
<app-team></app-team>
Expand Down

0 comments on commit 7858680

Please sign in to comment.