temp.jet.html 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. {{ if Token }}
  2. <div class="switcher">
  3. <span class="switch-title">Filter</span>
  4. <a href="/?mode=all" class="switch-button">All</a>
  5. <a href="/?mode=r18" class="switch-button">R-18</a>
  6. </div>
  7. <div class="component-header">
  8. <h2>Newest works by users you follow</h2>
  9. <a href="/self/following_works">See more</a>
  10. </div>
  11. <div class="artwork-container-scroll">
  12. {{ include "components/small-tn" Artworks.Following }}
  13. </div>
  14. <br />
  15. <h2>Recently completed commissions</h2>
  16. <div class="artwork-container">
  17. {{ include "components/small-tn" Artworks.Commissions }}
  18. </div>
  19. <br />
  20. <h2>Recommended works</h2>
  21. <div class="artwork-container">
  22. {{ include "components/small-tn" Artworks.Recommended }}
  23. </div>
  24. <br />
  25. <div class="component-header">
  26. <h2>Daily rankings</h2>
  27. <a href="/ranking">See more</a>
  28. </div>
  29. <div class="artwork-container-scroll">
  30. {{ range rank := Artworks.Rankings }}
  31. <div class="artwork-large artwork">
  32. <div class="artwork-additional">
  33. <div class="artwork-position">{{ rank + 1 }}</div>
  34. {{ if .Pages > 1 }}
  35. <div class="artwork-page-count">
  36. <span class="boxbox"> &boxbox;&nbsp; </span>
  37. <span>2</span>
  38. </div>
  39. {{ end }}
  40. </div>
  41. <a href="/artworks/{{ .ID }}#checkpoint">
  42. <img src="{{ .Thumbnail }}" alt="{{ .Title }}" />
  43. </a>
  44. <div class="artwork-title">
  45. <a href="/artworks/{{ .ID }}#checkpoint"> {{ .Title }} </a>
  46. </div>
  47. <div class="artwork-author">
  48. <a href="/users/{{ .ArtistID }}">
  49. <img
  50. src="{{ .ArtistAvatar }}"
  51. alt="{{ .ArtistName }}"
  52. class="artwork-thumbnail-artist-avatar border-rounded"
  53. />
  54. <span>{{ .ArtistName }}</span></a
  55. >
  56. </div>
  57. </div>
  58. {{ end }}
  59. </div>
  60. <br />
  61. {* <h2>Pixivision</h2>
  62. <div class="thumbnail-container">
  63. {{ range Artworks.Pixivision }}
  64. <a href="{{ .URL }}" class="spotlight-thumbnail">
  65. <img
  66. src="{{ .Thumbnail }}"
  67. alt="{{ .Title }}"
  68. class="spotlight-master-image"
  69. />
  70. <div class="spotlight-title-wrapper">
  71. <h2 class="spotlight-title">{{ .Title }}</h2>
  72. </div>
  73. </a>
  74. {{ end }}
  75. </div>
  76. <br /> *}
  77. <h2>Works by recommended users</h2>
  78. <div class="artwork-container">
  79. {{ include "components/small-tn" Artworks.Users }}
  80. </div>
  81. <br />
  82. {{ range Artworks.RecommendByTags }}
  83. <h2>Recommended illustrations tagged #{{.Name}}</h2>
  84. <div class="artwork-container">
  85. {{ include "components/small-tn" .Artworks }}
  86. </div>
  87. <br />
  88. {{ end }}
  89. <h2>Welcome!</h2>
  90. <p>Please check out the sidebar for more features. There used to be a small ranking container here...</p>
  91. {* <h2>Newest works</h2>
  92. <div class="artwork-container-scroll">
  93. {{ include "components/small-tn" Artworks.Newest }}
  94. </div>
  95. {{ else }}
  96. <p><a href="/login">Login</a> to access more features!</p>
  97. <p>
  98. Enjoying this frontend so far? I need your opinions and ideas to improve
  99. this UI! Share them
  100. <a href="https://codeberg.org/VnPower/pixivfe/issues/21">here</a>!
  101. </p>
  102. <div class="component-header">
  103. <h2>Daily rankings</h2>
  104. <a href="/ranking">See more</a>
  105. </div>
  106. <div class="artwork-container-scroll">
  107. {{ range rank := Artworks.Rankings }}
  108. <div class="artwork-large artwork">
  109. <div class="artwork-additional">
  110. <div class="artwork-position">{{ rank + 1 }}</div>
  111. {{ if .Pages > 1 }}
  112. <div class="artwork-page-count">
  113. <span class="boxbox"> &boxbox;&nbsp; </span>
  114. <span>2</span>
  115. </div>
  116. {{ end }}
  117. </div>
  118. <a href="/artworks/{{ .ID }}#checkpoint">
  119. <img src="{{ .Thumbnail }}" alt="{{ .Title }}" />
  120. </a>
  121. <div class="artwork-title">
  122. <a href="/artworks/{{ .ID }}#checkpoint"> {{ .Title }} </a>
  123. </div>
  124. <div class="artwork-author">
  125. <a href="/users/{{ .ArtistID }}">
  126. <img
  127. src="{{ .ArtistAvatar }}"
  128. alt="{{ .ArtistName }}"
  129. class="artwork-thumbnail-artist-avatar border-rounded"
  130. />
  131. <span>{{ .ArtistName }}</span></a
  132. >
  133. </div>
  134. </div>
  135. {{ end }}
  136. </div>
  137. <br /> *}
  138. {* <h2>Pixivision</h2>
  139. <div class="thumbnail-container">
  140. {{ range Artworks.Pixivision }}
  141. <a href="{{ .URL }}" class="spotlight-thumbnail">
  142. <img
  143. src="{{ .Thumbnail }}"
  144. alt="{{ .Title }}"
  145. class="spotlight-master-image"
  146. />
  147. <div class="spotlight-title-wrapper">
  148. <h2 class="spotlight-title">{{ .Title }}</h2>
  149. </div>
  150. </a>
  151. {{ end }}
  152. </div>
  153. <br /> *}
  154. {{ end }}