Browse Source

move now playing

master
Inhji Y. 1 year ago
parent
commit
cbdc791018
  1. 2
      assets/css/app.scss
  2. 48
      lib/dagon_web/templates/dashboard/index.html.eex

2
assets/css/app.scss

@ -10,6 +10,8 @@ $family-sans-serif: "Open Sans", sans-serif;
$dimensions: 16 24 32 48 64 96 128 196;
$spacing-default: 1.5rem;
$tile-spacing: 0;
$dimensions: 16 24 32 48 64 96 128 196 256;
$body-background-color: $grey-dark;

48
lib/dagon_web/templates/dashboard/index.html.eex

@ -17,32 +17,37 @@
</div>
</div>
</div>
</div>
<div class="columns ">
<div class="column">
<div class="column is-half is-two-thirds-desktop">
<div class="card">
<div class="card-content">
<%= if @current_track do %>
<div class="media is-pulled-right">
<div class="media-content">
<div class="content">
<p class="has-text-right">
<strong><span class="has-text-danger">Now:</span> <%= @current_track.name %></strong>
<br />
<span>by <%= @current_track.artist.name %></span>
</p>
<div class="media">
<div class="media-content">
<div class="content">
<p class="has-text-right">
<strong><span class="has-text-danger">Now:</span> <%= @current_track.name %></strong>
<br />
<span>by <%= @current_track.artist.name %></span>
</p>
</div>
</div>
<figure class="media-right">
<a class="image is-64x64" href='<%= Routes.album_path(@conn, :show, @current_track.album) %>'>
<img src='<%= Dagon.Listens.Albums.Uploader.url({@current_track.album.image, @current_track.album}, :thumb) %>'>
</a>
</figure>
</div>
<figure class="media-right">
<a class="image is-64x64" href='<%= Routes.album_path(@conn, :show, @current_track.album) %>'>
<img src='<%= Dagon.Listens.Albums.Uploader.url({@current_track.album.image, @current_track.album}, :thumb) %>'>
</a>
</figure>
</div>
<% end %>
</div>
</div>
</div>
</div>
<div class="columns ">
<div class="column">
<div class="card">
<div class="card-content">
<h2 class="title">some.stats</h2>
<h3 class="subtitle"><%= @count %> since <%= Timex.format!(@per_month.oldest.listened_at, "{YYYY}") %></h3>
@ -256,10 +261,3 @@
</div>
Loading…
Cancel
Save