Skip to content

Commit cdce5c4

Browse files
committed
Add about page
1 parent 4b63959 commit cdce5c4

File tree

6 files changed

+42
-0
lines changed

6 files changed

+42
-0
lines changed

src/app/about/about.component.html

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<h2>About this app</h2>
2+
3+
<p>
4+
This is a set of simple CSS Grid examples
5+
<a href="http://billodom.com/">I</a>
6+
originally created for a talk at the 2018
7+
<a href="https://craft-conf.com/">Craft Conference</a>
8+
called "CSS Grid: Get ready to fall in love" (although
9+
I've added a few things since then).
10+
</p>
11+
12+
<p>
13+
Note: The examples are hosted in an Angular app that uses Sass, but that's
14+
just to make some things easier to build or demonstrate. None of the CSS Grid
15+
concepts are specific to Angular or Sass.
16+
</p>
17+
18+
<p>
19+
You can find the latest version here:
20+
<a target="_blank" href="https://github.com/wnodom/css-grid-playground">
21+
CSS Grid Playground on Github
22+
</a>
23+
</p>
24+

src/app/about/about.component.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
:host {
2+
display: block;
3+
padding: 20px;
4+
}
5+

src/app/about/about.component.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import { Component } from '@angular/core';
2+
3+
@Component({
4+
selector: 'cgp-about',
5+
templateUrl: './about.component.html',
6+
styleUrls: ['./about.component.scss']
7+
})
8+
export class AboutComponent { }

src/app/app-routing.module.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { Routes, RouterModule } from '@angular/router';
44
import { WelcomeComponent } from './welcome/welcome.component';
55
import { IllustrationsComponent } from './illustrations/illustrations.component';
66
import { ResourcesComponent } from './resources/resources.component';
7+
import { AboutComponent } from './about/about.component';
78

89
import { examples } from './examples';
910

@@ -12,6 +13,7 @@ const routes: Routes = [
1213
...examples,
1314
{ path: 'illustrations', component: IllustrationsComponent },
1415
{ path: 'resources', component: ResourcesComponent },
16+
{ path: 'about', component: AboutComponent },
1517
{ path: '**', redirectTo: '' },
1618
];
1719

src/app/app.component.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
<a routerLink="illustrations" routerLinkActive="currentExample">Illustrations</a>
1616
<a routerLink="resources" routerLinkActive="currentExample">Resources</a>
17+
<a routerLink="about" routerLinkActive="currentExample">About</a>
1718
</nav>
1819

1920
<main>

src/app/app.module.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import { WelcomeComponent } from './welcome/welcome.component';
1414
import { ChessboardExampleComponent } from './chessboard-example/chessboard-example.component';
1515
import { ResourcesComponent } from './resources/resources.component';
1616
import { IllustrationsComponent } from './illustrations/illustrations.component';
17+
import { AboutComponent } from './about/about.component';
1718

1819

1920
@NgModule({
@@ -29,6 +30,7 @@ import { IllustrationsComponent } from './illustrations/illustrations.component'
2930
ChessboardExampleComponent,
3031
IllustrationsComponent,
3132
ResourcesComponent,
33+
AboutComponent,
3234
],
3335
imports: [
3436
BrowserModule,

0 commit comments

Comments
 (0)