diff options
Diffstat (limited to 'resources')
| -rw-r--r-- | resources/sass/app.scss | 6 | ||||
| -rw-r--r-- | resources/views/list_anime.blade.php | 45 |
2 files changed, 44 insertions, 7 deletions
diff --git a/resources/sass/app.scss b/resources/sass/app.scss index 521c226..8e30317 100644 --- a/resources/sass/app.scss +++ b/resources/sass/app.scss @@ -12,6 +12,12 @@ box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04); } +.page-header { + @extend .jumbotron; + background-color: rgb(255,255,255,0.5); + padding: 2rem; +} + @media( max-width: 500px ) { body { background: url(/img/sakamoto-mobile.jpg) no-repeat left center fixed; diff --git a/resources/views/list_anime.blade.php b/resources/views/list_anime.blade.php index 32ad79b..df1971f 100644 --- a/resources/views/list_anime.blade.php +++ b/resources/views/list_anime.blade.php @@ -1,15 +1,46 @@ @extends('layouts.app') @section('content') + <div class="container" id="index"> -<div class="jumbotron"> - <h1>{{ $title }}</h1> - @if ( "airing_anime" == \Request::route()->getName() ) - <p class="lead text-muted"> - @php echo getSeason() @endphp @php echo date("Y") @endphp - </p> +<div class="page-header"> + <div class="row"> + @if ( "airing_anime" == \Request::route()->getName() || "season" == \Request::route()->getName() ) + <div class="col-6"> + @endif + + <h1>{{ $title }}</h1> + @if ( "airing_anime" == \Request::route()->getName() ) + <p class="lead text-muted"> + {{ getSeason() }} {{ date("Y") }} + </p> + @endif + + @if ( "airing_anime" == \Request::route()->getName() || "season" == \Request::route()->getName() ) + </div> + @endif + + @if ( "airing_anime" == \Request::route()->getName() || "season" == \Request::route()->getName() ) + <!-- Change Season --> + <div class="col-6"> + <form id="season_change" action="/changeSeason/" method="get"> + <div class="form-group"> + <label for="season_switcher"> + <h3>Change Season</h3> + </label> + <select name="season" id="season_switcher" class="custom-select" required> + @foreach( getChangeSeasonOptions() as $season ) + <option value="{{ $season->season_name }}-{{ $season->season_year }}">{{ $season->season_name }} {{ $season->season_year }}</option> + @endforeach + </select> + </div> + <button class="btn btn-primary" type="submit"> Go! </button> + </form> + </div> @endif + + </div> </div> <div class="row"> @foreach($all_anime as $anime) @@ -17,7 +48,7 @@ @once </div> - <div class="jumbotron"> + <div id="continuing" class="jumbotron" style="margin-top: 2rem;"> <h2>Continuing from earlier Seasons</h2> </div> |
