Skip to content

Commit 7ec3b18

Browse files
remove heroe stuff + styling + home, error, not found, layout styling + app info
1 parent f3130ee commit 7ec3b18

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+321
-115
lines changed

src/app/app-routing.module.ts

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,9 @@
11
import { NgModule } from "@angular/core";
2-
import { Routes, RouterModule } from "@angular/router";
3-
4-
import { CommandComponent } from "./command/command.component";
5-
6-
const routes: Routes = [
7-
{ path: "command", component: CommandComponent }
8-
];
2+
import { RouterModule } from "@angular/router";
3+
import { AREAS_ROUTES } from "./areas/index";
94

105
@NgModule({
11-
imports: [RouterModule.forRoot(routes)],
12-
exports: [RouterModule]
6+
imports: [RouterModule.forRoot(AREAS_ROUTES)],
7+
exports: [RouterModule],
138
})
14-
export class AppRoutingModule { }
9+
export class AppRoutingModule {}

src/app/app.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
</main>
55
<footer class="footer">
66
<div class="container">
7-
<p class="text-muted">&copy; Stephen Lautier 2016.</p>
7+
<p>&copy; Made with <i class="fa fa-heart" aria-hidden="true" style="color: red;"></i>️ by <strong>Sketch7</strong> 2017.</p>
88
</div>
99
</footer>

src/app/app.module.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,16 @@ import { ServiceWorkerModule } from "@angular/service-worker";
55
import { AppRoutingModule } from "./app-routing.module";
66

77
import { environment } from "../environments/environment";
8-
import { CommandComponent } from "./command/command.component";
98
import { AppComponent } from "./app.component";
10-
import { NavComponent } from "./nav/nav.component";
9+
import { AREAS_COMPONENTS } from "./areas/index";
10+
import { AppSharedModule } from "./shared/shared.module";
1111

1212
@NgModule({
13-
declarations: [AppComponent, CommandComponent, NavComponent],
13+
declarations: [AppComponent, ...AREAS_COMPONENTS],
1414
imports: [
1515
BrowserModule.withServerTransition({ appId: "serverApp" }),
1616
AppRoutingModule,
17+
AppSharedModule,
1718
ServiceWorkerModule.register("/ngsw-worker.js", { enabled: environment.production }),
1819
],
1920
providers: [],
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<h1>Command</h1>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
@import "vars";

src/app/command/command.component.ts renamed to src/app/areas/command/command.component.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ import { Component } from "@angular/core";
33
@Component({
44
selector: "app-command",
55
templateUrl: "./command.component.html",
6-
styleUrls: ["./command.component.scss"]
6+
styleUrls: ["./command.component.scss"],
77
})
8-
export class CommandComponent {
9-
title = "Command";
10-
}
8+
export class CommandComponent {}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<div class="text-center">
2+
<h1>500</h1>
3+
<p><strong>Ooppss!</strong> an error has occurred. Please refresh and try again.</p>
4+
<i class="fa fa-meh-o fa-5x"
5+
aria-hidden="true"></i>
6+
</div>
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
@import "vars";
2+
3+
div {
4+
margin-top: 30vh;
5+
}
6+
7+
h1 {
8+
font-size: $font-size-xxl;
9+
}
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: "app-error",
5+
templateUrl: "./error.component.html",
6+
styleUrls: ["./error.component.scss"],
7+
})
8+
export class ErrorComponent {}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<h1>
2+
{{title}}
3+
</h1>
4+
<p>Angular 5.x sample template application to get you started easily!</p>
5+
<ul>
6+
<li>Angular CLI 1.6</li>
7+
<li>SCSS for styling</li>
8+
<li>Bootstrap 4.x</li>
9+
</ul>

0 commit comments

Comments
 (0)