diff --git a/AOW4/Components/Layout/MainLayout.razor b/AOW4/Components/Layout/MainLayout.razor index 78624f3..becbe87 100644 --- a/AOW4/Components/Layout/MainLayout.razor +++ b/AOW4/Components/Layout/MainLayout.razor @@ -1,10 +1,6 @@ @inherits LayoutComponentBase
- -
About diff --git a/AOW4/Components/Pages/Home.razor b/AOW4/Components/Pages/Home.razor index 9001e0b..117d9e1 100644 --- a/AOW4/Components/Pages/Home.razor +++ b/AOW4/Components/Pages/Home.razor @@ -1,7 +1,184 @@ @page "/" +@using AOW4.Data -Home +
+

Welcome to AOW4

+

Explore our tools and resources

-

Hello, world!

+
+ @foreach (var section in sections) + { +
+
+

@section.Name

+ @if (!string.IsNullOrEmpty(section.Description)) + { +

@section.Description

+ } +
-Welcome to your new app. + +
+ } +
+
+ +@code { + private List
sections = new(); + + protected override void OnInitialized() + { + sections = SectionsData.GetAllSections(); + } +} + + diff --git a/AOW4/Data/SectionData.cs b/AOW4/Data/SectionData.cs new file mode 100644 index 0000000..be42ba2 --- /dev/null +++ b/AOW4/Data/SectionData.cs @@ -0,0 +1,38 @@ +namespace AOW4.Data; + +public static class SectionsData +{ + public static List
GetAllSections() + { + return new List
+ { + new Section + { + Name = "Calculators", + Description = "Useful calculator tools for various computations", + Links = new List + { + // Add calculator links here in the future + } + }, + new Section + { + Name = "References", + Description = "Reference materials and documentation", + Links = new List + { + // Add reference links here in the future + } + }, + new Section + { + Name = "Learning", + Description = "Educational resources and learning materials", + Links = new List + { + // Add learning links here in the future + } + } + }; + } +} diff --git a/AOW4/Data/SectionModels.cs b/AOW4/Data/SectionModels.cs new file mode 100644 index 0000000..aa20c0b --- /dev/null +++ b/AOW4/Data/SectionModels.cs @@ -0,0 +1,15 @@ +namespace AOW4.Data; + +public class SectionLink +{ + public string Title { get; set; } = string.Empty; + public string Url { get; set; } = string.Empty; + public string? Description { get; set; } +} + +public class Section +{ + public string Name { get; set; } = string.Empty; + public string? Description { get; set; } + public List Links { get; set; } = new(); +}