Skip to content

Commit efb7540

Browse files
committed
Added help for extended experimental usages
1 parent 1a5bbfb commit efb7540

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

LinkDotNet.Blog.Web/Shared/Admin/CreateNewBlogPost.razor

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,12 @@
1515
<div class="mb-3">
1616
<label for="short">Short Description</label>
1717
<InputTextArea class="form-control" id="short" @bind-Value="model.ShortDescription" rows="4"/>
18+
<small id="short" class="form-text text-muted">You can use markdown to style your component.</small>
1819
</div>
1920
<div class="mb-3">
2021
<label for="content">Content</label>
2122
<InputTextArea class="form-control" id="content" @bind-Value="model.Content" rows="10" />
23+
<small id="content" class="form-text text-muted">You can use markdown to style your component. Additional features are listed <a @onclick="@(() => FeatureDialog.Open())">here</a></small>
2224
@* <small id="content" class="form-text text-muted">Drag and drop images to upload and insert picture.</small> *@
2325
</div>
2426
<div class="mb-3">
@@ -59,6 +61,21 @@
5961
</div>
6062
</div>
6163
</div>
64+
65+
<ModalDialog @ref="FeatureDialog" Title="Additional Features">
66+
<p>Here you will find a comprehensive list over feature you can use additional to classic markdown</p>
67+
<p>Features marked with <i class="fas fa-flask"></i> are experimental and can change heavily, get removed or the usage changes.</p>
68+
<p>Use with caution and check the changelog</p>
69+
<hr>
70+
<h3 style="display:inline-block">Slide-Show</h3><i class="fas fa-flask"></i>
71+
<p>Will create a slide-show with images specified by the tag.</p>
72+
<strong>Usage:</strong>
73+
<code><pre>&lt;slide-show&gt;
74+
&lt;slide-show-image src="https://picsum.photos/600/200" title="Title 1"&gt;&lt;/slide-show-image&gt;
75+
&lt;slide-show-image src="https://picsum.photos/500/200" title="Title 2"&gt;&lt;/slide-show-image&gt;
76+
&lt;slide-show-image src="https://picsum.photos/550/200" title="Title 3"&gt;&lt;/slide-show-image&gt;
77+
&lt;/slide-show&gt;</pre></code>
78+
</ModalDialog>
6279
@code {
6380
[Parameter]
6481
public BlogPost BlogPost { get; set; }
@@ -72,6 +89,8 @@
7289
[Parameter]
7390
public bool ClearAfterCreated { get; set; } = true;
7491

92+
private ModalDialog FeatureDialog { get; set; }
93+
7594
private CreateNewModel model = new();
7695

7796
protected override void OnParametersSet()

0 commit comments

Comments
 (0)