Skip to content

Commit b7ba16d

Browse files
committed
home apge added
1 parent a0f9112 commit b7ba16d

File tree

7 files changed

+59
-5
lines changed

7 files changed

+59
-5
lines changed

src/app/app.module.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ import { AddUserComponent } from './add-user/add-user.component';
2525
import { PatronsListComponent } from './patrons-list/patrons-list.component';
2626
import { AuthErrorComponent } from './auth-error/auth-error.component';
2727
import { TrimPipe } from './pipes/trim.pipe';
28+
import { HomePageComponent } from './home-page/home-page.component';
2829

2930

3031
@NgModule({
@@ -42,7 +43,8 @@ import { TrimPipe } from './pipes/trim.pipe';
4243
UserManagementComponent,
4344
AddUserComponent,
4445
PatronsListComponent,
45-
AuthErrorComponent
46+
AuthErrorComponent,
47+
HomePageComponent
4648
],
4749
imports: [
4850
BrowserModule,

src/app/app.routing.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import { AddUserComponent } from './add-user/add-user.component';
1313
import { PatronsListComponent } from "./patrons-list/patrons-list.component";
1414
import { AdminGuardService as AdminGuard } from './service/admin-guard.service';
1515
import { AuthErrorComponent } from './auth-error/auth-error.component';
16+
import { HomePageComponent } from './home-page/home-page.component';
1617

1718

1819
const routes: Routes = [
@@ -25,7 +26,8 @@ const routes: Routes = [
2526
{ path: 'link-themes/:id', component: LinkThemesComponent, canActivate: [AuthGuard, AdminGuard] },
2627
{ path: 'episode-details/:id', component: EpisodeDetailsComponent, canActivate: [AuthGuard] },
2728
{ path: 'patrons-list', component: PatronsListComponent, canActivate: [AuthGuard, AdminGuard] },
28-
{ path: '**', component: LoginComponent }
29+
{ path: 'login', component: LoginComponent },
30+
{ path: '**', component: HomePageComponent }
2931
]
3032

3133
export const routing = RouterModule.forRoot(routes, {onSameUrlNavigation: 'reload'});

src/app/home-page/home-page.component.css

Whitespace-only changes.
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
<div class="row">
2+
<div class="col-2"></div>
3+
<div class="col-8">
4+
<a class="btn btn-warning btn-block mb-3" href="https://www.patreon.com/join/automation_remarks?">Support podcast</a>
5+
</div>
6+
</div>
7+
8+
<div class="row mb-2">
9+
<div class="col-2"></div>
10+
<div class="col-8">
11+
<h3>Recent episodes:</h3>
12+
</div>
13+
</div>
14+
15+
<div class="row mb-2">
16+
<div class="col-2"></div>
17+
<div class="col-8">
18+
<iframe width="100%" height="166" scrolling="no" frameborder="no" allow="autoplay" src="https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/563784393&color=%23ff5500&auto_play=false&hide_related=false&show_comments=true&show_user=true&show_reposts=false&show_teaser=true"></iframe>
19+
</div>
20+
</div>
21+
22+
<div class="row mb-2">
23+
<div class="col-2"></div>
24+
<div class="col-8">
25+
<iframe width="100%" height="166" scrolling="no" frameborder="no" allow="autoplay" src="https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/550937883&color=%23ff5500&auto_play=false&hide_related=false&show_comments=true&show_user=true&show_reposts=false&show_teaser=true"></iframe>
26+
</div>
27+
</div>
28+
29+
<div class="row mb-2">
30+
<div class="col-2"></div>
31+
<div class="col-8">
32+
<iframe width="100%" height="166" scrolling="no" frameborder="no" allow="autoplay" src="https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/542095626&color=%23ff5500&auto_play=false&hide_related=false&show_comments=true&show_user=true&show_reposts=false&show_teaser=true"></iframe>
33+
</div>
34+
</div>
35+
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import { Component, OnInit } from '@angular/core';
2+
3+
@Component({
4+
selector: 'app-home-page',
5+
templateUrl: './home-page.component.html',
6+
styleUrls: ['./home-page.component.css']
7+
})
8+
export class HomePageComponent implements OnInit {
9+
10+
constructor() { }
11+
12+
ngOnInit() {
13+
}
14+
15+
}

src/app/ui/header/header.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<nav class="navbar navbar-dark bg-dark mb-2">
2-
<a class="navbar-brand" href="/list">Timecoder</a>
2+
<a class="navbar-brand" href="/list">QAGuild podcast</a>
33
<div class="navbar-expand mr-auto">
44
<div class="navbar-nav">
55
<button *ngIf="isLogged()" type="button" class="btn btn-outline-light mx-2" (click)="goHome()">Home</button>

src/index.html

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

88
<meta name="viewport" content="width=device-width, initial-scale=1">
9-
<link rel="icon" type="image/x-icon" href="favicon.ico">
9+
<!-- <link rel="icon" type="image/x-icon" href="favicon.ico"> -->
1010
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500" rel="stylesheet">
1111
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
1212
</head>

0 commit comments

Comments
 (0)