Add project page

This commit is contained in:
Jackob_Punch 2023-09-30 22:48:27 +02:00
parent 563ed5ffe3
commit 6019620849
3 changed files with 42 additions and 0 deletions

View file

@ -0,0 +1,32 @@
@page "/project"
@code {
private string UserName = "John Doe";
private string project = "Building a computer from a scrap";
private string description = "In this project we're going to build computer from a scrap.";
private List<string> tags = new List<string> { "hardware", "embedded" }; @*choosen from the list*@
private List<string> persons = new List<string> { "Jan Kowalski", "Kamil Ślimak" }; @*got from database*@
}
<div class="project">
<img class="project-img" src="images/project.jpg" alt="Project" />
<h1>@project</h1>
<h2>Tags</h2>
<ul>
@foreach (var tag in tags)
{
<li>@tag</li>
}
</ul>
<h2>Description</h2>
<p>@description</p>
<h3>Owner</h3>
<p>@UserName</p>
<h4>Other persons working on project</h4>
<ul>
@foreach (var person in persons)
{
<li>@person</li>
}
</ul>
</div>

View file

@ -122,3 +122,13 @@ a,
margin-top: 0; margin-top: 0;
color: gray; color: gray;
} }
.background-img{
max-width: 1500px;
max-height: 800px;
}
.project-img {
max-width: 1500px;
max-height: 450px;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB