mirror of
https://codeberg.org/VnPower/PixivFE
synced 2024-12-06 19:16:23 +01:00
Feature: added navigation for user page
This commit is contained in:
@@ -21,6 +21,9 @@ Artwork's page: informations about the artwork, recent artworks by the artist an
|
||||

|
||||

|
||||
|
||||
User's page: Route: `/user/<id>` (id for the preview: 11065404)
|
||||

|
||||
|
||||
## Installation
|
||||
|
||||
Run these commands below, then access the site on [localhost:8080](https://localhost:8080)
|
||||
|
||||
@@ -26,8 +26,8 @@
|
||||
<br />
|
||||
<small>{{ .Date }}</small>
|
||||
|
||||
<a href="#" class="artwork-artist flex"><img src="{{ .Artist.Avatar.medium }}" alt="{{ .Artist.Name }}"
|
||||
class="artwork-artist-avatar border-rounded" />
|
||||
<a href="/user/{{ .Artist.ID }}" class="artwork-artist flex"><img src="{{ .Artist.Avatar.medium }}"
|
||||
alt="{{ .Artist.Name }}" class="artwork-artist-avatar border-rounded" />
|
||||
{{ .Artist.Name }}</a>
|
||||
<div class="thumbnail-container">
|
||||
{{ range $parent.Recent }}
|
||||
|
||||
@@ -65,6 +65,8 @@ body {
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
.artwork-thumbnail .artwork-master-image {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-position: center center;
|
||||
}
|
||||
.artwork-thumbnail .artwork-thumbnail-artist {
|
||||
|
||||
@@ -79,6 +79,8 @@ body {
|
||||
}
|
||||
|
||||
.artwork-master-image {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-position: center center;
|
||||
}
|
||||
|
||||
|
||||
@@ -8,8 +8,8 @@
|
||||
<a class="artwork-thumbnail-title" href="/artworks/{{ .ID }}">
|
||||
<h3 class="no-margin">{{ .Title }}</h3>
|
||||
</a>
|
||||
<a href="#" class="artwork-thumbnail-artist flex"><img data-src="{{ .Artist.Avatar.medium }}" alt="{{ .Artist.Name }}"
|
||||
class="artwork-thumbnail-artist-avatar border-rounded lazy" />
|
||||
<a href="/user/{{ .Artist.ID }}" class="artwork-thumbnail-artist flex"><img data-src="{{ .Artist.Avatar.medium }}"
|
||||
alt="{{ .Artist.Name }}" class="artwork-thumbnail-artist-avatar border-rounded lazy" />
|
||||
{{ .Artist.Name }}</a>
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
@@ -7,8 +7,8 @@
|
||||
<a class="artwork-thumbnail-title" href="/artworks/{{ .ID }}">
|
||||
<h3 class="no-margin">{{ .Title }}</h3>
|
||||
</a>
|
||||
<a href="#" class="artwork-thumbnail-artist flex"><img data-src="{{ .Artist.Avatar.medium }}" alt="{{ .Artist.Name }}"
|
||||
class="artwork-thumbnail-artist-avatar border-rounded lazy" />
|
||||
<a href="/user/{{ .Artist.ID }}" class="artwork-thumbnail-artist flex"><img data-src="{{ .Artist.Avatar.medium }}"
|
||||
alt="{{ .Artist.Name }}" class="artwork-thumbnail-artist-avatar border-rounded lazy" />
|
||||
{{ .Artist.Name }}</a>
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
Reference in New Issue
Block a user