sakrecoer-mother-web/music.html

104 lines
3.1 KiB
HTML
Raw Normal View History

2019-04-28 20:57:46 +02:00
---
2019-09-13 12:37:00 +02:00
title: Sakrecoer Music Tracks
2019-09-13 16:23:37 +02:00
description: Officially released but also exclusive audio-material by Sakrecoer
2019-04-28 20:57:46 +02:00
layout: default
2019-07-15 18:15:51 +02:00
image: /assets/img/world.svg
2019-04-28 20:57:46 +02:00
---
2020-01-13 17:44:10 +01:00
{% include relBase.html %}
2019-07-10 02:16:43 +02:00
{% include navmenu.html %}
2019-07-14 00:36:43 +02:00
2019-11-05 16:59:46 +01:00
<div id="hero" style="height: 40vh; background:transparent;" >
2019-07-14 00:36:43 +02:00
<div class="pivot">
2020-01-13 17:44:10 +01:00
<a href="{{ relBase }}/"><h2>Back</h2></a>
2019-07-14 00:36:43 +02:00
<h1>Music</h1>
2019-09-13 16:23:37 +02:00
<p>{{ page.description }}</p>
2019-08-28 17:12:09 +02:00
{% include liberapay.html %}
2019-09-13 16:23:37 +02:00
2019-07-14 00:36:43 +02:00
</div>
2019-07-15 18:15:51 +02:00
2019-07-14 00:36:43 +02:00
2019-07-13 21:11:13 +02:00
2019-07-15 18:15:51 +02:00
</div>
2019-11-05 11:31:36 +01:00
2019-11-05 16:59:46 +01:00
<div class="button-group filters-button-group" style="margin: auto; padding: 20px;">
2019-11-05 11:31:36 +01:00
<button class="button is-checked" data-filter="*">show all</button>
<!-- create categories array-->
{% assign categories_array = "" | split:"|" %}
<!--Add each unique 'my_collection' category to the array-->
{% for post in site.tracks %}
{% for category in post.categories %}
{% assign categories_array = categories_array | push: category | uniq %}
{% endfor %}
{% endfor %}
<!--Output the categories-->
{% for category in categories_array %}
<button class="button" data-filter=".{{ category }}">{{ category }}</button>
{% endfor %}
</div>
2019-07-14 00:36:43 +02:00
<div class="musiflex">
2019-05-03 16:49:20 +02:00
{% for track in site.tracks reversed %}
2020-01-13 16:57:54 +01:00
<div id="{{ track.uid }}" class="element-item trackcontainer {% for key in track.categories %}{{ key }} {% endfor %}">
2020-01-13 17:44:10 +01:00
<a href="{{ relBase }}{{ track.url }}">
2020-01-13 18:10:29 +01:00
<div class="track" style="background-image:url({{ relBase }}{{ site.audio_url }}{{ track.image }});"></div>
2019-04-30 17:43:17 +02:00
<h3>{{ track.title }}</h3>
</a>
2019-11-05 11:31:36 +01:00
<p>{% for c in track.categories %}{{ c }}{% unless forloop.last %},&nbsp;{% endunless %}{% endfor %}</p>
2019-04-30 17:28:23 +02:00
</div>
{% endfor %}
2019-07-14 00:36:43 +02:00
<div>{% include cookiemonster.html %}</div>
2019-04-28 20:57:46 +02:00
</div>
2019-11-05 11:31:36 +01:00
<script>
// external js: isotope.pkgd.js
// init Isotope
var $grid = $('.musiflex').isotope({
itemSelector: '.element-item',
layoutMode: 'fitRows'
});
// filter functions
// bind filter button click
$('.filters-button-group').on('click', 'button', function () {
var filterValue = $(this).attr('data-filter');
// use filterFn if matches value
$grid.isotope({ filter: filterValue });
});
// change is-checked class on buttons
$('.button-group').each(function (i, buttonGroup) {
var $buttonGroup = $(buttonGroup);
$buttonGroup.on('click', 'button', function () {
$buttonGroup.find('.is-checked').removeClass('is-checked');
$(this).addClass('is-checked');
});
});
2019-11-05 12:34:08 +01:00
</script>
<style>
body {
background: linear-gradient(230deg, rgba(218, 159, 142, 0.9), rgba(236, 0, 228, 0.9), rgba(0, 212, 236, 0.9), rgba(0, 236, 173, 0.9), rgba(110, 0, 236, 0.9));
background-position: center;
background-repeat: repeat;
-webkit-animation: AnimationName 60s ease infinite;
-moz-animation: AnimationName 60s ease infinite;
animation: AnimationName 60s ease infinite; }
#wallpaper {
2020-01-13 17:44:10 +01:00
background-image: url('{{ relBase }}{{ page.image }}');
2019-11-05 12:34:08 +01:00
background-position: center;
background-repeat: repeat;
-webkit-animation: AnimationName 60s ease infinite;
-moz-animation: AnimationName 60s ease infinite;
animation: AnimationName 60s ease infinite;
}
</style>