Skip to content

Commit a2c9f40

Browse files
committed
configure for sass, add initial layout and comps
1 parent 6e0e972 commit a2c9f40

20 files changed

+136
-40
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
/coverage/*
2424
/libpeerconnection.log
2525
npm-debug.log
26+
debug.log
2627
testem.log
2728
/typings
2829

README.md

Lines changed: 8 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,13 @@
1-
# Angularair
1+
# [angularair.com](http://angularair.com)
22

3-
This project was generated with [angular-cli](https://github.com/angular/angular-cli) version 1.0.0-beta.22-1.
3+
![AngularAir logo](src/assets/logo.png)
44

5-
## Development server
6-
Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files.
5+
[@AngularAir](https://twitter.com/AngularAir) is a video podcast all about
6+
[Angular](https://angular.io/) by
7+
[AngularClass](https://angularclass.com/) and hosted by [Justin Schwartzenberger](https://twitter.com/schwarty).
78

8-
## Code scaffolding
9+
This repo is [the website](http://angularair.github.io) for AngularAir.
910

10-
Run `ng generate component component-name` to generate a new component. You can also use `ng generate directive/pipe/service/class`.
11+
Catch AngularAir on [Twitter](https://twitter.com/AngularAir) and
12+
[Google+](https://plus.google.com/+AngularAirPodcast/)
1113

12-
## Build
13-
14-
Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `-prod` flag for a production build.
15-
16-
## Running unit tests
17-
18-
Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io).
19-
20-
## Running end-to-end tests
21-
22-
Run `ng e2e` to execute the end-to-end tests via [Protractor](http://www.protractortest.org/).
23-
Before running the tests make sure you are serving the app via `ng serve`.
24-
25-
## Deploying to Github Pages
26-
27-
Run `ng github-pages:deploy` to deploy to Github Pages.
28-
29-
## Further help
30-
31-
To get more help on the `angular-cli` use `ng --help` or go check out the [Angular-CLI README](https://github.com/angular/angular-cli/blob/master/README.md).

angular-cli.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"prefix": "app",
1919
"mobile": false,
2020
"styles": [
21-
"styles.css"
21+
"styles.scss"
2222
],
2323
"scripts": [],
2424
"environments": {
@@ -41,7 +41,8 @@
4141
}
4242
},
4343
"defaults": {
44-
"styleExt": "css",
44+
"styleExt": "scss",
45+
"changeDetection": "OnPush",
4546
"prefixInterfaces": false,
4647
"inline": {
4748
"style": false,

src/app/app.component.html

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1-
<h1>
2-
{{title}}
3-
</h1>
1+
<div id="logo" class="center">
2+
<img src="assets/logo.png" />
3+
</div>
4+
5+
<section id="title" class="center">
6+
<h1>AngularAir</h1>
7+
<h2>
8+
A <strong>live</strong> video podcast all about Angular
9+
</h2>
10+
<p>
11+
Brought to you by
12+
<a href="https://auth0.com/learn/angular-authentication/?utm_source=angular_air&utm_medium=sponsored_link&utm_campaign=target_angular">Auth0</a>,
13+
<a href="http://angularclass.com">AngularClass</a> and <a href="#sponsors">others</a>
14+
</p>
15+
</section>
16+
<hr />
17+
<section id="podcast-links" class="center">
18+
<app-subscribe-icon icon="apple" network="iTunes" link="https://itunes.apple.com/us/podcast/angular-air/id940806858?mt=2"></app-subscribe-icon>
19+
<app-subscribe-icon icon="youtube" network="YouTube" link="https://www.youtube.com/c/AngularAirPodcast"></app-subscribe-icon>
20+
<app-subscribe-icon icon="rss" network="RSS" link="http://angularair.podbean.com/feed/"></app-subscribe-icon>
21+
</section>
22+
<hr/>
File renamed without changes.

src/app/app.component.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
import { Component } from '@angular/core';
1+
import { Component, ChangeDetectionStrategy } from '@angular/core';
22

33
@Component({
44
selector: 'app-root',
5+
changeDetection: ChangeDetectionStrategy.OnPush,
56
templateUrl: './app.component.html',
6-
styleUrls: ['./app.component.css']
7+
styleUrls: ['./app.component.scss']
78
})
8-
export class AppComponent {
9-
title = 'app works!';
10-
}
9+
export class AppComponent { }

src/app/app.module.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,14 @@ import { FormsModule } from '@angular/forms';
44
import { HttpModule } from '@angular/http';
55

66
import { AppComponent } from './app.component';
7+
import { LinkIconComponent } from './shared/link-icon/link-icon.component';
8+
import { SubscribeIconComponent } from './shared/subscribe-icon/subscribe-icon.component';
79

810
@NgModule({
911
declarations: [
10-
AppComponent
12+
AppComponent,
13+
LinkIconComponent,
14+
SubscribeIconComponent
1115
],
1216
imports: [
1317
BrowserModule,
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<div>
2+
<a [href]="link" [title]="title">
3+
<i class="fa fa-{{icon}}"></i>
4+
</a>
5+
</div>

src/app/shared/link-icon/link-icon.component.scss

Whitespace-only changes.
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
/* tslint:disable:no-unused-variable */
2+
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
3+
import { By } from '@angular/platform-browser';
4+
import { DebugElement } from '@angular/core';
5+
6+
import { LinkIconComponent } from './link-icon.component';
7+
8+
describe('LinkIconComponent', () => {
9+
let component: LinkIconComponent;
10+
let fixture: ComponentFixture<LinkIconComponent>;
11+
12+
beforeEach(async(() => {
13+
TestBed.configureTestingModule({
14+
declarations: [ LinkIconComponent ]
15+
})
16+
.compileComponents();
17+
}));
18+
19+
beforeEach(() => {
20+
fixture = TestBed.createComponent(LinkIconComponent);
21+
component = fixture.componentInstance;
22+
fixture.detectChanges();
23+
});
24+
25+
it('should create', () => {
26+
expect(component).toBeTruthy();
27+
});
28+
});
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import { Component, ChangeDetectionStrategy, Input } from '@angular/core';
2+
3+
@Component({
4+
selector: 'app-link-icon',
5+
changeDetection: ChangeDetectionStrategy.OnPush,
6+
templateUrl: './link-icon.component.html',
7+
styleUrls: ['./link-icon.component.scss']
8+
})
9+
export class LinkIconComponent {
10+
@Input() icon;
11+
@Input() link;
12+
@Input() title;
13+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<app-link-icon [icon]="icon" [link]="link" title="Subscribe on {{network}}"></app-link-icon>

src/app/shared/subscribe-icon/subscribe-icon.component.scss

Whitespace-only changes.
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
/* tslint:disable:no-unused-variable */
2+
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
3+
import { By } from '@angular/platform-browser';
4+
import { DebugElement } from '@angular/core';
5+
6+
import { SubscribeIconComponent } from './subscribe-icon.component';
7+
8+
describe('SubscribeIconComponent', () => {
9+
let component: SubscribeIconComponent;
10+
let fixture: ComponentFixture<SubscribeIconComponent>;
11+
12+
beforeEach(async(() => {
13+
TestBed.configureTestingModule({
14+
declarations: [ SubscribeIconComponent ]
15+
})
16+
.compileComponents();
17+
}));
18+
19+
beforeEach(() => {
20+
fixture = TestBed.createComponent(SubscribeIconComponent);
21+
component = fixture.componentInstance;
22+
fixture.detectChanges();
23+
});
24+
25+
it('should create', () => {
26+
expect(component).toBeTruthy();
27+
});
28+
});
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import { Component, ChangeDetectionStrategy, Input } from '@angular/core';
2+
3+
@Component({
4+
selector: 'app-subscribe-icon',
5+
changeDetection: ChangeDetectionStrategy.OnPush,
6+
templateUrl: './subscribe-icon.component.html',
7+
styleUrls: ['./subscribe-icon.component.scss']
8+
})
9+
export class SubscribeIconComponent {
10+
@Input() icon;
11+
@Input() link;
12+
@Input() network;
13+
}

src/assets/logo.png

10.4 KB
Loading

src/favicon.ico

-2.38 KB
Binary file not shown.

src/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
<html>
33
<head>
44
<meta charset="utf-8">
5-
<title>Angularair</title>
5+
<title>AngularAir</title>
66
<base href="/">
77

88
<meta name="viewport" content="width=device-width, initial-scale=1">
99
<link rel="icon" type="image/x-icon" href="favicon.ico">
1010
</head>
1111
<body>
12-
<app-root>Loading...</app-root>
12+
<app-root>Loading AngularAir...</app-root>
1313
</body>
1414
</html>

src/styles.css

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/styles.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
/* You can add global styles to this file, and also import other style files */
2+
$fa-font-path: "../node_modules/font-awesome/fonts";
3+
@import "../node_modules/font-awesome/scss/font-awesome.scss";

0 commit comments

Comments
 (0)