create Individual Detail page for lesson, it can have Title. Video, Body and attachments, Not all lessons will have a video, no header or footer is needed
f461a44 verified Download lesson-detail.html from projectspro20/learnflow-course-module-explorer: direct link, hf CLI and curl.
- Browser
- Download file 7.89 kB
-
https://huggingface.co/spaces/projectspro20/learnflow-course-module-explorer/resolve/main/lesson-detail.html
- Command line
-
hf download hf://spaces/projectspro20/learnflow-course-module-explorer/lesson-detail.html
-
curl -L -o lesson-detail.html https://huggingface.co/spaces/projectspro20/learnflow-course-module-explorer/resolve/main/lesson-detail.html
7.89 kB
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Lesson Detail - LearnFlow</title> | |
| <script src="https://cdn.tailwindcss.com"></script> | |
| <script src="https://unpkg.com/feather-icons"></script> | |
| <link href="https://cdn.jsdelivr.net/npm/@tailwindcss/custom-forms@0.2.1/dist/custom-forms.min.css" rel="stylesheet"> | |
| <style> | |
| .video-container { | |
| position: relative; | |
| padding-bottom: 56.25%; | |
| height: 0; | |
| overflow: hidden; | |
| } | |
| .video-container iframe { | |
| position: absolute; | |
| top: 0; | |
| left: 0; | |
| width: 100%; | |
| height: 100%; | |
| } | |
| </style> | |
| </head> | |
| <body class="bg-gray-50 font-sans antialiased"> | |
| <div class="max-w-4xl mx-auto py-8 px-4"> | |
| <!-- Lesson Header --> | |
| <div class="mb-8"> | |
| <div class="flex items-center justify-between mb-4"> | |
| <h1 class="text-3xl font-bold text-gray-900">Laravel Routing Basics</h1> | |
| <div class="flex items-center space-x-2"> | |
| <span class="inline-flex items-center px-3 py-1 rounded-full text-sm font-medium bg-indigo-100 text-indigo-800"> | |
| <i data-feather="clock" class="w-4 h-4 mr-1"></i> | |
| 15 min | |
| </span> | |
| </div> | |
| </div> | |
| <p class="text-gray-600">Learn how to define and manage routes in Laravel applications.</p> | |
| </div> | |
| <!-- Video Section --> | |
| <div class="mb-8 bg-white rounded-xl shadow-sm overflow-hidden" x-data="{ hasVideo: true }"> | |
| <div x-show="hasVideo"> | |
| <div class="video-container bg-black"> | |
| <iframe src="https://www.youtube.com/embed/dQw4w9WgXcQ" frameborder="0" allowfullscreen></iframe> | |
| </div> | |
| <div class="p-4 border-t border-gray-200"> | |
| <div class="flex justify-between items-center"> | |
| <span class="text-sm text-gray-500">Video Lesson</span> | |
| <button @click="hasVideo = false" class="text-gray-400 hover:text-gray-600"> | |
| <i data-feather="x" class="w-5 h-5"></i> | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| <div x-show="!hasVideo" class="p-12 text-center bg-gray-100"> | |
| <div class="mx-auto max-w-md"> | |
| <i data-feather="video-off" class="w-12 h-12 mx-auto text-gray-400 mb-4"></i> | |
| <h3 class="text-lg font-medium text-gray-900 mb-2">Video Hidden</h3> | |
| <p class="text-gray-600 mb-4">This lesson contains a video that is currently hidden.</p> | |
| <button @click="hasVideo = true" class="px-4 py-2 bg-indigo-600 rounded-lg text-white font-medium hover:bg-indigo-700"> | |
| Show Video | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Lesson Content --> | |
| <div class="bg-white rounded-xl shadow-sm overflow-hidden mb-8"> | |
| <div class="p-6"> | |
| <div class="prose max-w-none"> | |
| <h2>Introduction to Routing</h2> | |
| <p>Routing is one of the fundamental concepts in Laravel. It's how your application responds to client requests to specific URIs.</p> | |
| <h3>Basic Routing</h3> | |
| <p>The most basic Laravel routes accept a URI and a closure:</p> | |
| <pre class="bg-gray-100 p-4 rounded-lg overflow-x-auto"><code>Route::get('/', function () { | |
| return 'Hello World'; | |
| });</code></pre> | |
| <h3>Route Parameters</h3> | |
| <p>Sometimes you will need to capture segments of the URI within your route. You may do so by defining route parameters:</p> | |
| <pre class="bg-gray-100 p-4 rounded-lg overflow-x-auto"><code>Route::get('user/{id}', function ($id) { | |
| return 'User '.$id; | |
| });</code></pre> | |
| <h3>Named Routes</h3> | |
| <p>Named routes allow convenient generation of URLs or redirects for specific routes:</p> | |
| <pre class="bg-gray-100 p-4 rounded-lg overflow-x-auto"><code>Route::get('user/profile', function () { | |
| // Your logic here | |
| })->name('profile');</code></pre> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Attachments --> | |
| <div class="bg-white rounded-xl shadow-sm overflow-hidden"> | |
| <div class="px-6 py-4 border-b border-gray-200"> | |
| <h3 class="text-lg font-medium text-gray-900 flex items-center"> | |
| <i data-feather="paperclip" class="w-5 h-5 mr-2"></i> | |
| Lesson Attachments | |
| </h3> | |
| </div> | |
| <div class="divide-y divide-gray-200"> | |
| <div class="p-4 hover:bg-gray-50"> | |
| <div class="flex items-center"> | |
| <div class="flex-shrink-0"> | |
| <div class="w-10 h-10 rounded-full bg-indigo-100 flex items-center justify-center"> | |
| <i data-feather="file-text" class="w-5 h-5 text-indigo-600"></i> | |
| </div> | |
| </div> | |
| <div class="ml-4 flex-1"> | |
| <h4 class="text-sm font-medium text-gray-900">Routing Cheat Sheet.pdf</h4> | |
| <p class="text-sm text-gray-500">124 KB • PDF</p> | |
| </div> | |
| <a href="#" class="ml-4 px-3 py-1 border border-gray-300 rounded-lg text-sm font-medium text-gray-700 hover:bg-gray-50"> | |
| Download | |
| </a> | |
| </div> | |
| </div> | |
| <div class="p-4 hover:bg-gray-50"> | |
| <div class="flex items-center"> | |
| <div class="flex-shrink-0"> | |
| <div class="w-10 h-10 rounded-full bg-blue-100 flex items-center justify-center"> | |
| <i data-feather="code" class="w-5 h-5 text-blue-600"></i> | |
| </div> | |
| </div> | |
| <div class="ml-4 flex-1"> | |
| <h4 class="text-sm font-medium text-gray-900">Example Routes.zip</h4> | |
| <p class="text-sm text-gray-500">2.1 MB • ZIP Archive</p> | |
| </div> | |
| <a href="#" class="ml-4 px-3 py-1 border border-gray-300 rounded-lg text-sm font-medium text-gray-700 hover:bg-gray-50"> | |
| Download | |
| </a> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Navigation --> | |
| <div class="mt-8 flex justify-between"> | |
| <a href="#" class="px-6 py-3 bg-white border border-gray-300 rounded-lg text-gray-700 font-medium hover:bg-gray-50"> | |
| <div class="flex items-center space-x-2"> | |
| <i data-feather="arrow-left" class="w-5 h-5"></i> | |
| <span>Previous Lesson</span> | |
| </div> | |
| </a> | |
| <a href="#" class="px-6 py-3 bg-indigo-600 rounded-lg text-white font-medium hover:bg-indigo-700"> | |
| <div class="flex items-center space-x-2"> | |
| <span>Next Lesson</span> | |
| <i data-feather="arrow-right" class="w-5 h-5"></i> | |
| </div> | |
| </a> | |
| </div> | |
| </div> | |
| <script> | |
| document.addEventListener('DOMContentLoaded', function() { | |
| feather.replace(); | |
| }); | |
| </script> | |
| </body> | |
| </html> |