person.html 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <title>{{.Data.Name}}{{if not .Data.Birthday.IsZero}} ({{.Data.Birthday.Year}}){{end}} — a·muse</title>
  7. <link rel="stylesheet" href="/static/style/style.css" />
  8. <link rel="icon" type="image/svg+xml" href="/static/img/logo.svg">
  9. <link rel="apple-touch-icon" type="image/svg+xml" href="/static/img/logo.svg">
  10. </head>
  11. <body>
  12. <header class="w12 padding-bottom-_25 flex flex-row flex-justify-space flex-align-centre bg-primary">
  13. <a href="/" class="decoration-none">
  14. <h1 class="inline valign-mid text-white sans margin-lr-1">a·muse</h1>
  15. </a>
  16. <form action="/items/" method="get" class="flex inline margin-lr-1 border-bottom-white">
  17. <input type="search" name="q" class="phone-max-width-8 border-none bg-none sans text-white" placeholder="{{.Strings.Global.search}}" />
  18. </form>
  19. <div class="margin-lr-1 text-white">
  20. {{ if .State.User.IsEmpty }}
  21. <a href="/login" class="decoration-none sans">{{.Strings.Global.log_in}}</a>
  22. <a href="/signup" class="decoration-none sans">{{.Strings.Global.sign_up}}</a>
  23. {{ else }}
  24. <nav>
  25. <label for="hamburger" class="cursor-hand">
  26. <img src="/users/{{.State.User.Username}}/avatar?size=small" class="border-radius-25 width-1_5"/>
  27. </label>
  28. <input type="checkbox" id="hamburger" class="display-none" />
  29. <ul class="absolute right top-1 padding-lr-1 padding-tb-_5 bg align-right list-style-none sans">
  30. <!--<li><a href="/users/{{.State.User.Username}}" class="decoration-none text-accent">{{.Strings.Global.account}}</a><span class="material-icon padding-lr-_5">&#xe851;</span></li>-->
  31. <li><a href="/users/{{.State.User.Username}}/watchlist" class="decoration-none text-accent">{{.Strings.Global.watchlist}}</a><span class="material-icon padding-lr-_5">&#xe04a;</span></li>
  32. <li><a href="/users/{{.State.User.Username}}/tvqueue" class="decoration-none text-accent">{{.Strings.Global.tv_queue}}</a><span class="material-icon padding-lr-_5">&#xe1b2;</span></li>
  33. <li><a href="/users/{{.State.User.Username}}/readlist" class="decoration-none text-accent">{{.Strings.Global.readlist}}</a><span class="material-icon padding-lr-_5">&#xe431;</span></li>
  34. <li><a href="/users/{{.State.User.Username}}/experiences" class="decoration-none text-accent">{{.Strings.Global.experiences}}</a><span class="material-icon padding-lr-_5">&#xe042;</span></li>
  35. <li class="bg-error">
  36. <form action="/users/{{.State.User.Username}}/sessions/{{.State.User.Session}}" method="POST" class="inline">
  37. <input type="hidden" value="DELETE" name="method" />
  38. <input type="submit" value="{{.Strings.Global.log_out}}" class="border-none bg-none font-normal text-accent padding-lr-0 cursor-hand font-1" />
  39. </form><span class="material-icon padding-lr-_5">&#xe7ff;</span>
  40. </li>
  41. </ul>
  42. </nav>
  43. {{ end }}
  44. </div>
  45. </header>
  46. <div class="absolute top behind w12">
  47. {{if .Data.Backdrop_path }}
  48. <img src="https://image.tmdb.org/t/p/original{{.Data.Backdrop_path}}" class="w12 cover height-30" />
  49. {{else}}
  50. <img src="/static/img/person_backdrop.webp" class="w12 cover height-30" /> <!-- Photo by [Pixbay](https://www.pexels.com/@pixabay) from [Pexels](https://www.pexels.com/photo/time-lapse-photo-of-lights-220118/) -->
  51. {{end}}
  52. <div class="on-desktop relative bottom-4 sans inline-block w12 padding-l-16 font-3 bg-gradient border-box">
  53. <span class="text-white">{{.Data.Name}}</span>
  54. </div>
  55. </div>
  56. <main class="margin-top-20 margin-lr-5 flex flex-row flex-wrap flex-justify-space flex-align-start">
  57. <div class="desktop-w3 phone-w12 margin-bottom-2">
  58. {{if .Data.Profile_path}}
  59. <img src="https://image.tmdb.org/t/p/w154{{.Data.Profile_path}}" class="block min-height-231px width-154px">
  60. {{else}}
  61. <img src="/static/img/person_empty.webp" class="block min-height-231px width-154px" />
  62. {{end}}
  63. <div class="on-phone">
  64. <span class="sans font-3">{{.Data.Name}}</span>
  65. </div>
  66. <p class="sans text-grey margin-top-1 margin-bottom-_5"><span class="material-icon">&#xe7e9;</span> {{$.Strings.Person.born}}</p>
  67. {{if .Data.Birthday.IsZero}}
  68. <p class="margin-lr-1 sans margin-tb-_5">{{$.Strings.Person.unknown}}</p>
  69. {{else}}
  70. <p class="margin-lr-1 sans margin-tb-_5">{{.FormatDate .Data.Birthday}}{{if .Data.Place_of_birth}},
  71. <br/>{{.Data.Place_of_birth}}{{end}}</p>
  72. {{end}}
  73. {{if not .Data.Deathday.IsZero}}
  74. <p class="sans text-grey margin-top-1 margin-bottom-_5"><span class="material-icon">&#xe88b;</span> {{$.Strings.Person.died}}</p>
  75. <p class="margin-lr-1 sans margin-tb-_5">{{.FormatDate .Data.Deathday}}</p>
  76. {{end}}
  77. <p class="sans text-grey margin-top-1 margin-bottom-_5"><span class="material-icon">&#xe157;</span> {{$.Strings.Person.source}}</p>
  78. <p class="margin-lr-1 sans margin-tb-_5"><a href="{{.Data.Source}}">TheMovieDB</a></p>
  79. </div>
  80. <div class="desktop-w6 phone-w12 margin-top-10 padding-lr-2 margin-bottom-2">
  81. <p class="serif justify hyphenate">{{.Data.Biography}}</p>
  82. <hr class="material-icon text-grey hr-person" />
  83. </div>
  84. <div class="desktop-w3 phone-w12 margin-top-10 flex phone-flex-flow margin-bottom-2">
  85. <details class="min-width-13_5 margin-lr-1 flex-force-40">
  86. <summary class="cursor-hand">
  87. <span class="material-icon font-1_5">&#xe7fb;</span> <span class="sans font-1_5">{{.Strings.Person.cast}}</span>
  88. </summary>
  89. <div>
  90. {{if not .Data.Credits.Cast}}
  91. <p class="sans indent-2 margin-top-1">{{$.Strings.Person.empty_payroll}}</p>
  92. {{end}}
  93. {{range .Data.Credits.Cast}}
  94. {{if eq .Media_type "movie"}}
  95. <a href="/films/{{.Id}}" class="decoration-none no-outline inline-block margin-tb-1">
  96. {{else if eq .Media_type "tv"}}
  97. <a href="/tvseries/{{.Id}}" class="decoration-none no-outline inline-block margin-tb-1">
  98. {{end}}
  99. <div class="flex">
  100. <div>
  101. {{if .Poster_path}}
  102. <img src="https://image.tmdb.org/t/p/w92{{.Poster_path}}" class="min-height-139px width-92px" decoding="async" loading="lazy" />
  103. {{else if eq .Media_type "movie"}}
  104. <img src="/static/img/poster_empty.webp" class="min-height-139px width-92px" decoding="async" loading="lazy" />
  105. {{else if eq .Media_type "tv"}}
  106. <img src="/static/img/tv_empty.webp" class="min-height-139px width-92px" decoding="async" loading="lazy" />
  107. {{end}}
  108. </div>
  109. <div class="margin-lr-1">
  110. <p class="sans margin-tb-_5">{{.Title}}</p>
  111. {{if ne .Character ""}}
  112. <p class="sans text margin-tb-_5 font-_875">{{$.Strings.Person.as}}</p>
  113. <p class="sans text margin-tb-_5">{{.Character}}</p>
  114. {{end}}
  115. {{if not .Release_date.IsZero}}
  116. <p class="sans font-_875 text-grey">{{.Release_date.Year}}</p>
  117. {{end}}
  118. </div>
  119. </div>
  120. </a>
  121. {{end}}
  122. </div>
  123. </details>
  124. <details class="min-width-13_5 margin-lr-1 flex-force-40">
  125. <summary class="cursor-hand">
  126. <span class="material-icon font-1_5">&#xe7fc;</span> <span class="sans font-1_5">{{.Strings.Person.crew}}</span>
  127. </summary>
  128. <div>
  129. {{if not .Data.Credits.Crew}}
  130. <p class="sans indent-2 margin-top-1">{{$.Strings.Person.empty_payroll}}</p>
  131. {{end}}
  132. {{range .Data.Credits.Crew}}
  133. {{if eq .Media_type "movie"}}
  134. <a href="/films/{{.Id}}" class="decoration-none no-outline inline-block margin-tb-1">
  135. {{else if eq .Media_type "tv"}}
  136. <a href="/tvseries/{{.Id}}" class="decoration-none no-outline inline-block margin-tb-1">
  137. {{end}}
  138. <div class="flex">
  139. <div>
  140. {{if .Poster_path}}
  141. <img src="https://image.tmdb.org/t/p/w92{{.Poster_path}}" decoding="async" loading="lazy" class="min-height-139px width-92px" />
  142. {{else if eq .Media_type "movie"}}
  143. <img src="/static/img/poster_empty.webp" class="min-height-139px width-92px" decoding="async" loading="lazy" />
  144. {{else if eq .Media_type "tv"}}
  145. <img src="/static/img/tv_empty.webp" class="min-height-139px width-92px" decoding="async" loading="lazy" />
  146. {{end}}
  147. </div>
  148. <div class="margin-lr-1">
  149. <p class="sans margin-tb-_5">{{.Title}}</p>
  150. <p class="sans text margin-tb-_5 font-_875">—</p>
  151. <p class="sans text margin-tb-_5">{{.Job}}</p>
  152. {{if not .Release_date.IsZero}}
  153. <p class="sans font-_875 text-grey">{{.Release_date.Year}}</p>
  154. {{end}}
  155. </div>
  156. </div>
  157. </a>
  158. {{end}}
  159. </div>
  160. </details>
  161. </div>
  162. </main>
  163. </body>
  164. </html>