Add project page
This commit is contained in:
parent
563ed5ffe3
commit
6019620849
3 changed files with 42 additions and 0 deletions
32
src/Interlinked.Core/Pages/Project.razor
Normal file
32
src/Interlinked.Core/Pages/Project.razor
Normal 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>
|
|
@ -122,3 +122,13 @@ a,
|
|||
margin-top: 0;
|
||||
color: gray;
|
||||
}
|
||||
|
||||
.background-img{
|
||||
max-width: 1500px;
|
||||
max-height: 800px;
|
||||
}
|
||||
|
||||
.project-img {
|
||||
max-width: 1500px;
|
||||
max-height: 450px;
|
||||
}
|
||||
|
|
BIN
src/Interlinked.Core/wwwroot/images/project.jpg
Normal file
BIN
src/Interlinked.Core/wwwroot/images/project.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 32 KiB |
Loading…
Reference in a new issue