diff --git a/WebApp/Components/Features/Calendar/Index.razor b/WebApp/Components/Features/Calendar/Index.razor index ae44787..6ffac55 100644 --- a/WebApp/Components/Features/Calendar/Index.razor +++ b/WebApp/Components/Features/Calendar/Index.razor @@ -1,4 +1,4 @@ -@page "/event-calendar" +@page "/calendar" @attribute [Authorize] @using WebApp.Components.Shared.Components @using WebApp.Models diff --git a/WebApp/Components/Pages/Home.razor b/WebApp/Components/Pages/Home.razor index a92424a..5117fc4 100644 --- a/WebApp/Components/Pages/Home.razor +++ b/WebApp/Components/Pages/Home.razor @@ -26,57 +26,153 @@ - -Data - - - - - - - - @if (!string.IsNullOrEmpty(_gradeDistribution) && _gradeDistribution != "No students yet") - { - - @((MarkupString)_gradeDistribution) - - } - else - { - No students yet - } - - - - - - - Tools - - +@if (!_hasStudents) +{ + + + Getting Started + Add your chapter's students to begin + + + Import or add your chapter roster + - + + +} +else if (!_hasTeams) +{ + + + Team Building + Collect event rankings and build your teams + + + + + + + + + Chapter Data + + + + @if (!string.IsNullOrEmpty(_gradeDistribution) && _gradeDistribution != "No students yet") + { + + @((MarkupString)_gradeDistribution) + + } + + + + +} +else +{ + + + Scheduling + + + + + + Teams & Registration + + + + + + + + + Team Building + + + + + + + + + Chapter Data + + + + @if (!string.IsNullOrEmpty(_gradeDistribution) && _gradeDistribution != "No students yet") + { + + @((MarkupString)_gradeDistribution) + + } + + + + +} + @code { private int _eventCount; private int _individualEventsCount; @@ -87,6 +183,9 @@ private int _individualTeamsCount; private int _groupTeamsCount; + private bool _hasStudents => _studentCount > 0; + private bool _hasTeams => _teamCount > 0; + protected override async Task OnInitializedAsync() { await LoadStatistics(); diff --git a/WebApp/Components/Shared/Components/DashboardCard.razor b/WebApp/Components/Shared/Components/DashboardCard.razor index 542d5c2..8a8ac4e 100644 --- a/WebApp/Components/Shared/Components/DashboardCard.razor +++ b/WebApp/Components/Shared/Components/DashboardCard.razor @@ -1,7 +1,7 @@ @using Microsoft.AspNetCore.Components - +
@@ -33,8 +33,14 @@ [Parameter] public string? Caption { get; set; } [Parameter] public RenderFragment? ChildContent { get; set; } [Parameter] public string NavigateUrl { get; set; } = string.Empty; + [Parameter] public bool Emphasized { get; set; } [Inject] private NavigationManager Navigation { get; set; } = default!; + private string CardClass => Emphasized ? "pa-4 emphasized-card" : "pa-4"; + private string CardStyle => Emphasized + ? "cursor: pointer; height: 100%; border: 2px solid var(--mud-palette-primary);" + : "cursor: pointer; height: 100%;"; + private void HandleClick() { if (!string.IsNullOrEmpty(NavigateUrl)) diff --git a/WebApp/Components/Shared/Layout/NavMenu.razor b/WebApp/Components/Shared/Layout/NavMenu.razor index c4451b2..db6a2c1 100644 --- a/WebApp/Components/Shared/Layout/NavMenu.razor +++ b/WebApp/Components/Shared/Layout/NavMenu.razor @@ -7,25 +7,33 @@ TSA Chapter Organizer @Configuration["ChapterSettings:Name"] - Events - Students - - Teams + + Meeting Schedule + Event Calendar + + + Registration + Teams Print out Handout - Schedule - Event Calendar - + + Event Ranking Team Assignment + + + Students + Events + + Chapter Settings - Validation Settings + Validation Settings