Skip to content

Commit a142838

Browse files
author
Ian Redpath
committed
no results text styling
1 parent 6a77a67 commit a142838

File tree

5 files changed

+27
-17
lines changed

5 files changed

+27
-17
lines changed

public/project/components/libraries/libraries.view.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ <h1>Libraries</h1>
1111
</div>
1212
</div>
1313
<div *ngIf="!showSearchResults" class="libraries-no-search">
14-
<h4>Highest rated libraries</h4>
14+
<h4 class="h4-margins">Highest rated libraries</h4>
1515
<div class="sample-libraries row">
1616
<span class="no-results" *ngIf="highestRatedLibs.length ===0">No libraries found</span>
1717
<div *ngFor="#library of highestRatedLibs.slice(0, 10)" class="library-movie col-xs-6 col-sm-4 col-md-3 col-lg-2">
@@ -30,7 +30,7 @@ <h4>Highest rated libraries</h4>
3030
</div>
3131
</div>
3232
</div>
33-
<h4>Libraries with the most movies</h4>
33+
<h4 class="h4-margins">Libraries with the most movies</h4>
3434
<div class="sample-libraries row">
3535
<span class="no-results" *ngIf="mostMoviesLibs.length ===0">No libraries found</span>
3636
<div *ngFor="#library of mostMoviesLibs.slice(0, 10)" class="library-movie col-xs-6 col-sm-4 col-md-3 col-lg-2">
@@ -43,7 +43,7 @@ <h4>Libraries with the most movies</h4>
4343
</div>
4444
</div>
4545
</div>
46-
<h4>Libraries with the most comments</h4>
46+
<h4 class="h4-margins">Libraries with the most comments</h4>
4747
<div class="sample-libraries row">
4848
<span class="no-results" *ngIf="mostCommentsLibs.length ===0">No libraries found</span>
4949
<div *ngFor="#library of mostCommentsLibs.slice(0, 10)" class="library-movie col-xs-6 col-sm-4 col-md-3 col-lg-2">
@@ -58,7 +58,7 @@ <h4>Libraries with the most comments</h4>
5858
</div>
5959
</div>
6060
<div class="libraries-search" *ngIf="showSearchResults">
61-
<div class="sample-libraries row">
61+
<div class="search-results row">
6262
<span class="no-results" *ngIf="getShownResults.length ===0">No results found</span>
6363
<div *ngFor="#library of getShownResults()" class="library-movie col-xs-6 col-sm-4 col-md-3 col-lg-2">
6464
<div class="movie-poster-container">

public/project/components/movies/movie.view.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ <h1 class="movie-title">{{omdbMovie.title}}</h1>
6363
</div>
6464
</div>
6565
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12" *ngIf="!fetchingLibraries">
66-
<h3>Libraries With This Title</h3>
66+
<h3 class="h4-margins">Libraries With This Title</h3>
6767
<div class="sample-libraries row">
6868
<span class="no-results" *ngIf="movie.libraries.length ===0">No libraries with this title</span>
6969
<div *ngFor="#library of movie.libraries" class="library-movie col-xs-6 col-sm-4 col-md-3 col-lg-2">

public/project/components/movies/movies.view.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ <h1>Movies</h1>
1111
</div>
1212
</div>
1313
<div *ngIf="!showSearchResults" class="movies-no-search">
14-
<h4>Highest rated movies</h4>
14+
<h4 class="h4-margins">Highest rated movies</h4>
1515
<div class="sample-movies row">
1616
<span class="no-results" *ngIf="highestRatedMovies.length ===0">No movies found</span>
1717
<div *ngFor="#movie of highestRatedMovies.slice(0, 10)" class="library-movie col-xs-6 col-sm-4 col-md-3 col-lg-2">
@@ -31,7 +31,7 @@ <h4>Highest rated movies</h4>
3131
</div>
3232
</div>
3333
</div>
34-
<h4>Movies with the most libraries</h4>
34+
<h4 class="h4-margins">Movies with the most libraries</h4>
3535
<div class="sample-movies row">
3636
<span class="no-results" *ngIf="mostLibsMovies.length ===0">No movies found</span>
3737
<div *ngFor="#movie of mostLibsMovies.slice(0, 10)" class="library-movie col-xs-6 col-sm-4 col-md-3 col-lg-2">
@@ -44,7 +44,7 @@ <h4>Movies with the most libraries</h4>
4444
</div>
4545
</div>
4646
</div>
47-
<h4>Movies with the most comments</h4>
47+
<h4 class="h4-margins">Movies with the most comments</h4>
4848
<div class="sample-movies row">
4949
<span class="no-results" *ngIf="mostCommentsMovies.length ===0">No movies found</span>
5050
<div *ngFor="#movie of mostCommentsMovies.slice(0, 10)" class="library-movie col-xs-6 col-sm-4 col-md-3 col-lg-2">
@@ -59,7 +59,7 @@ <h4>Movies with the most comments</h4>
5959
</div>
6060
</div>
6161
<div class="movies-search" *ngIf="showSearchResults">
62-
<div class="movies-search-results row">
62+
<div class="search-results row">
6363
<span class="no-results" *ngIf="results.length ===0">No results found</span>
6464
<div *ngFor="#movie of results" class="library-movie col-xs-6 col-sm-4 col-md-3 col-lg-2">
6565
<div class="movie-poster-container">

public/project/components/users/users.view.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ <h1>Users</h1>
1111
</div>
1212
</div>
1313
<div *ngIf="!showSearchResults" class="users-no-search">
14-
<h4>Users with the most libraries</h4>
14+
<h4 class="h4-margins">Users with the most libraries</h4>
1515
<div class="sample-users row">
1616
<span class="no-results" *ngIf="mostLibUsers.length ===0">No users found</span>
1717
<div *ngFor="#user of mostLibUsers.slice(0, 10)" class="library-movie col-xs-6 col-sm-4 col-md-3 col-lg-2">
@@ -24,7 +24,7 @@ <h4>Users with the most libraries</h4>
2424
</div>
2525
</div>
2626
</div>
27-
<h4>Users with the most ratings</h4>
27+
<h4 class="h4-margins">Users with the most ratings</h4>
2828
<div class="sample-users row">
2929
<span class="no-results" *ngIf="mostRatingsUsers.length ===0">No users found</span>
3030
<div *ngFor="#user of mostRatingsUsers.slice(0, 10)" class="library-movie col-xs-6 col-sm-4 col-md-3 col-lg-2">
@@ -39,7 +39,7 @@ <h4>Users with the most ratings</h4>
3939
</div>
4040
</div>
4141
<div class="users-search" *ngIf="showSearchResults">
42-
<div class="users-search-results row">
42+
<div class="search-results row">
4343
<span class="no-results" *ngIf="getShownResults.length ===0">No results found</span>
4444
<div *ngFor="#user of getShownResults()" class="library-movie col-xs-6 col-sm-4 col-md-3 col-lg-2">
4545
<div class="movie-poster-container">

public/project/css/style.css

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
.clickable {
22
cursor: pointer;
33
}
4-
.searchbar {
5-
display: inline-block;
6-
width: 45%
7-
}
4+
85
.movie-title {
96
margin-left: 15px;
107
}
@@ -141,4 +138,17 @@
141138

142139
.no-bot-margin {
143140
margin-bottom: 4px;
144-
}
141+
}
142+
143+
.row {
144+
text-align: center;
145+
}
146+
147+
.h4-margins {
148+
margin-top: 20px;
149+
margin-bottom:20px;
150+
}
151+
152+
.search-results {
153+
margin-top: 50px;
154+
}

0 commit comments

Comments
 (0)