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;
|
||||||
}
|
}
|
16
music.html
16
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 %}
|
||||||
<a href="{{ track.url }}">
|
<div class="trackcontainer">
|
||||||
<div style="background:url({{ site.audio_url }}{{ track.bgimg }});background-size:cover;">
|
<a href="{{ track.url }}">
|
||||||
<p><strong>{{ track.title }}</strong></p>
|
<div class="track" style="background-image:url({{ site.audio_url }}{{ track.bgimg }});"></div>
|
||||||
</div>
|
<p>{{ track.title }}</p></a>
|
||||||
</a>
|
</div>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue