From b238700c79c0c3e85ed2dfd846107ed212822b92 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Tue, 26 Oct 2021 16:07:35 +0200 Subject: [PATCH] wip #4839 @0:10 --- resources/views/front/home.blade.php | 63 +++++++ resources/views/front/media-library.blade.php | 103 +++++++++++ resources/views/front/resources.blade.php | 164 ++++++++++++++++++ routes/web.php | 10 +- 4 files changed, 339 insertions(+), 1 deletion(-) create mode 100644 resources/views/front/home.blade.php create mode 100644 resources/views/front/media-library.blade.php create mode 100644 resources/views/front/resources.blade.php diff --git a/resources/views/front/home.blade.php b/resources/views/front/home.blade.php new file mode 100644 index 0000000..ebd1533 --- /dev/null +++ b/resources/views/front/home.blade.php @@ -0,0 +1,63 @@ +@extends('layouts.app') + +@section('content') + + @php + // TEMPORARY DATA MOCKUP + $logo = 'https://odl.paris.cubedesigners.com/storage/102/groupe-84.svg'; + $subtitle = "Découvrez le coeur de l'offre sous forme de feuilleteur interactif"; + $button = "Découvrir l'offre"; + $illustration = 'https://odl.paris.cubedesigners.com/storage/103/magazine-mockup-presentation-vol9-at-2x.png'; + $shortcuts = [ + [ + 'title' => 'Ressources', + 'content' => "Consultez l'ensemble des documents au format PDF", + 'image' => 'https://odl.paris.cubedesigners.com/storage/104/groupe-209-at-2x.png', + 'link' => '/ressources', + ], + [ + 'title' => 'Médiathèque', + 'content' => 'Consultez les médias audio et vidéo', + 'image' => 'https://odl.paris.cubedesigners.com/storage/105/groupe-211-at-2x.png', + 'link' => '#', + ], + [ + 'title' => 'Visite guidée', + 'content' => 'Laissez-vous guider dans une lecture thématique', + 'image' => 'https://odl.paris.cubedesigners.com/storage/106/groupe-221-at-2x.png', + 'link' => '#', + ], + ]; + @endphp + +
+ + {{-- Main home content --}} +
{{-- negative margin so image shadow sits under shortcuts --}} + {{-- Left Column: logo + text + CTA --}} +
+ @if($logo)Logo@endif + @if($subtitle)

{{ $subtitle }}

@endif + @if($button){{ $button }}@endif +
+ {{-- Right Column: Illustration image --}} +
+
+ + {{-- Link blocks --}} +
+ @foreach($shortcuts as $shortcut) +
+ +
+

{{ $shortcut['title'] }}

+

{{ $shortcut['content'] }}

+ +
+
+ @endforeach +
+ +
+ +@endsection diff --git a/resources/views/front/media-library.blade.php b/resources/views/front/media-library.blade.php new file mode 100644 index 0000000..1c7f2a3 --- /dev/null +++ b/resources/views/front/media-library.blade.php @@ -0,0 +1,103 @@ +@extends('layouts.app') + +@section('content') + + @php + // TEMPORARY DATA MOCKUP + $media = [ + [ + 'title' => "Qu’est ce que la gouvernance ?", + 'type' => 'video', + 'image' => 'https://odl.paris.cubedesigners.com/storage/46/conversions/VIDEO2-poster.jpg', + 'file' => '#', + 'theme' => [ + 'id' => 1, + 'title' => 'Gouvernance', + 'color' => '#FA4E66', + ], + ], + [ + 'title' => 'Les outils de communication', + 'type' => 'video', + 'image' => 'https://odl.paris.cubedesigners.com/storage/4/conversions/Big-rock-at-the-beach-poster.jpg', + 'file' => '#', + 'theme' => [ + 'id' => 2, + 'title' => 'Communication', + 'color' => '#FBB100', + ], + ], + [ + 'title' => "Une organisation à plusieurs niveaux", + 'type' => 'video', + 'image' => 'https://odl.paris.cubedesigners.com/storage/46/conversions/VIDEO2-poster.jpg', + 'file' => '#', + 'theme' => [ + 'id' => 3, + 'title' => 'Organisation', + 'color' => '#7A2AA1', + ], + ], + [ + 'title' => 'Système d’information', + 'type' => 'video', + 'image' => 'https://odl.paris.cubedesigners.com/storage/4/conversions/Big-rock-at-the-beach-poster.jpg', + 'file' => '#', + 'theme' => [ + 'id' => 4, + 'title' => 'Système d’information', + 'color' => '#2AB3C9', + ], + ], + [ + 'title' => "Qu’est ce que la gouvernance ?", + 'type' => 'video', + 'image' => 'https://odl.paris.cubedesigners.com/storage/46/conversions/VIDEO2-poster.jpg', + 'file' => '#', + 'theme' => [ + 'id' => 1, + 'title' => 'Gouvernance', + 'color' => '#FA4E66', + ], + ], + [ + 'title' => 'Les outils de communication', + 'type' => 'video', + 'image' => 'https://odl.paris.cubedesigners.com/storage/4/conversions/Big-rock-at-the-beach-poster.jpg', + 'file' => '#', + 'theme' => [ + 'id' => 2, + 'title' => 'Communication', + 'color' => '#FBB100', + ], + ], + ]; + @endphp + +

Médiathèque

+ + {{-- FILTERS --}} +
+ Filtrer +
+ + {{-- MEDIA LIBRARY GRID --}} +
+ @foreach ($media as $item) +
+
+ {{-- TODO: play button --}} + {{-- TODO: media length --}} +
+
+ {{ $item['theme']['title'] }} +
+
+ {{ $item['title'] }} +
+
+ @endforeach + +
+ +@endsection diff --git a/resources/views/front/resources.blade.php b/resources/views/front/resources.blade.php new file mode 100644 index 0000000..5ab00b1 --- /dev/null +++ b/resources/views/front/resources.blade.php @@ -0,0 +1,164 @@ +@extends('layouts.app') + +@section('content') + + @php + // TEMPORARY DATA MOCKUP + $title = 'Ressources'; + $subtitle = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec rhoncus tellus ipsum.'; + $documents = [ + [ + 'document_title' => "Cœur de l'offre", + 'document_subtitle' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec rhoncus tellus ipsum, vel elementum eros vehicula quis.', + 'document_image' => 'https://odl.paris.cubedesigners.com/storage/107/groupe-133-at-2x.png', + 'document_pdf' => '#', + ], + [ + 'document_title' => 'Offre détaillée', + 'document_subtitle' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec rhoncus tellus ipsum, vel elementum eros vehicula quis.', + 'document_image' => 'https://odl.paris.cubedesigners.com/storage/108/groupe-134-at-2x.png', + 'document_pdf' => '#', + ], + ]; + + $memo_part_title = 'Les Mémos'; + $chapters = [ + [ + 'chapter_title' => 'Chaptire 1', + 'subchapters' => [ + [ + 'subchapter_title' => '1.1 Sous chapitre', + 'subchapter_subtitle' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec rhoncus tellus ipsum, vel elementum eros vehicula quis.', + 'subchapter_memos' => [ + [ + 'memo_title' => 'Lorem ipsum dolor sit', + 'memo_pdf' => 'memo1.pdf', + 'memo_image' => 'https://odl.paris.cubedesigners.com/storage/107/groupe-133-at-2x.png', + ], + [ + 'memo_title' => 'Lorem ipsum dolor sit', + 'memo_pdf' => 'memo2.pdf', + 'memo_image' => 'https://odl.paris.cubedesigners.com/storage/108/groupe-134-at-2x.png', + ], + ], + ], + [ + 'subchapter_title' => '1.2 Sous chapitre', + 'subchapter_subtitle' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec rhoncus tellus ipsum, vel elementum eros vehicula quis.', + 'subchapter_memos' => [ + [ + 'memo_title' => 'Lorem ipsum dolor sit', + 'memo_pdf' => 'memo1.pdf', + 'memo_image' => 'https://odl.paris.cubedesigners.com/storage/107/groupe-133-at-2x.png', + ], + [ + 'memo_title' => 'Lorem ipsum dolor sit', + 'memo_pdf' => 'memo2.pdf', + 'memo_image' => 'https://odl.paris.cubedesigners.com/storage/108/groupe-134-at-2x.png', + ], + [ + 'memo_title' => 'Lorem ipsum dolor sit', + 'memo_pdf' => 'memo3.pdf', + 'memo_image' => 'https://odl.paris.cubedesigners.com/storage/108/groupe-134-at-2x.png', + ], + ], + ], + ], + ], + [ + 'chapter_title' => 'Chaptire 2', + 'subchapters' => [ + [ + 'subchapter_title' => '2.1 Sous chapitre', + 'subchapter_subtitle' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec rhoncus tellus ipsum, vel elementum eros vehicula quis.', + 'subchapter_memos' => [ + [ + 'memo_title' => 'Lorem ipsum dolor sit', + 'memo_pdf' => 'memo1.pdf', + 'memo_image' => 'https://odl.paris.cubedesigners.com/storage/107/groupe-133-at-2x.png', + ], + [ + 'memo_title' => 'Lorem ipsum dolor sit', + 'memo_pdf' => 'memo2.pdf', + 'memo_image' => 'https://odl.paris.cubedesigners.com/storage/108/groupe-134-at-2x.png', + ], + [ + 'memo_title' => 'Lorem ipsum dolor sit', + 'memo_pdf' => 'memo2.pdf', + 'memo_image' => 'https://odl.paris.cubedesigners.com/storage/108/groupe-134-at-2x.png', + ], + ], + ], + [ + 'subchapter_title' => '2.2 Sous chapitre', + 'subchapter_subtitle' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec rhoncus tellus ipsum, vel elementum eros vehicula quis.', + 'subchapter_memos' => [ + [ + 'memo_title' => 'Lorem ipsum dolor sit', + 'memo_pdf' => 'memo1.pdf', + 'memo_image' => 'https://odl.paris.cubedesigners.com/storage/107/groupe-133-at-2x.png', + ], + [ + 'memo_title' => 'Lorem ipsum dolor sit', + 'memo_pdf' => 'memo2.pdf', + 'memo_image' => 'https://odl.paris.cubedesigners.com/storage/108/groupe-134-at-2x.png', + ], + ], + ], + ], + ], + ]; + @endphp + +

{{ $title }}

+

{{ $subtitle }}

+ + {{-- DOCUMENTS --}} +
+ @foreach($documents as $doc) +
+ {{ $doc['document_title'] }} +
+

{{ $doc['document_title'] }}

+

{{ $doc['document_subtitle'] }}

+ Visualiser +
+
+ @endforeach +
+ + {{-- MEMOS --}} +

+ + {{ $memo_part_title }} + +

+ + + {{-- CHAPTERS --}} + @foreach ($chapters as $chapter) +
+

{{ $chapter['chapter_title'] }}

+ + {{-- SUB-CHAPTERS --}} + @foreach ($chapter['subchapters'] as $subchapter) +

{{ $subchapter['subchapter_title'] }}

+

{{ $subchapter['subchapter_subtitle'] }}

+ + {{-- MEMOS --}} +
+ @foreach ($subchapter['subchapter_memos'] as $memo) +
+ {{ $memo['memo_title'] }} +
+

{{ $memo['memo_title'] }}

+ +
+
+ @endforeach +
+ @endforeach +
+ @endforeach + +@endsection diff --git a/routes/web.php b/routes/web.php index 00e3dff..ffd5f09 100644 --- a/routes/web.php +++ b/routes/web.php @@ -13,4 +13,12 @@ Route::group([ Route::any('tools/{tool}/{args?}', 'ToolsController@index')->where(['args' => '.*']); }); -Route::get('test','\App\Http\Controllers\Admin\ToolsController@test'); +Route::group([ + 'prefix' => 'front', + 'middleware' => ['web', config('backpack.base.middleware_key', 'admin')], + 'namespace' => '\App\Http\Controllers\Admin', +], function () { // custom admin routes + Route::view('/', 'front.home'); + Route::view('/ressources', 'front.resources'); + Route::view('/mediatheque', 'front.media-library'); +}); -- 2.39.5