Hi,
Regarding your question, you can use custom routing and layout logic to simulate multiple entry points.
Here's a sample project:
Project Structure
Pages/
│
├── Admin/
│ └── Dashboard.razor
Shared/
│
└── AdminLayout.razor
wwwroot/
│
├── css/
└── admin.css
Create these files as above.
AdminLayout.razor:
@inherits LayoutComponentBase
<link href="css/admin.css" rel="stylesheet" />
<div class="admin-layout">
<h1>Admin Panel</h1>
@Body
</div>
Dashboard.razor:
@page "/admin/dashboard"
@using YourProjectName.Shared // You can find it in Program.cs
@layout AdminLayout
<h3>Welcome to the Admin Dashboard</h3>
<p>This page uses a separate layout and CSS.</p>
admin.css:
.admin-layout {
background-color: #222;
color: white;
padding: 20px;
}
Run the App:
Press F5 or click Run.
Navigate to https://localhost:port/admin/dashboard to see the Admin layout in action.
Hope my solution was helpful.