...
Once the file is created, you can put your own HTML code that you want to be displayed there.
3. Example of override - with usage of username
Here is an example of the simpliest welcome page with a usage of username:
Code Block | ||
---|---|---|
| ||
@model iTsense.Moving.SelfService.Features.StaticPages.Models.Views.HomePageViewModel
<v-card outlined>
<v-card-title>
Hello @Model.UserDisplayName
</v-card-title>
<v-card-text class="mt-2 text-sm-body-2 text-caption grow">
Test description
</v-card-text>
</v-card> |
that will result into:
...
Note that if you want to display the username of currently logged person, you need the same model declaration in line 1, and also @Model.UserDisplayName
usage from line 5. Keep in mind to preserve the html structure of the v-card
with v-card-title
and v-card-text
, so you will keep the same design.