projectspro20 commited on
Commit
f461a44
·
verified ·
1 Parent(s): 4d4e1a5

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

Browse files
Files changed (3) hide show
  1. create-lesson.html +3 -4
  2. index.html +3 -3
  3. lesson-detail.html +164 -0
create-lesson.html CHANGED
@@ -74,16 +74,15 @@
74
 
75
  <!-- Form Actions -->
76
  <div class="flex justify-end space-x-4 pt-4">
77
- <button type="button"
78
- class="px-6 py-2 border border-gray-300 rounded-lg text-gray-700 font-medium hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 transition">
79
  Cancel
80
- </button>
81
  <button type="submit"
82
  class="px-6 py-2 bg-indigo-600 rounded-lg text-white font-medium hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 transition">
83
  Create Lesson
84
  </button>
85
  </div>
86
- </form>
87
  </div>
88
  </div>
89
  </main>
 
74
 
75
  <!-- Form Actions -->
76
  <div class="flex justify-end space-x-4 pt-4">
77
+ <a href="lesson-detail.html" class="px-6 py-2 border border-gray-300 rounded-lg text-gray-700 font-medium hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 transition">
 
78
  Cancel
79
+ </a>
80
  <button type="submit"
81
  class="px-6 py-2 bg-indigo-600 rounded-lg text-white font-medium hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 transition">
82
  Create Lesson
83
  </button>
84
  </div>
85
+ </form>
86
  </div>
87
  </div>
88
  </main>
index.html CHANGED
@@ -206,7 +206,7 @@
206
  </div>
207
  <div class="module-content mt-4 ml-16" :class="{ 'expanded': expanded }">
208
  <div class="space-y-4">
209
- <div class="flex items-center p-3 rounded-lg bg-gray-50 hover:bg-gray-100 cursor-pointer">
210
  <div class="flex-shrink-0 w-8 h-8 rounded-full bg-green-100 flex items-center justify-center">
211
  <i data-feather="check" class="w-4 h-4 text-green-600"></i>
212
  </div>
@@ -215,8 +215,8 @@
215
  <p class="text-sm text-gray-500">15 min • Video</p>
216
  </div>
217
  <i data-feather="play" class="w-5 h-5 text-indigo-500"></i>
218
- </div>
219
- <div class="flex items-center p-3 rounded-lg bg-gray-50 hover:bg-gray-100 cursor-pointer">
220
  <div class="flex-shrink-0 w-8 h-8 rounded-full bg-green-100 flex items-center justify-center">
221
  <i data-feather="check" class="w-4 h-4 text-green-600"></i>
222
  </div>
 
206
  </div>
207
  <div class="module-content mt-4 ml-16" :class="{ 'expanded': expanded }">
208
  <div class="space-y-4">
209
+ <a href="lesson-detail.html" class="flex items-center p-3 rounded-lg bg-gray-50 hover:bg-gray-100">
210
  <div class="flex-shrink-0 w-8 h-8 rounded-full bg-green-100 flex items-center justify-center">
211
  <i data-feather="check" class="w-4 h-4 text-green-600"></i>
212
  </div>
 
215
  <p class="text-sm text-gray-500">15 min • Video</p>
216
  </div>
217
  <i data-feather="play" class="w-5 h-5 text-indigo-500"></i>
218
+ </a>
219
+ <div class="flex items-center p-3 rounded-lg bg-gray-50 hover:bg-gray-100 cursor-pointer">
220
  <div class="flex-shrink-0 w-8 h-8 rounded-full bg-green-100 flex items-center justify-center">
221
  <i data-feather="check" class="w-4 h-4 text-green-600"></i>
222
  </div>
lesson-detail.html ADDED
@@ -0,0 +1,164 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>Lesson Detail - LearnFlow</title>
7
+ <script src="https://cdn.tailwindcss.com"></script>
8
+ <script src="https://unpkg.com/feather-icons"></script>
9
+ <link href="https://cdn.jsdelivr.net/npm/@tailwindcss/custom-forms@0.2.1/dist/custom-forms.min.css" rel="stylesheet">
10
+ <style>
11
+ .video-container {
12
+ position: relative;
13
+ padding-bottom: 56.25%;
14
+ height: 0;
15
+ overflow: hidden;
16
+ }
17
+ .video-container iframe {
18
+ position: absolute;
19
+ top: 0;
20
+ left: 0;
21
+ width: 100%;
22
+ height: 100%;
23
+ }
24
+ </style>
25
+ </head>
26
+ <body class="bg-gray-50 font-sans antialiased">
27
+ <div class="max-w-4xl mx-auto py-8 px-4">
28
+ <!-- Lesson Header -->
29
+ <div class="mb-8">
30
+ <div class="flex items-center justify-between mb-4">
31
+ <h1 class="text-3xl font-bold text-gray-900">Laravel Routing Basics</h1>
32
+ <div class="flex items-center space-x-2">
33
+ <span class="inline-flex items-center px-3 py-1 rounded-full text-sm font-medium bg-indigo-100 text-indigo-800">
34
+ <i data-feather="clock" class="w-4 h-4 mr-1"></i>
35
+ 15 min
36
+ </span>
37
+ </div>
38
+ </div>
39
+ <p class="text-gray-600">Learn how to define and manage routes in Laravel applications.</p>
40
+ </div>
41
+
42
+ <!-- Video Section -->
43
+ <div class="mb-8 bg-white rounded-xl shadow-sm overflow-hidden" x-data="{ hasVideo: true }">
44
+ <div x-show="hasVideo">
45
+ <div class="video-container bg-black">
46
+ <iframe src="https://www.youtube.com/embed/dQw4w9WgXcQ" frameborder="0" allowfullscreen></iframe>
47
+ </div>
48
+ <div class="p-4 border-t border-gray-200">
49
+ <div class="flex justify-between items-center">
50
+ <span class="text-sm text-gray-500">Video Lesson</span>
51
+ <button @click="hasVideo = false" class="text-gray-400 hover:text-gray-600">
52
+ <i data-feather="x" class="w-5 h-5"></i>
53
+ </button>
54
+ </div>
55
+ </div>
56
+ </div>
57
+ <div x-show="!hasVideo" class="p-12 text-center bg-gray-100">
58
+ <div class="mx-auto max-w-md">
59
+ <i data-feather="video-off" class="w-12 h-12 mx-auto text-gray-400 mb-4"></i>
60
+ <h3 class="text-lg font-medium text-gray-900 mb-2">Video Hidden</h3>
61
+ <p class="text-gray-600 mb-4">This lesson contains a video that is currently hidden.</p>
62
+ <button @click="hasVideo = true" class="px-4 py-2 bg-indigo-600 rounded-lg text-white font-medium hover:bg-indigo-700">
63
+ Show Video
64
+ </button>
65
+ </div>
66
+ </div>
67
+ </div>
68
+
69
+ <!-- Lesson Content -->
70
+ <div class="bg-white rounded-xl shadow-sm overflow-hidden mb-8">
71
+ <div class="p-6">
72
+ <div class="prose max-w-none">
73
+ <h2>Introduction to Routing</h2>
74
+ <p>Routing is one of the fundamental concepts in Laravel. It's how your application responds to client requests to specific URIs.</p>
75
+
76
+ <h3>Basic Routing</h3>
77
+ <p>The most basic Laravel routes accept a URI and a closure:</p>
78
+ <pre class="bg-gray-100 p-4 rounded-lg overflow-x-auto"><code>Route::get('/', function () {
79
+ return 'Hello World';
80
+ });</code></pre>
81
+
82
+ <h3>Route Parameters</h3>
83
+ <p>Sometimes you will need to capture segments of the URI within your route. You may do so by defining route parameters:</p>
84
+ <pre class="bg-gray-100 p-4 rounded-lg overflow-x-auto"><code>Route::get('user/{id}', function ($id) {
85
+ return 'User '.$id;
86
+ });</code></pre>
87
+
88
+ <h3>Named Routes</h3>
89
+ <p>Named routes allow convenient generation of URLs or redirects for specific routes:</p>
90
+ <pre class="bg-gray-100 p-4 rounded-lg overflow-x-auto"><code>Route::get('user/profile', function () {
91
+ // Your logic here
92
+ })->name('profile');</code></pre>
93
+ </div>
94
+ </div>
95
+ </div>
96
+
97
+ <!-- Attachments -->
98
+ <div class="bg-white rounded-xl shadow-sm overflow-hidden">
99
+ <div class="px-6 py-4 border-b border-gray-200">
100
+ <h3 class="text-lg font-medium text-gray-900 flex items-center">
101
+ <i data-feather="paperclip" class="w-5 h-5 mr-2"></i>
102
+ Lesson Attachments
103
+ </h3>
104
+ </div>
105
+ <div class="divide-y divide-gray-200">
106
+ <div class="p-4 hover:bg-gray-50">
107
+ <div class="flex items-center">
108
+ <div class="flex-shrink-0">
109
+ <div class="w-10 h-10 rounded-full bg-indigo-100 flex items-center justify-center">
110
+ <i data-feather="file-text" class="w-5 h-5 text-indigo-600"></i>
111
+ </div>
112
+ </div>
113
+ <div class="ml-4 flex-1">
114
+ <h4 class="text-sm font-medium text-gray-900">Routing Cheat Sheet.pdf</h4>
115
+ <p class="text-sm text-gray-500">124 KB • PDF</p>
116
+ </div>
117
+ <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">
118
+ Download
119
+ </a>
120
+ </div>
121
+ </div>
122
+ <div class="p-4 hover:bg-gray-50">
123
+ <div class="flex items-center">
124
+ <div class="flex-shrink-0">
125
+ <div class="w-10 h-10 rounded-full bg-blue-100 flex items-center justify-center">
126
+ <i data-feather="code" class="w-5 h-5 text-blue-600"></i>
127
+ </div>
128
+ </div>
129
+ <div class="ml-4 flex-1">
130
+ <h4 class="text-sm font-medium text-gray-900">Example Routes.zip</h4>
131
+ <p class="text-sm text-gray-500">2.1 MB • ZIP Archive</p>
132
+ </div>
133
+ <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">
134
+ Download
135
+ </a>
136
+ </div>
137
+ </div>
138
+ </div>
139
+ </div>
140
+
141
+ <!-- Navigation -->
142
+ <div class="mt-8 flex justify-between">
143
+ <a href="#" class="px-6 py-3 bg-white border border-gray-300 rounded-lg text-gray-700 font-medium hover:bg-gray-50">
144
+ <div class="flex items-center space-x-2">
145
+ <i data-feather="arrow-left" class="w-5 h-5"></i>
146
+ <span>Previous Lesson</span>
147
+ </div>
148
+ </a>
149
+ <a href="#" class="px-6 py-3 bg-indigo-600 rounded-lg text-white font-medium hover:bg-indigo-700">
150
+ <div class="flex items-center space-x-2">
151
+ <span>Next Lesson</span>
152
+ <i data-feather="arrow-right" class="w-5 h-5"></i>
153
+ </div>
154
+ </a>
155
+ </div>
156
+ </div>
157
+
158
+ <script>
159
+ document.addEventListener('DOMContentLoaded', function() {
160
+ feather.replace();
161
+ });
162
+ </script>
163
+ </body>
164
+ </html>