diff --git a/app/Http/Controllers/highlightsController.php b/app/Http/Controllers/highlightsController.php index 11aaa1bf..42eebf16 100644 --- a/app/Http/Controllers/highlightsController.php +++ b/app/Http/Controllers/highlightsController.php @@ -80,8 +80,8 @@ public function landing(): View $periods = Highlights::getPeriods(); $periods = $this->group_by("period_assigned", $periods['data']); $contexts = HighlightPages::getContexts(); - $context = $this->group_by("section", $contexts['data']); - return view('highlights.landing', compact('pharos', 'periods', 'context', 'page')); + $contexts = $this->group_by("section", $contexts['data']); + return view('highlights.landing', compact('pharos', 'periods', 'contexts', 'page')); } /** diff --git a/app/View/Components/carouselSlide.php b/app/View/Components/carouselSlide.php new file mode 100644 index 00000000..d4c74e06 --- /dev/null +++ b/app/View/Components/carouselSlide.php @@ -0,0 +1,41 @@ +slides = $slides; + $this->class = $class; + $this->imageObject = $imageObject; + $this->title = $title; + $this->route = $route; + $this->param = $param; + $this->slugify = $slugify; + } + + /** + * Get the view / contents that represent the component. + * + * @return \Illuminate\Contracts\View\View|\Closure|string + */ + public function render() + { + return view('components.carousel-slide'); + } +} diff --git a/package-lock.json b/package-lock.json index 57e79e0c..f2bf45bb 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,7 @@ "@fortawesome/fontawesome-free": "^6.1.1", "@popperjs/core": "^2.11.5", "@xmldom/xmldom": "^0.8.2", - "autoprefixer": "^10.4.5", + "autoprefixer": "^10.4.7", "clean-css": "^5.3.0", "leaflet-iiif": "^3.0.0", "minimist": ">=1.2.6", @@ -3131,9 +3131,9 @@ } }, "node_modules/autoprefixer": { - "version": "10.4.5", - "resolved": "https://registry.npmjs.org/autoprefixer/-/autoprefixer-10.4.5.tgz", - "integrity": "sha512-Fvd8yCoA7lNX/OUllvS+aS1I7WRBclGXsepbvT8ZaPgrH24rgXpZzF0/6Hh3ZEkwg+0AES/Osd196VZmYoEFtw==", + "version": "10.4.7", + "resolved": "https://registry.npmjs.org/autoprefixer/-/autoprefixer-10.4.7.tgz", + "integrity": "sha512-ypHju4Y2Oav95SipEcCcI5J7CGPuvz8oat7sUtYj3ClK44bldfvtvcxK6IEK++7rqB7YchDGzweZIBG+SD0ZAA==", "funding": [ { "type": "opencollective", @@ -3145,8 +3145,8 @@ } ], "dependencies": { - "browserslist": "^4.20.2", - "caniuse-lite": "^1.0.30001332", + "browserslist": "^4.20.3", + "caniuse-lite": "^1.0.30001335", "fraction.js": "^4.2.0", "normalize-range": "^0.1.2", "picocolors": "^1.0.0", @@ -15851,12 +15851,12 @@ "peer": true }, "autoprefixer": { - "version": "10.4.5", - "resolved": "https://registry.npmjs.org/autoprefixer/-/autoprefixer-10.4.5.tgz", - "integrity": "sha512-Fvd8yCoA7lNX/OUllvS+aS1I7WRBclGXsepbvT8ZaPgrH24rgXpZzF0/6Hh3ZEkwg+0AES/Osd196VZmYoEFtw==", + "version": "10.4.7", + "resolved": "https://registry.npmjs.org/autoprefixer/-/autoprefixer-10.4.7.tgz", + "integrity": "sha512-ypHju4Y2Oav95SipEcCcI5J7CGPuvz8oat7sUtYj3ClK44bldfvtvcxK6IEK++7rqB7YchDGzweZIBG+SD0ZAA==", "requires": { - "browserslist": "^4.20.2", - "caniuse-lite": "^1.0.30001332", + "browserslist": "^4.20.3", + "caniuse-lite": "^1.0.30001335", "fraction.js": "^4.2.0", "normalize-range": "^0.1.2", "picocolors": "^1.0.0", diff --git a/package.json b/package.json index c0ea7e0a..e995cf6f 100644 --- a/package.json +++ b/package.json @@ -40,7 +40,7 @@ "@fortawesome/fontawesome-free": "^6.1.1", "@popperjs/core": "^2.11.5", "@xmldom/xmldom": "^0.8.2", - "autoprefixer": "^10.4.5", + "autoprefixer": "^10.4.7", "clean-css": "^5.3.0", "leaflet-iiif": "^3.0.0", "minimist": ">=1.2.6", diff --git a/resources/views/components/carousel-slide.blade.php b/resources/views/components/carousel-slide.blade.php new file mode 100644 index 00000000..2a5462c5 --- /dev/null +++ b/resources/views/components/carousel-slide.blade.php @@ -0,0 +1,67 @@ + diff --git a/resources/views/highlights/landing.blade.php b/resources/views/highlights/landing.blade.php index 2cd93ea4..5e5215c8 100644 --- a/resources/views/highlights/landing.blade.php +++ b/resources/views/highlights/landing.blade.php @@ -116,203 +116,153 @@ @endsection @section('theme-carousel') -
-

Explore highlights by theme

-
-