In templates, move survey content out into a separate component

This commit is contained in:
Steve Sanderson 2018-03-21 16:22:32 +00:00
parent fb3beab270
commit 3b5ce7f4a7
4 changed files with 34 additions and 14 deletions

View File

@ -4,10 +4,4 @@
Welcome to your new app.
<div class="alert alert-survey" role="alert">
<span class="glyphicon glyphicon-ok-circle" aria-hidden="true"></span>
<strong>How is Blazor working for you?</strong>
Please take our
<a target="_blank" class="alert-link" href="https://go.microsoft.com/fwlink/?linkid=870381">brief survey</a>
and tell us what you think.
</div>
<SurveyPrompt Title="How is Blazor working for you?" />

View File

@ -0,0 +1,16 @@
<div class="alert alert-survey" role="alert">
<span class="glyphicon glyphicon-ok-circle" aria-hidden="true"></span>
<strong>@Title</strong>
Please take our
<a target="_blank" class="alert-link" href="https://go.microsoft.com/fwlink/?linkid=870381">
brief survey
</a>
and tell us what you think.
</div>
@functions
{
// This is to demonstrate how a parent component can supply parameters
public string Title { get; set; }
}

View File

@ -4,10 +4,4 @@
Welcome to your new app.
<div class="alert alert-survey" role="alert">
<span class="glyphicon glyphicon-ok-circle" aria-hidden="true"></span>
<strong>How is Blazor working for you?</strong>
Please take our
<a target="_blank" class="alert-link" href="https://go.microsoft.com/fwlink/?linkid=870381">brief survey</a>
and tell us what you think.
</div>
<SurveyPrompt Title="How is Blazor working for you?" />

View File

@ -0,0 +1,16 @@
<div class="alert alert-survey" role="alert">
<span class="glyphicon glyphicon-ok-circle" aria-hidden="true"></span>
<strong>@Title</strong>
Please take our
<a target="_blank" class="alert-link" href="https://go.microsoft.com/fwlink/?linkid=870381">
brief survey
</a>
and tell us what you think.
</div>
@functions
{
// This is to demonstrate how a parent component can supply parameters
public string Title { get; set; }
}