Browse Source

move now playing

master
Inhji Y. 11 months ago
parent
commit
cbdc791018
2 changed files with 25 additions and 25 deletions
  1. +2
    -0
      assets/css/app.scss
  2. +23
    -25
      lib/dagon_web/templates/dashboard/index.html.eex

+ 2
- 0
assets/css/app.scss View File

@@ -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;



+ 23
- 25
lib/dagon_web/templates/dashboard/index.html.eex View File

@@ -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