25 lines
610 B
Plaintext
25 lines
610 B
Plaintext
@page "/projects"
|
|
@using Portfolio.Shared.Models
|
|
@using Portfolio.Shared.Services
|
|
@using Portfolio.Web.Components.Components
|
|
|
|
<PageTitle>Projekte</PageTitle>
|
|
|
|
<h2>Alle Projekte</h2>
|
|
|
|
<div class="project-container">
|
|
@foreach (var (index, project) in _projects.Index()) {
|
|
<ProjectView Project="project" Index="index" />
|
|
}
|
|
</div>
|
|
|
|
@inherits CancellableComponent
|
|
@inject IProjectRepository ProjectRepo
|
|
|
|
@code {
|
|
private IEnumerable<Project> _projects = [];
|
|
|
|
protected override async Task OnInitializedAsync() {
|
|
_projects = await ProjectRepo.GetProjects(TokenSource.Token);
|
|
}
|
|
} |