main
|
Last change
on this file since d89d25b was d89d25b, checked in by mmilevski <markomilevski3@…>, 4 weeks ago |
|
Added few implementaions, minor UI changes.
|
-
Property mode
set to
100644
|
|
File size:
2.0 KB
|
| Line | |
|---|
| 1 | @model IEnumerable<KernelRecordsMVC.Models.Artist>
|
|---|
| 2 |
|
|---|
| 3 | @{
|
|---|
| 4 | ViewData["Title"] = "Artists";
|
|---|
| 5 | }
|
|---|
| 6 |
|
|---|
| 7 | <div class="artist-page">
|
|---|
| 8 |
|
|---|
| 9 | <div class="artist-page-header">
|
|---|
| 10 |
|
|---|
| 11 | <span class="artist-eyebrow">
|
|---|
| 12 | KERNEL RECORDS
|
|---|
| 13 | </span>
|
|---|
| 14 |
|
|---|
| 15 | <h1>Artists</h1>
|
|---|
| 16 |
|
|---|
| 17 | <p>
|
|---|
| 18 | Browse artists available in the Kernel Records catalog.
|
|---|
| 19 | </p>
|
|---|
| 20 |
|
|---|
| 21 | </div>
|
|---|
| 22 |
|
|---|
| 23 |
|
|---|
| 24 | @if (!Model.Any())
|
|---|
| 25 | {
|
|---|
| 26 | <div class="artist-empty">
|
|---|
| 27 | No artists are currently available.
|
|---|
| 28 | </div>
|
|---|
| 29 | }
|
|---|
| 30 | else
|
|---|
| 31 | {
|
|---|
| 32 | <div class="artist-grid">
|
|---|
| 33 |
|
|---|
| 34 | @foreach (var artist in Model)
|
|---|
| 35 | {
|
|---|
| 36 | <a asp-controller="Artist"
|
|---|
| 37 | asp-action="Details"
|
|---|
| 38 | asp-route-id="@artist.ArtistId"
|
|---|
| 39 | class="artist-card">
|
|---|
| 40 |
|
|---|
| 41 | <div class="artist-card-image">
|
|---|
| 42 |
|
|---|
| 43 | @if (!string.IsNullOrWhiteSpace(
|
|---|
| 44 | artist.ArtistPhoto))
|
|---|
| 45 | {
|
|---|
| 46 | <img src="@artist.ArtistPhoto"
|
|---|
| 47 | alt="@artist.ArtistName" />
|
|---|
| 48 | }
|
|---|
| 49 | else
|
|---|
| 50 | {
|
|---|
| 51 | <div class="artist-photo-placeholder">
|
|---|
| 52 | ♪
|
|---|
| 53 | </div>
|
|---|
| 54 | }
|
|---|
| 55 |
|
|---|
| 56 | </div>
|
|---|
| 57 |
|
|---|
| 58 |
|
|---|
| 59 | <div class="artist-card-body">
|
|---|
| 60 |
|
|---|
| 61 | <h2>
|
|---|
| 62 | @artist.ArtistName
|
|---|
| 63 | </h2>
|
|---|
| 64 |
|
|---|
| 65 | @if (!string.IsNullOrWhiteSpace(
|
|---|
| 66 | artist.ArtistDescription))
|
|---|
| 67 | {
|
|---|
| 68 | <p>
|
|---|
| 69 | @artist.ArtistDescription
|
|---|
| 70 | </p>
|
|---|
| 71 | }
|
|---|
| 72 |
|
|---|
| 73 | <span class="artist-card-link">
|
|---|
| 74 | View Artist →
|
|---|
| 75 | </span>
|
|---|
| 76 |
|
|---|
| 77 | </div>
|
|---|
| 78 |
|
|---|
| 79 | </a>
|
|---|
| 80 | }
|
|---|
| 81 |
|
|---|
| 82 | </div>
|
|---|
| 83 | }
|
|---|
| 84 |
|
|---|
| 85 | </div> |
|---|
Note:
See
TracBrowser
for help on using the repository browser.