sakrecoer-mother-web/music.html

101 lines
2.8 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
2020-01-28 11:10:04 +01:00
image: /assets/img/world2.svg
2019-04-28 20:57:46 +02:00
---
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">
2019-09-13 16:23:37 +02:00
<a href="{{ site.baseurl }}/"><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 %}">
2019-04-30 17:28:23 +02:00
<a href="{{ track.url }}">
2019-07-13 22:18:15 +02:00
<div class="track" style="background-image:url({{ track.image }});"></div>
2019-04-30 17:43:17 +02:00
</a>
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 {
2020-01-28 10:53:07 +01:00
background: linear-gradient(230deg, #deefb7, #98dfaf, #5fb49c, #414288, #682d63);
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; }
#wallpaper {
background-image: url('{{ page.image }}');
background-position: center;
background-repeat: repeat;
-webkit-animation: AnimationName 60s ease infinite;
-moz-animation: AnimationName 60s ease infinite;
animation: AnimationName 60s ease infinite;
}
</style>