-
-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathInstallationSteps.razor
More file actions
27 lines (25 loc) · 1.34 KB
/
InstallationSteps.razor
File metadata and controls
27 lines (25 loc) · 1.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
@namespace LumexUI.Docs.Client.Components
<ol class="mt-12 mb-16 space-y-2" style="counter-reset: step;">
@if( Steps is not null )
{
foreach( var step in Steps )
{
<li class="relative pl-10 pb-8 xl:grid xl:grid-cols-5 xl:gap-10 before:absolute before:content-[counter(step)] before:left-0 before:flex before:items-center before:justify-center before:size-6 before:text-[0.625rem] before:font-bold before:text-foreground before:rounded-md before:shadow-xs before:ring before:ring-default-900/5 after:absolute after:top-8 after:bottom-0 after:left-3 after:w-px after:bg-divider last:after:w-0 dark:before:bg-default-200 dark:before:highlight-white/15" style="counter-increment: step;">
<div class="mb-6 xl:mb-0 xl:col-span-2">
<h4 class="mb-2 text-foreground-900 text-sm font-semibold leading-6">
@step.Title
</h4>
<div class="prose prose-zinc prose-sm dark:prose-invert">
@step.Body
</div>
</div>
<div class="relative z-10 -ml-10 rounded-2xl shadow-lg xl:col-span-3 xl:ml-0">
<CodeSnippet Code="@step.Code" />
</div>
</li>
}
}
</ol>
@code {
[Parameter] public Step[]? Steps { get; set; }
}