|
1 | 1 | <x-filament-panels::page> |
2 | 2 | @if($step->text) |
3 | | - <div class="text-gray-600 markdown-content dark:text-gray-400"> |
4 | | - {!! \Illuminate\Support\Str::markdown($step->text) !!} |
5 | | - </div> |
| 3 | + @if(is_null($step->material_type)) |
| 4 | + {{-- Text-only step: fi-prose styles markdown output (headings, bold, lists, etc.) --}} |
| 5 | + <x-filament::section class="max-w-3xl mx-auto"> |
| 6 | + <div class="fi-prose"> |
| 7 | + {!! \Illuminate\Support\Str::markdown($step->text) !!} |
| 8 | + </div> |
| 9 | + </x-filament::section> |
| 10 | + @else |
| 11 | + <x-filament::section> |
| 12 | + <div class="fi-prose"> |
| 13 | + {!! \Illuminate\Support\Str::markdown($step->text) !!} |
| 14 | + </div> |
| 15 | + </x-filament::section> |
| 16 | + @endif |
6 | 17 | @endif |
7 | 18 |
|
8 | | - <style> |
9 | | - .markdown-content { |
10 | | - font-size: 0.875rem; |
11 | | - line-height: 1.5; |
12 | | - } |
13 | | -
|
14 | | - .markdown-content h1 { |
15 | | - font-size: 1.5rem; |
16 | | - font-weight: 700; |
17 | | - margin-bottom: 1rem; |
18 | | - margin-top: 1.5rem; |
19 | | - } |
20 | | -
|
21 | | - .markdown-content h2 { |
22 | | - font-size: 1.25rem; |
23 | | - font-weight: 700; |
24 | | - margin-bottom: 0.75rem; |
25 | | - margin-top: 1.25rem; |
26 | | - } |
27 | | -
|
28 | | - .markdown-content h3 { |
29 | | - font-size: 1.125rem; |
30 | | - font-weight: 600; |
31 | | - margin-bottom: 0.5rem; |
32 | | - margin-top: 1rem; |
33 | | - } |
34 | | -
|
35 | | - .markdown-content p { |
36 | | - margin-bottom: 0.75rem; |
37 | | - } |
38 | | -
|
39 | | - .markdown-content ul, .markdown-content ol { |
40 | | - margin-bottom: 0.75rem; |
41 | | - margin-left: 1.5rem; |
42 | | - } |
43 | | -
|
44 | | - .markdown-content ul { |
45 | | - list-style-type: disc; |
46 | | - } |
47 | | -
|
48 | | - .markdown-content ol { |
49 | | - list-style-type: decimal; |
50 | | - } |
51 | | -
|
52 | | - .markdown-content li { |
53 | | - margin-bottom: 0.25rem; |
54 | | - display: list-item; |
55 | | - } |
56 | | -
|
57 | | - .markdown-content blockquote { |
58 | | - border-left: 4px solid #d1d5db; |
59 | | - padding-left: 1rem; |
60 | | - font-style: italic; |
61 | | - margin: 0.75rem 0; |
62 | | - } |
63 | | -
|
64 | | - .markdown-content code { |
65 | | - background-color: #f3f4f6; |
66 | | - padding: 0.125rem 0.25rem; |
67 | | - border-radius: 0.25rem; |
68 | | - font-size: 0.875rem; |
69 | | - } |
70 | | -
|
71 | | - .dark .markdown-content code { |
72 | | - background-color: #374151; |
73 | | - } |
74 | | -
|
75 | | - .markdown-content pre { |
76 | | - background-color: #f3f4f6; |
77 | | - padding: 0.75rem; |
78 | | - border-radius: 0.25rem; |
79 | | - margin-bottom: 0.75rem; |
80 | | - overflow-x: auto; |
81 | | - } |
82 | | -
|
83 | | - .dark .markdown-content pre { |
84 | | - background-color: #374151; |
85 | | - } |
86 | | -
|
87 | | - .markdown-content pre code { |
88 | | - background-color: transparent; |
89 | | - padding: 0; |
90 | | - } |
91 | | -
|
92 | | - .markdown-content a { |
93 | | - color: #2563eb; |
94 | | - text-decoration: none; |
95 | | - } |
96 | | -
|
97 | | - .markdown-content a:hover { |
98 | | - text-decoration: underline; |
99 | | - } |
100 | | -
|
101 | | - .dark .markdown-content a { |
102 | | - color: #60a5fa; |
103 | | - } |
104 | | -
|
105 | | - .markdown-content strong { |
106 | | - font-weight: 600; |
107 | | - } |
108 | | -
|
109 | | - .markdown-content em { |
110 | | - font-style: italic; |
111 | | - } |
112 | | - </style> |
113 | | - |
114 | 19 | @if (is_null($step->material_type)) |
115 | 20 | {{-- Intentionally text-only step: show the next button --}} |
116 | 21 | <x-filament-lms::next-button /> |
|
0 commit comments