working dat music page
This commit is contained in:
parent
f0d76bd04c
commit
9712071e0b
11
_music/_defaults.md
Normal file
11
_music/_defaults.md
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
---
|
||||||
|
layout:
|
||||||
|
title:
|
||||||
|
mp3:
|
||||||
|
ogg:
|
||||||
|
bgimg:
|
||||||
|
uid:
|
||||||
|
category:
|
||||||
|
tag:
|
||||||
|
keywords:
|
||||||
|
---
|
|
@ -1,6 +1,38 @@
|
||||||
|
html {
|
||||||
|
font-family: "Helvetica", Sans-serif;
|
||||||
|
}
|
||||||
|
a {
|
||||||
|
font-weight: normal;
|
||||||
|
}
|
||||||
#hero {
|
#hero {
|
||||||
height: 100vh;
|
height: 100vh;
|
||||||
width: 100vw;
|
width: 100vw;
|
||||||
-webkit-transition: background .5s ease-in-out;
|
-webkit-transition: background .5s ease-in-out;
|
||||||
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;
|
||||||
}
|
}
|
12
music.html
12
music.html
|
@ -4,12 +4,12 @@ description:
|
||||||
layout: default
|
layout: default
|
||||||
---
|
---
|
||||||
|
|
||||||
<div>
|
<div class="musiflex">
|
||||||
{% for track in site.music offset: 0 %}
|
{% for track in site.music reversed %}
|
||||||
|
<div class="trackcontainer">
|
||||||
<a href="{{ track.url }}">
|
<a href="{{ track.url }}">
|
||||||
<div style="background:url({{ site.audio_url }}{{ track.bgimg }});background-size:cover;">
|
<div class="track" style="background-image:url({{ site.audio_url }}{{ track.bgimg }});"></div>
|
||||||
<p><strong>{{ track.title }}</strong></p>
|
<p>{{ track.title }}</p></a>
|
||||||
</div>
|
</div>
|
||||||
</a>
|
{% endfor %}
|
||||||
{% endfor %}
|
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue