grid layout

This commit is contained in:
iou1name 2024-11-28 13:27:29 -05:00
parent 1f1c82f18a
commit 60da14d4f5
2 changed files with 38 additions and 36 deletions

View File

@ -70,16 +70,17 @@ input[type="radio"]:checked+div {
#player_container {
grid-area: f;
display: flex;
flex-direction: column;
align-items: center;
}
#player_container > div {
display: flex;
display: grid;
grid-template-columns: 1fr auto 2fr 1fr;;
grid-template-rows: 1fr auto auto;
grid-template-areas:
"L A B R"
"L A C R"
"L D D R";
}
#cover_art {
grid-area: A;
padding-right: 1em;
padding-top: 0.5em;
}
@ -90,6 +91,11 @@ img {
}
#title {
grid-area: B;
}
#player_controls {
grid-area: C;
}
input[type='range'] {
@ -109,7 +115,7 @@ button img {
}
#seek_controls {
width: 50%;
grid-area: D;
}
#seek_controls output {

View File

@ -27,9 +27,7 @@
<div id="track_list" class="list">
</div>
<div id="player_container">
<div>
<div id="cover_art"><img alt="Album cover art" src="./static/pyrite.jpg"></div>
<div>
<div id="title">
<h4><span id="now_playing_artist">Artist</span> - <span id="now_playing_album">Album</span></h4>
<h3 id="now_playing_title">Title</h3>
@ -53,8 +51,6 @@
</button>
<input id="volume-slider" type="range" max="100" value="0">
</div>
</div>
</div>
<div id="seek_controls">
<input id="seek-slider" type="range" max="100" value="0">
<output id="current-time">0:00</output>/<output id="duration">0:00</output>
@ -73,7 +69,7 @@
<label for="album_$n">
<input type="radio" id="album_$n" name="album" value="$album_name" onclick="select_album(event)">
<div class="list_item album">
<img src="$cover_art_url"><span class="album_name">$album_name</span><span class="album_year">$album_year</span>
<img src=""><span class="album_name">$album_name</span><span class="album_year">$album_year</span>
</div>
</label>
</template>