feat: Add Lawn Care Tips section and improve Dashboard layout
This commit introduces a new "Lawn Care Tips" section to the application and refines the visual layout of the main Dashboard.
**Key Changes:**
*   **Lawn Care Tips Feature:**
    *   Added `LawnCareTip` model with `Title`, `Category`, and `Content` properties.
    *   Defined `TipCategory` enum for better organization (Mowing, Watering, Fertilizing, Weed Control, Aeration, General).
    *   Integrated `LawnCareTip` into `ApplicationDbContext` for database persistence.
    *   Updated `_Layout.cshtml` to include a new "Lawn Tips" navigation link.
*   **Dashboard Layout Fix:**
    *   Refactored `Views/Home/Index.cshtml` to correctly use Bootstrap's grid system by placing the "Log a New Activity" card in its own `div.row`. This resolves the layout issue where the card was appearing immediately after the previous row without proper spacing.
    *   Updated `HomeController` to include a `LastAerationDate` query for the dashboard display.
    *   Modified `DashboardViewModel` to include `LastAerationDate`.
*   **Build/Dependency Updates:**
    *   Added `Microsoft.EntityFrameworkCore.SqlServer` (likely a residue from scaffolding, though SQLite is still primary).
    *   Added `Microsoft.VisualStudio.Web.CodeGeneration.Design` for scaffolding tools.
This enhances the application's functionality by providing a knowledge base and improves the user experience with a cleaner dashboard layout.
			
			
This commit is contained in:
		
							parent
							
								
									1f50fedb80
								
							
						
					
					
						commit
						5074a9664a
					
				
					 17 changed files with 689 additions and 18 deletions
				
			
		|  | @ -12,7 +12,6 @@ | |||
|     <header> | ||||
|         <nav class="navbar navbar-expand-sm navbar-toggleable-sm border-bottom box-shadow mb-3 navbar-custom"> | ||||
|             <div class="container-fluid"> | ||||
|                 <a class="navbar-brand" asp-area="" asp-controller="Home" asp-action="Index">MowLog</a> | ||||
|                 <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target=".navbar-collapse" aria-controls="navbarSupportedContent" | ||||
|                         aria-expanded="false" aria-label="Toggle navigation"> | ||||
|                     <span class="navbar-toggler-icon"></span> | ||||
|  | @ -20,11 +19,14 @@ | |||
|                 <div class="navbar-collapse collapse d-sm-inline-flex justify-content-between"> | ||||
|                     <ul class="navbar-nav flex-grow-1"> | ||||
|                         <li class="nav-item"> | ||||
|                             <a class="nav-link" asp-area="" asp-controller="Home" asp-action="Index">Home</a> | ||||
|                             <a class="nav-link" asp-area="" asp-controller="Home" asp-action="Index">Dashboard</a> | ||||
|                         </li> | ||||
|                         <li class="nav-item"> | ||||
|                             <a class="nav-link" asp-area="" asp-controller="LawnCareEvents" asp-action="Index">Mow Log</a> | ||||
|                         </li> | ||||
|                         <li class="nav-item"> | ||||
|                             <a class="nav-link" asp-area="" asp-controller="LawnCareTip" asp-action="Index">Lawn Tips</a> | ||||
|                         </li> | ||||
|                     </ul> | ||||
|                 </div> | ||||
|             </div> | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Blake Ridgway
						Blake Ridgway