Skip to content

Commit 7858680

Browse files
committed
feat(hero): add hero
1 parent 4fdefca commit 7858680

7 files changed

Lines changed: 88 additions & 1 deletion

File tree

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<section id="hero">
2+
<ion-grid fixed>
3+
<ion-row>
4+
<ion-col size="12" class="ion-text-center">
5+
<ion-text color="light">
6+
<h1 class="fivethree-title">We are fivethree.</h1>
7+
<h2 class="fivethree-subtitle">Cross-platform App & Backend Developer</h2>
8+
</ion-text>
9+
</ion-col>
10+
</ion-row>
11+
</ion-grid>
12+
</section>
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#hero {
2+
height: 50vh;
3+
background: var(--ion-color-dark);
4+
5+
.fivethree-title {
6+
display: block;
7+
font-weight: 500;
8+
font-size: 6rem;
9+
letter-spacing: 3px;
10+
padding: 3rem 0 2rem;
11+
margin-top: 2rem;
12+
}
13+
14+
.fivethree-subtitle {
15+
padding-bottom: 5rem;
16+
line-height: 2.8rem;
17+
font-weight: 400;
18+
}
19+
}
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
2+
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
3+
4+
import { HeroComponent } from './hero.component';
5+
6+
describe('HeroComponent', () => {
7+
let component: HeroComponent;
8+
let fixture: ComponentFixture<HeroComponent>;
9+
10+
beforeEach(async(() => {
11+
TestBed.configureTestingModule({
12+
declarations: [ HeroComponent ],
13+
schemas: [CUSTOM_ELEMENTS_SCHEMA],
14+
})
15+
.compileComponents();
16+
}));
17+
18+
beforeEach(() => {
19+
fixture = TestBed.createComponent(HeroComponent);
20+
component = fixture.componentInstance;
21+
fixture.detectChanges();
22+
});
23+
24+
it('should create', () => {
25+
expect(component).toBeTruthy();
26+
});
27+
});
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import { Component, OnInit } from '@angular/core';
2+
3+
@Component({
4+
selector: 'app-hero',
5+
templateUrl: './hero.component.html',
6+
styleUrls: ['./hero.component.scss'],
7+
})
8+
export class HeroComponent implements OnInit {
9+
10+
constructor() { }
11+
12+
ngOnInit() {}
13+
14+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import { HeroComponent } from './hero.component';
2+
import { NgModule } from '@angular/core';
3+
import { CommonModule } from '@angular/common';
4+
import { IonicModule } from '@ionic/angular';
5+
6+
@NgModule({
7+
declarations: [HeroComponent],
8+
imports: [CommonModule, IonicModule],
9+
exports: [HeroComponent],
10+
providers: []
11+
})
12+
export class HeroModule {}

src/app/pages/home/home.module.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { RouterModule } from '@angular/router';
66

77
import { HomePage } from './home.page';
88
import { ComponentsModule } from '@components/components.module';
9+
import { HeroModule } from '@components/hero/hero.module';
910

1011
@NgModule({
1112
imports: [
@@ -18,7 +19,8 @@ import { ComponentsModule } from '@components/components.module';
1819
component: HomePage
1920
}
2021
]),
21-
ComponentsModule
22+
ComponentsModule,
23+
HeroModule
2224
],
2325
declarations: [HomePage]
2426
})

src/app/pages/home/home.page.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<ion-content>
22
<app-header></app-header>
3+
<app-hero></app-hero>
34

45
<app-about></app-about>
56
<app-team></app-team>

0 commit comments

Comments
 (0)