123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <title>{{.Data.Name}}{{if not .Data.Birthday.IsZero}} ({{.Data.Birthday.Year}}){{end}} — a·muse</title>
- <link rel="stylesheet" href="/static/style/style.css" />
- <link rel="icon" type="image/svg+xml" href="/static/img/logo.svg">
- <link rel="apple-touch-icon" type="image/svg+xml" href="/static/img/logo.svg">
- </head>
- <body>
- <header class="w12 padding-bottom-_25 flex flex-row flex-justify-space flex-align-centre bg-primary">
- <a href="/" class="decoration-none">
- <h1 class="inline valign-mid text-white sans margin-lr-1">a·muse</h1>
- </a>
- <form action="/items/" method="get" class="flex inline margin-lr-1 border-bottom-white">
- <input type="search" name="q" class="phone-max-width-8 border-none bg-none sans text-white" placeholder="{{.Strings.Global.search}}" />
- </form>
- <div class="margin-lr-1 text-white">
- {{ if .State.User.IsEmpty }}
- <a href="/login" class="decoration-none sans">{{.Strings.Global.log_in}}</a>
- —
- <a href="/signup" class="decoration-none sans">{{.Strings.Global.sign_up}}</a>
- {{ else }}
- <nav>
- <label for="hamburger" class="cursor-hand">
- <img src="/users/{{.State.User.Username}}/avatar?size=small" class="border-radius-25 width-1_5"/>
- </label>
- <input type="checkbox" id="hamburger" class="display-none" />
- <ul class="absolute right top-1 padding-lr-1 padding-tb-_5 bg align-right list-style-none sans">
- <!--<li><a href="/users/{{.State.User.Username}}" class="decoration-none text-accent">{{.Strings.Global.account}}</a><span class="material-icon padding-lr-_5"></span></li>-->
- <li><a href="/users/{{.State.User.Username}}/watchlist" class="decoration-none text-accent">{{.Strings.Global.watchlist}}</a><span class="material-icon padding-lr-_5"></span></li>
- <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"></span></li>
- <li><a href="/users/{{.State.User.Username}}/readlist" class="decoration-none text-accent">{{.Strings.Global.readlist}}</a><span class="material-icon padding-lr-_5"></span></li>
- <li><a href="/users/{{.State.User.Username}}/experiences" class="decoration-none text-accent">{{.Strings.Global.experiences}}</a><span class="material-icon padding-lr-_5"></span></li>
- <li class="bg-error">
- <form action="/users/{{.State.User.Username}}/sessions/{{.State.User.Session}}" method="POST" class="inline">
- <input type="hidden" value="DELETE" name="method" />
- <input type="submit" value="{{.Strings.Global.log_out}}" class="border-none bg-none font-normal text-accent padding-lr-0 cursor-hand font-1" />
- </form><span class="material-icon padding-lr-_5"></span>
- </li>
- </ul>
- </nav>
- {{ end }}
- </div>
- </header>
- <div class="absolute top behind w12">
- {{if .Data.Backdrop_path }}
- <img src="https://image.tmdb.org/t/p/original{{.Data.Backdrop_path}}" class="w12 cover height-30" />
- {{else}}
- <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/) -->
- {{end}}
- <div class="on-desktop relative bottom-4 sans inline-block w12 padding-l-16 font-3 bg-gradient border-box">
- <span class="text-white">{{.Data.Name}}</span>
- </div>
- </div>
- <main class="margin-top-20 margin-lr-5 flex flex-row flex-wrap flex-justify-space flex-align-start">
- <div class="desktop-w3 phone-w12 margin-bottom-2">
- {{if .Data.Profile_path}}
- <img src="https://image.tmdb.org/t/p/w154{{.Data.Profile_path}}" class="block min-height-231px width-154px">
- {{else}}
- <img src="/static/img/person_empty.webp" class="block min-height-231px width-154px" />
- {{end}}
- <div class="on-phone">
- <span class="sans font-3">{{.Data.Name}}</span>
- </div>
- <p class="sans text-grey margin-top-1 margin-bottom-_5"><span class="material-icon"></span> {{$.Strings.Person.born}}</p>
- {{if .Data.Birthday.IsZero}}
- <p class="margin-lr-1 sans margin-tb-_5">{{$.Strings.Person.unknown}}</p>
- {{else}}
- <p class="margin-lr-1 sans margin-tb-_5">{{.FormatDate .Data.Birthday}}{{if .Data.Place_of_birth}},
- <br/>{{.Data.Place_of_birth}}{{end}}</p>
- {{end}}
- {{if not .Data.Deathday.IsZero}}
- <p class="sans text-grey margin-top-1 margin-bottom-_5"><span class="material-icon"></span> {{$.Strings.Person.died}}</p>
- <p class="margin-lr-1 sans margin-tb-_5">{{.FormatDate .Data.Deathday}}</p>
- {{end}}
- <p class="sans text-grey margin-top-1 margin-bottom-_5"><span class="material-icon"></span> {{$.Strings.Person.source}}</p>
- <p class="margin-lr-1 sans margin-tb-_5"><a href="{{.Data.Source}}">TheMovieDB</a></p>
- </div>
- <div class="desktop-w6 phone-w12 margin-top-10 padding-lr-2 margin-bottom-2">
- <p class="serif justify hyphenate">{{.Data.Biography}}</p>
- <hr class="material-icon text-grey hr-person" />
- </div>
- <div class="desktop-w3 phone-w12 margin-top-10 flex phone-flex-flow margin-bottom-2">
- <details class="min-width-13_5 margin-lr-1 flex-force-40">
- <summary class="cursor-hand">
- <span class="material-icon font-1_5"></span> <span class="sans font-1_5">{{.Strings.Person.cast}}</span>
- </summary>
- <div>
- {{if not .Data.Credits.Cast}}
- <p class="sans indent-2 margin-top-1">{{$.Strings.Person.empty_payroll}}</p>
- {{end}}
- {{range .Data.Credits.Cast}}
- {{if eq .Media_type "movie"}}
- <a href="/films/{{.Id}}" class="decoration-none no-outline inline-block margin-tb-1">
- {{else if eq .Media_type "tv"}}
- <a href="/tvseries/{{.Id}}" class="decoration-none no-outline inline-block margin-tb-1">
- {{end}}
- <div class="flex">
- <div>
- {{if .Poster_path}}
- <img src="https://image.tmdb.org/t/p/w92{{.Poster_path}}" class="min-height-139px width-92px" decoding="async" loading="lazy" />
- {{else if eq .Media_type "movie"}}
- <img src="/static/img/poster_empty.webp" class="min-height-139px width-92px" decoding="async" loading="lazy" />
- {{else if eq .Media_type "tv"}}
- <img src="/static/img/tv_empty.webp" class="min-height-139px width-92px" decoding="async" loading="lazy" />
- {{end}}
- </div>
- <div class="margin-lr-1">
- <p class="sans margin-tb-_5">{{.Title}}</p>
- {{if ne .Character ""}}
- <p class="sans text margin-tb-_5 font-_875">{{$.Strings.Person.as}}</p>
- <p class="sans text margin-tb-_5">{{.Character}}</p>
- {{end}}
- {{if not .Release_date.IsZero}}
- <p class="sans font-_875 text-grey">{{.Release_date.Year}}</p>
- {{end}}
- </div>
- </div>
- </a>
- {{end}}
- </div>
- </details>
- <details class="min-width-13_5 margin-lr-1 flex-force-40">
- <summary class="cursor-hand">
- <span class="material-icon font-1_5"></span> <span class="sans font-1_5">{{.Strings.Person.crew}}</span>
- </summary>
- <div>
- {{if not .Data.Credits.Crew}}
- <p class="sans indent-2 margin-top-1">{{$.Strings.Person.empty_payroll}}</p>
- {{end}}
- {{range .Data.Credits.Crew}}
- {{if eq .Media_type "movie"}}
- <a href="/films/{{.Id}}" class="decoration-none no-outline inline-block margin-tb-1">
- {{else if eq .Media_type "tv"}}
- <a href="/tvseries/{{.Id}}" class="decoration-none no-outline inline-block margin-tb-1">
- {{end}}
- <div class="flex">
- <div>
- {{if .Poster_path}}
- <img src="https://image.tmdb.org/t/p/w92{{.Poster_path}}" decoding="async" loading="lazy" class="min-height-139px width-92px" />
- {{else if eq .Media_type "movie"}}
- <img src="/static/img/poster_empty.webp" class="min-height-139px width-92px" decoding="async" loading="lazy" />
- {{else if eq .Media_type "tv"}}
- <img src="/static/img/tv_empty.webp" class="min-height-139px width-92px" decoding="async" loading="lazy" />
- {{end}}
- </div>
- <div class="margin-lr-1">
- <p class="sans margin-tb-_5">{{.Title}}</p>
- <p class="sans text margin-tb-_5 font-_875">—</p>
- <p class="sans text margin-tb-_5">{{.Job}}</p>
- {{if not .Release_date.IsZero}}
- <p class="sans font-_875 text-grey">{{.Release_date.Year}}</p>
- {{end}}
- </div>
- </div>
- </a>
- {{end}}
- </div>
- </details>
- </div>
- </main>
- </body>
- </html>
|