l
lolhans

Kleingarten Website Home View

MudBlazor Listings Page that provides a hero search and a featured MudCard grid. Uses MudTextField and MudSelect for filters and MudGrid for responsive layout. Styling combines MudBlazor components with a custom hero background.

LIVE DEMO
Generated using Instruct UI - An AI for Blazor UI Generation
## What's implemented - Hero search panel with inputs and an action button. - Filter controls: MudTextField (location), MudSelect (size, price). - Featured listings rendered as a responsive MudCard grid with images, title, location, price and size. - AppBar navigation and footer with social icon buttons. ## Key components - MudLayout, MudAppBar, MudMainContent, MudContainer - MudPaper, MudGrid, MudItem - MudTextField, MudSelect, MudSelectItem, MudButton, MudIcon - MudCard, MudCardMedia, MudCardContent, MudCardActions - MudIconButton, MudText, MudSpacer - GardenListingModel (simple POCO model) ## How it works - Inputs use two-way binding via @bind-Value (searchLocation, searchSize, searchPrice). - Search button uses an OnClick handler (SearchGardens) that currently logs selected filters. - Sample listings are populated in OnInitialized with GardenListingModel instances and rendered with a foreach loop into MudCard components. - Card actions show a placeholder View Details button; no navigation or detail handler is wired. ## Styling - Uses MudBlazor component library and utility classes (e.g., d-flex, align-center, justify-center, mud-theme-dark) for layout and alignment. - Custom CSS in app.css defines a hero-section with a background-image and height (50vh). - MudGrid breakpoints (xs/sm/md) make the search row and card grid responsive across viewports. ## Reuse steps 1. Add MudBlazor NuGet package and reference: Install-Package MudBlazor. 2. Register MudBlazor services in Program.cs (builder.Services.AddMudServices()). 3. Add @using MudBlazor and import MudBlazor namespace in _Imports.razor. 4. Include app.css (hero-section) in the project and reference it in index.html/_Host.cshtml. 5. Copy GardenListingModel or replace with the app's model and replace OnInitialized sample data with a data service call. 6. Wire navigation and detail handlers (NavigationManager) and replace Console.WriteLine in SearchGardens with an API call. ## Limitations & next steps - This is a single page scaffold; no backend search API, paging, or sorting is implemented. - Authentication, authorization, and detail-page routing are not included. - Images use placeholder URLs; replace with a media service or blob storage. - Add server-side filtering, debounced search, accessibility checks (aria labels), and unit/integration tests for production use.