-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
51 changed files
with
418 additions
and
443 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,24 @@ | ||
/* AppComponent's private CSS styles */ | ||
|
||
h1 { | ||
margin-bottom: 0; | ||
margin-bottom: 0; | ||
} | ||
|
||
nav a { | ||
padding: 1rem; | ||
text-decoration: none; | ||
margin-top: 10px; | ||
display: inline-block; | ||
background-color: #e8e8e8; | ||
color: #3d3d3d; | ||
border-radius: 4px; | ||
padding: 1rem; | ||
text-decoration: none; | ||
margin-top: 10px; | ||
display: inline-block; | ||
background-color: #e8e8e8; | ||
color: #3d3d3d; | ||
border-radius: 4px; | ||
} | ||
|
||
nav a:hover { | ||
color: white; | ||
background-color: #42545C; | ||
color: white; | ||
background-color: #42545c; | ||
} | ||
|
||
nav a.active { | ||
background-color: black; | ||
} | ||
background-color: black; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
<h1>{{title}}</h1> | ||
<h1>{{ title }}</h1> | ||
<nav> | ||
<a routerLink="/dashboard">Dashboard</a> | ||
<a routerLink="/heroes">Heroes</a> | ||
<a routerLink="/dashboard">Dashboard</a> | ||
<a routerLink="/heroes">Heroes</a> | ||
</nav> | ||
<router-outlet></router-outlet> | ||
<app-messages></app-messages> | ||
<app-messages></app-messages> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,48 +1,48 @@ | ||
/* DashboardComponent's private CSS styles */ | ||
|
||
h2 { | ||
text-align: center; | ||
text-align: center; | ||
} | ||
|
||
.heroes-menu { | ||
padding: 0; | ||
margin: auto; | ||
max-width: 1000px; | ||
/* flexbox */ | ||
display: flex; | ||
flex-direction: row; | ||
flex-wrap: wrap; | ||
justify-content: space-around; | ||
align-content: flex-start; | ||
align-items: flex-start; | ||
padding: 0; | ||
margin: auto; | ||
max-width: 1000px; | ||
/* flexbox */ | ||
display: flex; | ||
flex-direction: row; | ||
flex-wrap: wrap; | ||
justify-content: space-around; | ||
align-content: flex-start; | ||
align-items: flex-start; | ||
} | ||
|
||
a { | ||
background-color: #3f525c; | ||
border-radius: 2px; | ||
padding: 1rem; | ||
font-size: 1.2rem; | ||
text-decoration: none; | ||
display: inline-block; | ||
color: #fff; | ||
text-align: center; | ||
width: 100%; | ||
min-width: 70px; | ||
margin: .5rem auto; | ||
box-sizing: border-box; | ||
/* flexbox */ | ||
order: 0; | ||
flex: 0 1 auto; | ||
align-self: auto; | ||
background-color: #3f525c; | ||
border-radius: 2px; | ||
padding: 1rem; | ||
font-size: 1.2rem; | ||
text-decoration: none; | ||
display: inline-block; | ||
color: #fff; | ||
text-align: center; | ||
width: 100%; | ||
min-width: 70px; | ||
margin: 0.5rem auto; | ||
box-sizing: border-box; | ||
/* flexbox */ | ||
order: 0; | ||
flex: 0 1 auto; | ||
align-self: auto; | ||
} | ||
|
||
@media (min-width: 600px) { | ||
a { | ||
width: 18%; | ||
box-sizing: content-box; | ||
} | ||
a { | ||
width: 18%; | ||
box-sizing: content-box; | ||
} | ||
} | ||
|
||
a:hover { | ||
background-color: #000; | ||
} | ||
background-color: #000; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
<h2>Top Heroes</h2> | ||
<div class="heroes-menu"> | ||
<a *ngFor="let hero of heroes" routerLink="/detail/{{hero.id}}"> | ||
{{hero.name}} | ||
</a> | ||
<a *ngFor="let hero of heroes" routerLink="/detail/{{ hero.id }}"> | ||
{{ hero.name }} | ||
</a> | ||
</div> | ||
<app-hero-search></app-hero-search> | ||
<app-hero-search></app-hero-search> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.