]> _ Git - odl.git/commitdiff
WIP #4820 @1.5
authorStephen Cameron <stephen@cubedesigners.com>
Mon, 25 Oct 2021 16:38:14 +0000 (18:38 +0200)
committerStephen Cameron <stephen@cubedesigners.com>
Mon, 25 Oct 2021 16:38:14 +0000 (18:38 +0200)
resources/views/media-library.blade.php [new file with mode: 0644]
routes/web.php

diff --git a/resources/views/media-library.blade.php b/resources/views/media-library.blade.php
new file mode 100644 (file)
index 0000000..1c7f2a3
--- /dev/null
@@ -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
+
+    <h1 class="uppercase">Médiathèque</h1>
+
+    {{-- FILTERS --}}
+    <div class="mt-10">
+        <a href="#" class="inline-block bg-black hover:bg-blue text-white font-secondary font-medium leading-none py-4 px-6 rounded-full">Filtrer</a>
+    </div>
+
+    {{-- MEDIA LIBRARY GRID --}}
+    <div class="mt-10 grid grid-cols-4 gap-x-5 gap-y-16">
+        @foreach ($media as $item)
+            <div class="media-item" data-type="{{ $item['type'] }}" data-theme="{{ $item['theme']['id'] }}">
+                <div class="media-item-image relative bg-cover bg-no-repeat rounded-md pb-[56.25%]" style="background-image:url({{ $item['image'] }})">
+                    {{-- TODO: play button --}}
+                    {{-- TODO: media length --}}
+                </div>
+                <div class="mt-2.5 font-secondary font-medium text-xs leading-none" style="color:{{ $item['theme']['color'] }}">
+                    {{ $item['theme']['title'] }}
+                </div>
+                <div class="mt-1.5 font-semibold leading-snug">
+                    {{ $item['title'] }}
+                </div>
+            </div>
+        @endforeach
+
+    </div>
+
+@endsection
index 82ec5e57fada2e1944cc351088a3bcb0d8f52745..00e3dffd7c183c49f289ca105ed72c8898bd3b71 100644 (file)
@@ -9,6 +9,7 @@ Route::group([
 ], function () { // custom admin routes
     Route::view('/', 'home');
     Route::view('/ressources', 'resources');
+    Route::view('/mediatheque', 'media-library');
     Route::any('tools/{tool}/{args?}', 'ToolsController@index')->where(['args' => '.*']);
 });