English| 简体中文
https://blazor-pro.masastack.com
- Dashboard
- eCommerce
- App
- eCommerce
- Todo
- Invoice
- User
- Page
- Login
- Register
- Forgot Password
- Reset Password
- Account Seetings
- 500
- 401
Install Template
dotnet new --install Masa.Template
Create Project
dotnet new masabp -o Masa.Test
dotnet new masabp --mode Wasm -o Masa.TestWasm
dotnet new masabp --mode ServerAndWasm -o Masa.TestRcl
Go to the Server project directory
cd Masa.Test
Run
dotnet run
Introduce styles in wwwroot/index.html
(WebAssembly) or Pages/_Host.cshtml
(Server):
<html lang="en">
<head>
<!--Style-->
<link href="https://github.com/masastack/MASA.Blazor.Pro/blob/main/css/masa-blazor-pro.css" rel="stylesheet">
<!--<link href="https://github.com/masastack/MASA.Blazor.Pro/blob/main/{ASSEMBLY NAME}.styles.css" rel="stylesheet">-->
<link href="https://github.com/masastack/MASA.Blazor.Pro/blob/main/Masa.Blazor.Pro.styles.css" rel="stylesheet">
</head>
</html>
The
masa-blazor-pro.css
file is in the hierarchical directory of the project wwwroot/css/masa-blazor-pro.css
Masa.Blazor.Pro.styles.css
needs to be changed to{ASSEMBLY NAME}.styles.css
, the placeholder{ASSEMBLY NAME}
is the assembly name of the project, see ASP.NET Core Blazor for details CSS isolation
var builder = WebApplication.CreateBuilder(args);
builder.Services.AddMasaBlazor(builder =>
{
builder.UseTheme(option=>
{
option.Primary = "#4318FF";
option.Accent = "#4318FF";
}
);
});
rendering | rendering |
---|---|
Chrome | Firefox | Safari | Microsoft Edge | |
---|---|---|---|---|
iOS | Supported | Supported | Supported | Supported |
Android | Supported | Supported | N/A | Supported |
Chrome | Firefox | Safari | Opera | Microsoft Edge | Internet Explorer | |
---|---|---|---|---|---|---|
Mac | Supported | Supported | Supported | Supported | N/A | N/A |
Linux | Supported | Supported | N/A | N/A | N/A | N/A |
Windows | Supported | Supported | Not supported | Supported | Supported | Supported, IE11+ |
Due to WebAssembly restriction, Blazor WebAssembly doesn't support IE browser, but Blazor Server supports IE 11† with additional polyfills. See official documentation
feat:add MButton
Thanks to all the friends who have contributed to this project.
QQ group | WX public account | WX Customer Service |
---|---|---|
The Digital Flash technical team is an efficient, stable and innovative team. The team adheres to the original intention of enriching the Blazor ecosystem, and it is the pursuit of the Digital Flash technical team to continue to work hard to bring a better experience to the developers. Thank you for your support and use.
This project adopts the code of conduct defined in the "Contributors Convention" to clarify the expected behavior of our community. For more information, see Masa Stack Community Code of Conduct.
Copyright (c) 2021-present Masa.Blazor.Pro