File tree Expand file tree Collapse file tree 4 files changed +31
-8
lines changed Expand file tree Collapse file tree 4 files changed +31
-8
lines changed Original file line number Diff line number Diff line change 4747
4848.logo img {
4949 width : 100% ;
50+ padding : 15px ;
5051}
Original file line number Diff line number Diff line change 2424
2525 < div class ="col-md-4 ">
2626 < div class ="sidebar-card mb-2 ">
27- < div class ="logo ">
27+ < div class ="logo mb-4 ">
2828 < a href ="about.html "> < img src ="assets/img/black_logo.png " alt ="" class ="img-responsive img-circle " style ="margin: 0 auto; "> </ a >
2929 </ div >
30-
30+ < p class ="mb-4 ">
31+ QAGuild подкаст — первый подкаст про тестирование, автоматизацию в тестировании и просто за жизнь.
32+ </ p >
33+
34+ < hr >
35+ < button type ="button " class ="btn btn-block btn-outline-dark " (click) ="goToAddTheme() "> Предложить тему для подкаста</ button >
36+
37+ < a *ngIf ="!isLogged() " href ="https://www.patreon.com/join/automation_remarks? " class ="btn btn-block btn-outline-warning "> Задонатить</ a >
38+
39+ < a *ngIf ="!isLogged() " href ="https://qaguild-slack.herokuapp.com " class ="btn btn-block btn-outline-success "> Чат подкаста в Slack</ a >
3140 </ div >
3241
33- < div class ="sidebar-card ">
34- < button type ="button " class ="btn btn-block btn-dark " (click) ="goToAddTheme() "> Предложить тему для подкаста</ button >
35- </ div >
42+ <!-- <div class="sidebar-card">
43+ <button type="button" class="btn btn-block btn-outline-dark" (click)="goToAddTheme()">Предложить тему для подкаста</button>
44+
45+ <a *ngIf="!isLogged()" href="https://www.patreon.com/join/automation_remarks?" class="btn btn-block btn-outline-warning">Задонатить</a>
46+
47+ <a *ngIf="!isLogged()" href="https://qaguild-slack.herokuapp.com" class="btn btn-block btn-outline-success">Чат подкаста в Slack</a>
48+ </div> -->
49+
50+
3651 </ div >
3752 </ div >
3853</ div >
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import { Router } from '@angular/router';
33import { PostService } from "../service/post.service" ;
44import { Post } from "../model/post" ;
55import { Page } from '../model/paged.post' ;
6+ import { AuthService } from '../service/auth.service' ;
67
78@Component ( {
89 selector : 'app-home-page' ,
@@ -13,7 +14,9 @@ export class HomePageComponent implements OnInit {
1314
1415 page : Page
1516
16- constructor ( private router : Router , private postService : PostService ) { }
17+ constructor ( private router : Router ,
18+ private postService : PostService ,
19+ private authSerice : AuthService ) { }
1720
1821 ngOnInit ( ) {
1922 this . postService . getPostList ( )
@@ -27,4 +30,9 @@ export class HomePageComponent implements OnInit {
2730 postDetails ( post : Post ) {
2831 this . router . navigate ( [ `post-details/${ post . id } ` ] ) ;
2932 }
33+
34+ isLogged ( ) : boolean {
35+ return this . authSerice . isAuthenticated ( )
36+ }
37+
3038}
Original file line number Diff line number Diff line change 11< nav class ="navbar navbar-dark bg-dark mb-2 ">
2- < a class ="navbar-brand " href ="/ "> QAGuild podcast </ a >
2+ < a class ="navbar-brand " href ="/ "> QAGuild</ 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 >
1010 </ div >
1111 < div class ="navbar-expand ml-auto navbar-nav ">
1212 < div class ="navbar-nav ">
13- < a *ngIf ="!isLogged() " href ="https://www.patreon.com/join/automation_remarks? " class ="btn btn-outline-warning mx-2 "> Donate</ a >
1413 < a *ngIf ="isLogged() " class ="nav-item nav-link "> {{ getCurrentUserName() }}</ a >
1514 < button *ngIf ="isLogged() " type ="button " class ="btn btn-outline-light mx-2 " (click) ="logout() "> Logout</ button >
1615 </ div >
You can’t perform that action at this time.
0 commit comments