From d9602c6579b7f62e280b8d11d604e58d26626762 Mon Sep 17 00:00:00 2001 From: Daniel Pett Date: Tue, 10 May 2022 15:18:15 +0100 Subject: [PATCH] Carousels refactored to includes Removed spacing Change image --- resources/views/highlights/landing.blade.php | 260 +----------------- .../collections-search-form.blade.php | 109 ++++++++ .../structure/context-carousel.blade.php | 52 ++++ .../includes/structure/parallax.blade.php | 2 +- .../structure/period-carousel.blade.php | 51 ++++ .../structure/theme-carousel.blade.php | 50 ++++ 6 files changed, 269 insertions(+), 255 deletions(-) create mode 100644 resources/views/includes/structure/collections-search-form.blade.php create mode 100644 resources/views/includes/structure/context-carousel.blade.php create mode 100644 resources/views/includes/structure/period-carousel.blade.php create mode 100644 resources/views/includes/structure/theme-carousel.blade.php diff --git a/resources/views/highlights/landing.blade.php b/resources/views/highlights/landing.blade.php index 5e5215c8..5575cdd7 100644 --- a/resources/views/highlights/landing.blade.php +++ b/resources/views/highlights/landing.blade.php @@ -1,268 +1,20 @@ @extends('layouts.layout') @section('title', 'Our objects and artworks') @section('hero_image',env('CONTENT_STORE') . 'large_PD_8_1979_1_201709.jpg') -@section('hero_image_title', 'Cupid and Psyche - del Sallaio') +@section('hero_image_title', 'The Death of Hippolytus') @section('description','A search page for our highlight objects') @section('keywords', 'search,highlights, objects') -@section('collection-parallax', 'https://api.fitz.ms/mediaLib/pdp/pdp82/P_72_1999_200706_dc2.jpg') -@section('collection-search') -
-
-
- {{ $page }} -
-
- {{ Form::open(['url' => url('https://data.fitzmuseum.cam.ac.uk/search/results'),'method' => 'GET']) }} -
-
- -
-
-
-
-

Visual results

-
- - -
-
- - -
-
-
-

Operator

-
- - -
-
- - -
-
-
-

Sort by last update

-
- - -
-
- - -
-
+@section('collection-parallax', env('CONTENT_STORE') . 'large_PD_8_1979_1_201709.jpg') -
-
-
- -
-
- @if(count($errors)) -
-
-
    - @foreach($errors->all() as $error) -
  • {{ $error }}
  • - @endforeach -
-
-
- @endif - {!! Form::close() !!} -
+ @include('includes.structure.collections-search-form') -

Search our highlights

-
- {{ Form::open(['url' => url('objects-and-artworks/highlights/search/results'),'method' => 'GET', 'class' => 'text-center']) }} -
-
-
- - - - -
-
-
- @if(count($errors)) -
-
-
    - @foreach($errors->all() as $error) -
  • {{ $error }}
  • - @endforeach -
-
-
- @endif - {!! Form::close() !!} -
-
-
-@endsection -@section('theme-carousel') -
-
-
-
-

Explore Highlights by theme

-
-
- -
-
-
-
-@endsection +@include('includes.structure.theme-carousel') +@include('includes.structure.period-carousel') +@include('includes.structure.context-carousel') -@section('period-carousel') -
-
-
-
-

Explore periods

-
-
- -
-
-
-
-@endsection -@section('context-carousel') -
-
-
-
-

Explore Contexts

-
-
- -
-
-
-
- -@endsection diff --git a/resources/views/includes/structure/collections-search-form.blade.php b/resources/views/includes/structure/collections-search-form.blade.php new file mode 100644 index 00000000..9e6dde78 --- /dev/null +++ b/resources/views/includes/structure/collections-search-form.blade.php @@ -0,0 +1,109 @@ +@section('collection-search') +
+
+
+ {{ $page }} +
+
+ {{ Form::open(['url' => url('https://data.fitzmuseum.cam.ac.uk/search/results'),'method' => 'GET']) }} +
+
+ +
+
+
+
+

Visual results

+
+ + +
+
+ + +
+
+
+

Operator

+
+ + +
+
+ + +
+
+
+

Sort by last update

+
+ + +
+
+ + +
+
+ +
+
+
+ +
+
+ @if(count($errors)) +
+
+
    + @foreach($errors->all() as $error) +
  • {{ $error }}
  • + @endforeach +
+
+
+ @endif + {!! Form::close() !!} +
+ +

Search our highlights

+
+ {{ Form::open(['url' => url('objects-and-artworks/highlights/search/results'),'method' => 'GET', 'class' => 'text-center']) }} +
+
+
+ + + + +
+
+
+ @if(count($errors)) +
+
+
    + @foreach($errors->all() as $error) +
  • {{ $error }}
  • + @endforeach +
+
+
+ @endif + {!! Form::close() !!} +
+
+
+@endsection diff --git a/resources/views/includes/structure/context-carousel.blade.php b/resources/views/includes/structure/context-carousel.blade.php new file mode 100644 index 00000000..c56084f2 --- /dev/null +++ b/resources/views/includes/structure/context-carousel.blade.php @@ -0,0 +1,52 @@ +@section('context-carousel') +
+
+
+
+

Explore Contexts

+
+ +
+ +
+
+
+
+ +@endsection diff --git a/resources/views/includes/structure/parallax.blade.php b/resources/views/includes/structure/parallax.blade.php index 0643f3b3..051a057e 100644 --- a/resources/views/includes/structure/parallax.blade.php +++ b/resources/views/includes/structure/parallax.blade.php @@ -1 +1 @@ -
+
diff --git a/resources/views/includes/structure/period-carousel.blade.php b/resources/views/includes/structure/period-carousel.blade.php new file mode 100644 index 00000000..4b8d164b --- /dev/null +++ b/resources/views/includes/structure/period-carousel.blade.php @@ -0,0 +1,51 @@ +@section('period-carousel') +
+
+
+
+

Explore periods

+
+
+ +
+
+
+
+ +@endsection diff --git a/resources/views/includes/structure/theme-carousel.blade.php b/resources/views/includes/structure/theme-carousel.blade.php new file mode 100644 index 00000000..d4f89d7e --- /dev/null +++ b/resources/views/includes/structure/theme-carousel.blade.php @@ -0,0 +1,50 @@ +@section('theme-carousel') + +
+
+
+

Explore Highlights by theme

+
+
+ +
+
+
+ +@endsection