Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace usage of obsolete Link property with Href #122

Merged
merged 1 commit into from
Mar 25, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 4 additions & 7 deletions src/TryMudBlazor.Client/Pages/Index/Index.razor
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
@page "/"


<MudLayout Class="try-mudblazor-index">
<MudAppBar Color="Color.Transparent" Fixed="false" Elevation="0">
<div class="brand">Try<span>MudBlazor</span></div>
<MudSpacer />
<MudButton Link="https://mudblazor.com/" Color="Color.Default" Size="Size.Large">MudBlazor</MudButton>
<MudButton Link="https://github.com/MudBlazor/TryMudBlazor" Color="Color.Primary" Size="Size.Large">Source Code</MudButton>
<MudButton Href="https://mudblazor.com/" Color="Color.Default" Size="Size.Large">MudBlazor</MudButton>
<MudButton Href="https://github.com/MudBlazor/TryMudBlazor" Color="Color.Primary" Size="Size.Large">Source Code</MudButton>
</MudAppBar>
<MudMainContent>
<MudContainer Class="my-16" MaxWidth="MaxWidth.Large">
Expand All @@ -20,7 +19,7 @@
A playground for <MudLink Typo="Typo.h4" Href="https://mudblazor.com" Target="_blank">MudBlazor</MudLink> @Version
</MudText>
<div class="px-2 mt-8">
<MudButton Variant="Variant.Filled" Color="Color.Primary" Size="Size.Large" DisableElevation="true" Class="px-6" Link="/snippet">Play now</MudButton>
<MudButton Variant="Variant.Filled" Color="Color.Primary" Size="Size.Large" DisableElevation="true" Class="px-6" Href="/snippet">Play now</MudButton>
</div>
</div>
</MudItem>
Expand All @@ -30,7 +29,7 @@
<MudText Typo="Typo.h5" Class="mud-text-secondary">
Play with MudBlazor components entirely in the browser. Test and experiment anytime, anywhere.
</MudText>
<MudButton Variant="Variant.Text" Color="Color.Primary" Size="Size.Large" Class="ml-n2" Link="/snippet" EndIcon="@Icons.Material.Filled.East">Get started</MudButton>
<MudButton Variant="Variant.Text" Color="Color.Primary" Size="Size.Large" Class="ml-n2" Href="/snippet" EndIcon="@Icons.Material.Filled.East">Get started</MudButton>
<MudPaper Elevation="25" Class="rounded-lg mt-12">
<div class="d-flex align-center py-2 try-mudblazor-codecard rounded-t-lg">
<div class="flex-grow-0 px-1">
Expand Down Expand Up @@ -152,8 +151,6 @@
</MudMainContent>
</MudLayout>



@code {
string Version { get { var v = typeof(MudText).Assembly.GetName().Version; return $"v{v.Major}.{v.Minor}.{v.Build}"; } }
}
Loading