Skip to content

Commit

Permalink
Add links and fix home razor
Browse files Browse the repository at this point in the history
  • Loading branch information
MSChobanov21 committed Jan 27, 2025
1 parent 48639a5 commit ce5f0f6
Show file tree
Hide file tree
Showing 22 changed files with 19 additions and 89 deletions.
10 changes: 0 additions & 10 deletions Festival/Festival.PL/Layout/NavMenu.razor
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,6 @@
<span class="oi oi-home" aria-hidden="true"></span> Home
</NavLink>
</li>
<li class="nav-item px-3">
<NavLink href="/counter" Match="NavLinkMatch.All">
<span class="oi oi-plus" aria-hidden="true"></span> Counter
</NavLink>
</li>
<li class="nav-item px-3">
<NavLink href="/fetchdata" Match="NavLinkMatch.All">
<span class="oi oi-list-rich" aria-hidden="true"></span> Fetch data
</NavLink>
</li>
<li class="nav-item px-3">
<NavLink href="/signup" Match="NavLinkMatch.All">
<span class="oi oi-person" aria-hidden="true"></span> Sign Up
Expand Down
22 changes: 13 additions & 9 deletions Festival/Festival.PL/Pages/Home.razor
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
@page "/"
@using Festival.DAL.Models;
@using Festival.DAL.Models;
@using System.ComponentModel.DataAnnotations;
@page "/"

<h1>Home</h1>

<p>Welcome to the Festival App!</p>
<p>Welcome to the Festival Helper!</p>

<h2>Artists</h2>
<h2><a href="/artists">Artists</a></h2>

<h2><a href="/events">Events</a></h2>

<h2><a href="/tickets">Tickets</a></h2>

<ul>
@foreach (var artist in Artists)
Expand All @@ -15,17 +19,13 @@
}
</ul>

<h2>Events</h2>

<ul>
@foreach (var even in Events)
{
<li>@even.EventName - @even.EventDate</li>
}
</ul>

<h2>Tickets</h2>

<ul>
@foreach (var ticket in Tickets)
{
Expand All @@ -40,6 +40,10 @@

protected override async Task OnInitializedAsync()
{

// Replace with actual data fetching logic
// For example, using your repositories
// Artists = await _artistRepository.GetAllAsync();
// Events = await _eventRepository.GetAllAsync();
// Tickets = await _ticketRepository.GetAllAsync();
}
}
60 changes: 0 additions & 60 deletions Festival/Festival.PL/Pages/Weather.razor

This file was deleted.

Binary file modified Festival/Festival.PL/bin/Debug/net8.0/Festival.PL.dll
Binary file not shown.
Binary file modified Festival/Festival.PL/bin/Debug/net8.0/Festival.PL.pdb
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"mainAssemblyName": "Festival.PL",
"resources": {
"hash": "sha256-c1KKl6bNXsFCLu9zghRpGfX5OtRs8duO7+XBttU9jNc=",
"hash": "sha256-XZ4KN7zB2wB2vEAwX4JjFRa9uhdnfoIJShRfFLbH1VY=",
"jsModuleNative": {
"dotnet.native.8.0.8.qyo02f0lmf.js": "sha256-juC5sA7gHTLXFEhAKgdM2/RavswpwCtDfjYGsAz2FXg="
},
Expand Down Expand Up @@ -238,11 +238,11 @@
"netstandard.wasm": "sha256-jMTqIQzoDS810lyhZpMO5eEC36EzntXqSVn+2qwkOMQ=",
"System.Private.CoreLib.wasm": "sha256-NFj5WE5VLP2LptZIRJCUIc1AMk06FmxpsSILfPISwAw=",
"Festival.DAL.wasm": "sha256-pIpYz/EPWX3H0TiWhLLLAI7vNKNOYG/eNw4xIhzrb0Y=",
"Festival.PL.wasm": "sha256-6PDG2fW67+O27K/veoAptfYgxsjhdAq9smcGDE88qzE="
"Festival.PL.wasm": "sha256-2/GOz3Ensl/h//JqyGo9RNcQGlD71pKo5DjXjf6tVnk="
},
"pdb": {
"Festival.DAL.pdb": "sha256-rhJ7TOZYd2PrLR1LLDpSDOr+A/CQ3clgoX/paFVDt28=",
"Festival.PL.pdb": "sha256-Iizve3D0Yo05CgOPx2ZMC/PKwxFeJpMjiohOheAZfks="
"Festival.PL.pdb": "sha256-QRlnhThMIgQYug50XNrw2bW0N6Y0JRvlKMV6txws3wg="
}
},
"cacheBootResources": true,
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,6 @@ build_metadata.AdditionalFiles.CssScope =
build_metadata.AdditionalFiles.TargetPath = UGFnZXNcU2lnblVwLnJhem9y
build_metadata.AdditionalFiles.CssScope =

[C:/Users/MSChobanov21/RiderProjects/Festival/Festival.PL/Pages/Weather.razor]
build_metadata.AdditionalFiles.TargetPath = UGFnZXNcV2VhdGhlci5yYXpvcg==
build_metadata.AdditionalFiles.CssScope =

[C:/Users/MSChobanov21/RiderProjects/Festival/Festival.PL/_Imports.razor]
build_metadata.AdditionalFiles.TargetPath = X0ltcG9ydHMucmF6b3I=
build_metadata.AdditionalFiles.CssScope =
Expand Down
Binary file modified Festival/Festival.PL/obj/Debug/net8.0/Festival.PL.dll
Binary file not shown.
Binary file modified Festival/Festival.PL/obj/Debug/net8.0/Festival.PL.pdb
Binary file not shown.
6 changes: 3 additions & 3 deletions Festival/Festival.PL/obj/Debug/net8.0/blazor.boot.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"mainAssemblyName": "Festival.PL",
"resources": {
"hash": "sha256-c1KKl6bNXsFCLu9zghRpGfX5OtRs8duO7+XBttU9jNc=",
"hash": "sha256-XZ4KN7zB2wB2vEAwX4JjFRa9uhdnfoIJShRfFLbH1VY=",
"jsModuleNative": {
"dotnet.native.8.0.8.qyo02f0lmf.js": "sha256-juC5sA7gHTLXFEhAKgdM2/RavswpwCtDfjYGsAz2FXg="
},
Expand Down Expand Up @@ -238,11 +238,11 @@
"netstandard.wasm": "sha256-jMTqIQzoDS810lyhZpMO5eEC36EzntXqSVn+2qwkOMQ=",
"System.Private.CoreLib.wasm": "sha256-NFj5WE5VLP2LptZIRJCUIc1AMk06FmxpsSILfPISwAw=",
"Festival.DAL.wasm": "sha256-pIpYz/EPWX3H0TiWhLLLAI7vNKNOYG/eNw4xIhzrb0Y=",
"Festival.PL.wasm": "sha256-6PDG2fW67+O27K/veoAptfYgxsjhdAq9smcGDE88qzE="
"Festival.PL.wasm": "sha256-2/GOz3Ensl/h//JqyGo9RNcQGlD71pKo5DjXjf6tVnk="
},
"pdb": {
"Festival.DAL.pdb": "sha256-rhJ7TOZYd2PrLR1LLDpSDOr+A/CQ3clgoX/paFVDt28=",
"Festival.PL.pdb": "sha256-Iizve3D0Yo05CgOPx2ZMC/PKwxFeJpMjiohOheAZfks="
"Festival.PL.pdb": "sha256-QRlnhThMIgQYug50XNrw2bW0N6Y0JRvlKMV6txws3wg="
}
},
"cacheBootResources": true,
Expand Down
Binary file modified Festival/Festival.PL/obj/Debug/net8.0/compressed/fveyapdap7.gz
Binary file not shown.
Binary file modified Festival/Festival.PL/obj/Debug/net8.0/compressed/g5kifqoip1.gz
Binary file not shown.
Binary file not shown.
Binary file modified Festival/Festival.PL/obj/Debug/net8.0/ref/Festival.PL.dll
Binary file not shown.
Binary file modified Festival/Festival.PL/obj/Debug/net8.0/refint/Festival.PL.dll
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit ce5f0f6

Please sign in to comment.