Skip to content

Commit ae33cd1

Browse files
committed
add styling and images
1 parent e9fbc54 commit ae33cd1

8 files changed

+52
-36
lines changed

src/app/app.component.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
<nav class="navbar navbar-default">
1+
<nav class="navbar navbar-default" id="header">
22
<div class="container-fluid">
33
<div class="navbar-header">
4-
<a class="navbar-brand" routerLink="">Atlanta Braves</a>
4+
<a class="navbar-brand" routerLink=""><img id="home-logo" src="./src/img/braves-tomahawk.png" alt="" /></a>
55
</div>
66
<ul class="nav navbar-nav navbar-right">
77
<li><a routerLink="about">About</a></li>

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

+9-3
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,18 @@ <h2>Atlanta Braves Roster:</h2>
99
</select>
1010

1111
<div *ngFor="let player of players | async | position:filterByPosition" class="panel panel-default">
12+
<div class="panel-heading player-name">{{player?.name}}</div>
1213
<div class="panel-body">
13-
<h3>{{player?.name}}</h3>
14-
<img src="{{player?.image}}" alt="" (click)="goToPlayerPage(player)"/>
14+
<div class="col-md-6">
15+
<img src="{{player?.image}}" alt="" (click)="goToPlayerPage(player)"/>
16+
</div>
17+
<div class="col-md-6">
18+
Number: {{player?.number}}<br>
19+
Position: {{player?.position}}<br>
20+
B/T: {{player?.bt}}<br>
21+
</div>
1522

1623
<div *ngIf="currentRoute === '/admin'">
17-
{{player?.number}}
1824
<hr>
1925
<app-edit-player [selectedPlayer]="player"></app-edit-player>
2026
</div>
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,15 @@
1-
<div class="">
2-
<h1>{{playerToDisplay?.name}}</h1>
3-
<img src="{{playerToDisplay?.image}}" alt="Picture of Braves {{playerToDisplay?.position}} {{playerToDisplay?.name}}" />
1+
<div class="panel panel-default">
2+
<div class="panel-heading player-name">{{playerToDisplay?.name}}</div>
3+
<div class="panel-body">
4+
<div class="col-md-6">
5+
<img src="{{playerToDisplay?.image}}" alt="Picture of Braves {{playerToDisplay?.position}} {{playerToDisplay?.name}}" />
6+
</div>
7+
<div class="col-md-6">
8+
Position: {{playerToDisplay?.position}}<br>
9+
B/T: {{playerToDisplay?.bt}}<br>
10+
Height: {{playerToDisplay?.height}}<br>
11+
Weight: {{playerToDisplay?.weight}}<br>
12+
Born: {{playerToDisplay?.born}}<br>
13+
</div>
14+
</div>
415
</div>

src/img/braves-tomahawk.png

32.3 KB
Loading

src/img/old-school-logo.gif

10.5 KB
Loading

src/styles.css

+19
Original file line numberDiff line numberDiff line change
@@ -1 +1,20 @@
11
/* You can add global styles to this file, and also import other style files */
2+
#home-logo {
3+
width: 80px;
4+
}
5+
#header {
6+
background-color: rgba(19, 39, 79, 1);
7+
}
8+
.navbar-default .navbar-nav > li > a {
9+
color: white;
10+
}
11+
.player-name {
12+
text-align: center;
13+
font-size: 40px;
14+
font-weight: bolder;
15+
background-color: rgba(206, 17, 65, 1);
16+
}
17+
18+
.panel-default > .player-name {
19+
background-color: rgba(206, 17, 65, 1);
20+
}

src/tsconfig.json

-18
This file was deleted.

tsconfig.json

+8-10
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,18 @@
11
{
2-
"compileOnSave": false,
32
"compilerOptions": {
4-
"outDir": "./dist/out-tsc",
5-
"baseUrl": "src",
6-
"sourceMap": true,
73
"declaration": false,
8-
"moduleResolution": "node",
94
"emitDecoratorMetadata": true,
105
"experimentalDecorators": true,
6+
"lib": ["es6", "dom"],
7+
"mapRoot": "./",
8+
"module": "es6",
9+
"moduleResolution": "node",
10+
"outDir": "../dist/out-tsc",
11+
"sourceMap": true,
1112
"target": "es5",
1213
"typeRoots": [
13-
"node_modules/@types"
14+
"../node_modules/@types"
1415
],
15-
"lib": [
16-
"es2016",
17-
"dom"
18-
]
16+
"types": [ "firebase" ]
1917
}
2018
}

0 commit comments

Comments
 (0)