2024-03-21 05:19:18 +00:00
|
|
|
{{define "head"}}
|
2024-03-23 22:20:51 +00:00
|
|
|
<title>{{.PrintPrimaryArtists false}} - {{.Title}}</title>
|
2024-03-21 05:19:18 +00:00
|
|
|
<link rel="icon" href="{{.ResolveArtwork}}">
|
|
|
|
|
2024-03-23 22:20:51 +00:00
|
|
|
<meta name="description" content="Stream "{{.Title}}" by {{.PrintPrimaryArtists false}} on all platforms!">
|
|
|
|
<meta name="author" content="{{.PrintPrimaryArtists false}}">
|
|
|
|
<meta name="keywords" content="{{.PrintCommaPrimaryArtists false}}, music, {{.Title}}, {{.Id}}, {{.GetReleaseYear}}">
|
2024-03-21 05:19:18 +00:00
|
|
|
|
|
|
|
<meta property="og:url" content="https://arimelody.me/music/{{.Id}}">
|
|
|
|
<meta property="og:type" content="website">
|
|
|
|
<meta property="og:locale" content="en_IE">
|
|
|
|
<meta property="og:site_name" content="ari melody music">
|
2024-03-23 22:20:51 +00:00
|
|
|
<meta property="og.Title" content="{{.PrintPrimaryArtists false}} - {{.Title}}">
|
|
|
|
<meta property="og:description" content="Stream "{{.Title}}" by {{.PrintPrimaryArtists false}} on all platforms!">
|
2024-03-21 05:19:18 +00:00
|
|
|
<meta property="og:image" content="https://arimelody.me{{.ResolveArtwork}}">
|
|
|
|
|
|
|
|
<meta name="twitter:card" content="summary_large_image">
|
|
|
|
<meta name="twitter:site" content="@funniduck">
|
|
|
|
<meta name="twitter:creator" content="@funniduck">
|
|
|
|
<meta property="twitter:domain" content="arimelody.me">
|
|
|
|
<meta property="twitter:url" content="https://arimelody.me/music/{{.Id}}">
|
2024-03-23 22:20:51 +00:00
|
|
|
<meta name="twitter.Title" content="{{.PrintPrimaryArtists false}} - {{.Title}}">
|
2024-03-21 05:19:18 +00:00
|
|
|
<meta name="twitter:description" content="Stream "{{.Title}}" by mellodoot on all platforms!">
|
|
|
|
<meta name="twitter:image" content="https://arimelody.me{{.ResolveArtwork}}">
|
|
|
|
<meta name="twitter:image:alt" content="Cover art for "{{.Title}}"">
|
|
|
|
|
2024-04-16 20:24:05 +00:00
|
|
|
<link rel="stylesheet" href="/style/main.css">
|
2024-03-21 05:19:18 +00:00
|
|
|
<link rel="stylesheet" href="/style/music-gateway.css">
|
|
|
|
{{end}}
|
|
|
|
|
|
|
|
{{define "content"}}
|
|
|
|
<main>
|
2024-04-16 20:24:05 +00:00
|
|
|
<script type="module" src="/script/music-gateway.js" defer></script>
|
|
|
|
|
2024-04-16 16:53:24 +00:00
|
|
|
<div id="background" style="background-image: url({{.ResolveArtwork}})"></div>
|
2024-03-21 05:19:18 +00:00
|
|
|
|
2024-04-16 20:24:05 +00:00
|
|
|
<a href="/music" swap-url="/music" id="go-back" title="back to arimelody.me"><</a>
|
2024-03-22 07:30:22 +00:00
|
|
|
<br><br>
|
2024-03-21 05:19:18 +00:00
|
|
|
|
|
|
|
<div id="music-container">
|
|
|
|
<div id="art-container">
|
|
|
|
<div class="tilt-topleft"></div>
|
|
|
|
<div class="tilt-top"></div>
|
|
|
|
<div class="tilt-topright"></div>
|
|
|
|
<div class="tilt-right"></div>
|
|
|
|
<div class="tilt-bottomright"></div>
|
|
|
|
<div class="tilt-bottom"></div>
|
|
|
|
<div class="tilt-bottomleft"></div>
|
|
|
|
<div class="tilt-left"></div>
|
|
|
|
<img id="artwork" src="{{.ResolveArtwork}}" alt="{{.Title}} artwork" width=240 height=240>
|
|
|
|
</div>
|
|
|
|
<div id="vertical-line"></div>
|
|
|
|
<div id="info">
|
|
|
|
<div id="overview">
|
|
|
|
<div id="title-container">
|
|
|
|
<h1 id="title">{{.Title}}</h1>
|
|
|
|
<span id="year" title="{{.PrintReleaseDate}}">{{.GetReleaseYear}}</span>
|
2024-03-18 10:34:43 +00:00
|
|
|
</div>
|
2024-03-23 22:20:51 +00:00
|
|
|
<p id="artist">{{.PrintPrimaryArtists false}}</p>
|
2024-03-21 05:19:18 +00:00
|
|
|
<p id="type" class="{{.ResolveType}}">{{.ResolveType}}</p>
|
|
|
|
|
|
|
|
<ul id="links">
|
|
|
|
{{if .Buylink}}
|
|
|
|
<li>
|
|
|
|
<a href="{{.Buylink}}" class="buy">{{or .Buyname "buy"}}</a>
|
|
|
|
</li>
|
2024-03-18 15:04:04 +00:00
|
|
|
{{end}}
|
2024-03-18 10:34:43 +00:00
|
|
|
|
2024-03-21 05:19:18 +00:00
|
|
|
{{range .Links}}
|
|
|
|
<li>
|
|
|
|
<a class="{{.NormaliseName}}" href="{{.Url}}">{{.Name}}</a>
|
|
|
|
</li>
|
2024-03-18 15:04:04 +00:00
|
|
|
{{end}}
|
2024-03-21 05:19:18 +00:00
|
|
|
</ul>
|
2024-03-20 03:17:34 +00:00
|
|
|
|
2024-03-21 05:19:18 +00:00
|
|
|
{{if .Description}}
|
|
|
|
<p id="description">
|
|
|
|
{{.Description}}
|
|
|
|
</p>
|
|
|
|
{{end}}
|
2024-03-20 03:17:34 +00:00
|
|
|
|
2024-03-21 05:19:18 +00:00
|
|
|
<p id="share">share</p>
|
|
|
|
</div>
|
2024-03-20 03:17:34 +00:00
|
|
|
|
2024-03-21 05:19:18 +00:00
|
|
|
{{if .Credits}}
|
|
|
|
<div id="credits">
|
|
|
|
<h2>credits:</h2>
|
|
|
|
<ul>
|
|
|
|
{{range .Credits}}
|
|
|
|
{{$Artist := .ResolveArtist}}
|
|
|
|
{{if $Artist.Website}}
|
|
|
|
<li><strong><a href="{{$Artist.Website}}">{{$Artist.Name}}</a></strong>: {{.Role}}</li>
|
|
|
|
{{else}}
|
|
|
|
<li><strong>{{$Artist.Name}}</strong>: {{.Role}}</li>
|
|
|
|
{{end}}
|
|
|
|
{{end}}
|
|
|
|
</ul>
|
2024-03-18 10:34:43 +00:00
|
|
|
</div>
|
2024-03-21 05:19:18 +00:00
|
|
|
{{end}}
|
|
|
|
|
2024-03-23 22:20:51 +00:00
|
|
|
{{if .IsSingle}}
|
|
|
|
{{$Track := index .Tracks 0}}
|
|
|
|
{{if $Track.Lyrics}}
|
|
|
|
<div id="lyrics">
|
|
|
|
<h2>lyrics:</h2>
|
|
|
|
<p>{{$Track.Lyrics}}</p>
|
|
|
|
</div>
|
|
|
|
{{end}}
|
|
|
|
{{else}}
|
|
|
|
<div id="tracks">
|
|
|
|
<h2>tracks:</h2>
|
2024-04-16 20:24:05 +00:00
|
|
|
{{range .Tracks}}
|
|
|
|
<h3>{{.Title}}</h3>
|
|
|
|
<p>{{.Lyrics}}</p>
|
|
|
|
{{end}}
|
2024-03-23 22:20:51 +00:00
|
|
|
</div>
|
|
|
|
{{end}}
|
2024-03-21 05:19:18 +00:00
|
|
|
</div>
|
|
|
|
|
2024-03-23 22:20:51 +00:00
|
|
|
{{if or .Credits not .IsSingle}}
|
2024-03-21 05:19:18 +00:00
|
|
|
<div id="extras">
|
|
|
|
<ul>
|
|
|
|
<li><a href="#overview">overview</a></li>
|
|
|
|
|
|
|
|
{{if .Credits}}
|
|
|
|
<li><a href="#credits">credits</a></li>
|
|
|
|
{{end}}
|
2024-03-18 10:34:43 +00:00
|
|
|
|
2024-03-23 22:20:51 +00:00
|
|
|
{{if .IsSingle}}
|
|
|
|
{{$Track := index .Tracks 0}}
|
|
|
|
{{if $Track.Lyrics}}
|
|
|
|
<li><a href="#lyrics">lyrics</a></li>
|
|
|
|
{{end}}
|
|
|
|
{{else}}
|
|
|
|
<li><a href="#tracks">tracks</a></li>
|
|
|
|
{{end}}
|
2024-03-21 05:19:18 +00:00
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
{{end}}
|
|
|
|
<!-- <div id="tracks"> -->
|
|
|
|
<!-- <% var file = `/audio/preview/${data.id}.webm` %> -->
|
|
|
|
<!-- <% if (data.tracks && typeof(data.tracks) == typeof([])) { %> -->
|
|
|
|
<!-- <% for( let i = 0; i < data.tracks.length; i++ ) { %> -->
|
|
|
|
<!-- <% -->
|
|
|
|
<!-- songid = data.tracks[i].title.toLowerCase().replace(/[^a-z0-9]/g, ""); -->
|
|
|
|
<!-- file = `/audio/preview/${data.id}-${songid}.webm`; -->
|
|
|
|
<!-- %> -->
|
|
|
|
<!---->
|
|
|
|
<!-- <div class="track-preview" id="preview-<%= songid %>"> -->
|
|
|
|
<!-- <i class="fa-solid fa-play play"></i> -->
|
|
|
|
<!-- <p><%= data.tracks[i].title %></p> -->
|
|
|
|
<!-- <audio src="<%= file %>"></audio> -->
|
|
|
|
<!-- </div> -->
|
|
|
|
<!---->
|
|
|
|
<!-- <% } %> -->
|
|
|
|
<!-- <% } else { %> -->
|
|
|
|
<!-- <div class="track-preview" id="preview-<%= data.id %>"> -->
|
|
|
|
<!-- <i class="fa-solid fa-play play"></i> -->
|
|
|
|
<!-- <p>{{.Title}}</p> -->
|
|
|
|
<!-- <audio src="<%= file %>"></audio> -->
|
|
|
|
<!-- </div> -->
|
|
|
|
<!-- <% } %> -->
|
|
|
|
<!-- </div> -->
|
|
|
|
</div>
|
|
|
|
</main>
|
|
|
|
{{end}}
|