Skip to content

Commit 5dd9013

Browse files
committed
refactor
1 parent 0c78cf4 commit 5dd9013

File tree

7 files changed

+26
-22
lines changed

7 files changed

+26
-22
lines changed

angular.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"tsConfig": "tsconfig.app.json",
2121
"aot": true,
2222
"assets": [
23-
"src/favicon.ico",
23+
"src/favicon-new.ico",
2424
"src/assets"
2525
],
2626
"styles": [
@@ -85,7 +85,7 @@
8585
"tsConfig": "tsconfig.spec.json",
8686
"karmaConfig": "karma.conf.js",
8787
"assets": [
88-
"src/favicon.ico",
88+
"src/favicon-new.ico",
8989
"src/assets"
9090
],
9191
"styles": [
@@ -127,4 +127,4 @@
127127
}
128128
},
129129
"defaultProject": "personalApplication"
130-
}
130+
}

src/app/components/footer/footer.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<a href="https://www.linkedin.com/in/jan-stępień-developer" class="p-1" target="_blank" rel="noopener" style="font-size:36px;color:white">
55
<fa-icon [icon]="faLinkedin"></fa-icon>
66
</a>
7-
<a href="https://https://www.facebook.com/jan.stepien.7" class="p-1" target="_blank" rel="noopener" style="font-size:36px;color:white">
7+
<a href="https://www.facebook.com/jan.stepien.7" class="p-1" target="_blank" rel="noopener" style="font-size:36px;color:white">
88
<fa-icon [icon]="faFacebook"></fa-icon>
99
</a>
1010
</div>

src/app/containers/angular-main-page/angular-main-page.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ <h5 class="d-flex flex-wrap">
1111
<h5>So what you want to see first?</h5>
1212
<div class="d-flex flex-row flex-wrap m-1 justify-content-center">
1313
<app-tile *ngFor="let tile of tiles; let i = index" class="d-flex m-1" [routerLink]="tile.redirectTo"
14-
[id]="i" [text]="tile.label" [style]="i % 2 === 0 ? tileStyles.blackTile : tileStyles.whiteTile" ></app-tile>
14+
[id]="i" [text]="tile.label" [style]="setTileStyle(i)" ></app-tile>
1515
</div>
1616
</div>
1717
<footer id="homePageFooter" class="black-themed d-flex justify-content-left flex-column p-4">

src/app/containers/angular-main-page/angular-main-page.component.ts

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,19 @@ export class AngularMainPageComponent implements OnInit {
1818
label:'NgRx implementation',
1919
redirectTo: 'ngRx'
2020
},
21-
{
22-
label:'Boostrap used',
23-
redirectTo: 'home'
24-
},
25-
{
26-
label:'Responsive design',
27-
redirectTo: 'home'
28-
},
29-
{
30-
label:'GitHub',
31-
redirectTo: 'home'
32-
}
21+
// TODO:
22+
// {
23+
// label:'Boostrap used',
24+
// redirectTo: 'home'
25+
// },
26+
// {
27+
// label:'Responsive design',
28+
// redirectTo: 'home'
29+
// },
30+
// {
31+
// label:'GitHub',
32+
// redirectTo: 'home'
33+
// }
3334
];
3435
constructor(private router: Router) { }
3536

@@ -39,5 +40,7 @@ export class AngularMainPageComponent implements OnInit {
3940
tileClicked(index: number){
4041
this.router.navigate([this.tiles[index].redirectTo]);
4142
}
42-
43+
setTileStyle(index: number){
44+
return index % 2 === 0 ? tileStyles.blackTile : tileStyles.whiteTile
45+
}
4346
}

src/app/containers/home-page/home-page.component.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,11 @@ export class HomePageComponent implements OnInit {
2020
label: "Angular",
2121
redirectTo: 'angular'
2222
},
23-
{
24-
label: "Flutter",
25-
redirectTo: 'flutter'
26-
}
23+
// TODO:
24+
// {
25+
// label: "Flutter",
26+
// redirectTo: 'flutter'
27+
// }
2728
];
2829

2930
constructor(private router: Router) {

src/favicon-new.ico

15 KB
Binary file not shown.

src/favicon.ico

-948 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)