working dat music page

This commit is contained in:
Set Hallstrom 2019-04-30 17:28:23 +02:00
parent f0d76bd04c
commit 9712071e0b
3 changed files with 51 additions and 8 deletions

11
_music/_defaults.md Normal file
View file

@ -0,0 +1,11 @@
---
layout:
title:
mp3:
ogg:
bgimg:
uid:
category:
tag:
keywords:
---

View file

@ -1,6 +1,38 @@
html {
font-family: "Helvetica", Sans-serif;
}
a {
font-weight: normal;
}
#hero {
height: 100vh;
width: 100vw;
-webkit-transition: background .5s ease-in-out;
transition: background .5s ease-in-out;
background-image: url({{}});
}
/* MUSIC */
.musiflex {
display: flex;
flex-wrap: wrap;
margin: 0;
padding: 0;
}
.trackcontainer {
flex: 1 1 300px;
padding: 0;
margin: 0;
p {
padding: 5px;
}
}
.track {
width: 100%;
background-size: cover;
background-position: 50% 50%;
min-height: 300px;
padding: 0;
margin: 0;
}

View file

@ -4,12 +4,12 @@ description:
layout: default
---
<div>
{% for track in site.music offset: 0 %}
<div class="musiflex">
{% for track in site.music reversed %}
<div class="trackcontainer">
<a href="{{ track.url }}">
<div style="background:url({{ site.audio_url }}{{ track.bgimg }});background-size:cover;">
<p><strong>{{ track.title }}</strong></p>
<div class="track" style="background-image:url({{ site.audio_url }}{{ track.bgimg }});"></div>
<p>{{ track.title }}</p></a>
</div>
</a>
{% endfor %}
</div>