Browse Source

tweak: homepage styles

master
Inhji Y. 10 months ago
parent
commit
4f109e6610
  1. 8
      apps/tomie_web/assets/css/home.css
  2. 36
      apps/tomie_web/lib/tomie_web/templates/home/index.html.eex

8
apps/tomie_web/assets/css/home.css

@ -42,8 +42,8 @@ p, ul, dl {
font-family: 'Open Sans', serif;
}
ul > li {
margin-bottom: 0.3rem;
ul > li, dl > dd {
margin-bottom: 1rem;
}
ul > li::before {
@ -59,10 +59,6 @@ dl > dt > small {
font-weight: normal;
}
dl > dd {
margin-bottom: 0.3rem;
}
h1, h2, h3 {
color: #333;
}

36
apps/tomie_web/lib/tomie_web/templates/home/index.html.eex

@ -10,28 +10,26 @@
<h2 class="p-note"><%= @user.tagline %></h2>
</header>
<div class="flex-container">
<div>
<h3>Bookmarks</h3>
<div>
<h3>Bookmarks</h3>
<dl>
<%= for b <- @bookmarks do %>
<dt><%= link b.title, to: Routes.home_path(@conn, :bookmark, b) %> <small class="brackets"></small></dt>
<dd><%= Timex.from_now(b.inserted_at) %> • <%= tag_string(b.tags) %></dd>
<% end %>
</dl>
</div>
<dl>
<%= for b <- @bookmarks do %>
<dt><%= link b.title, to: Routes.home_path(@conn, :bookmark, b) %> <small class="brackets"></small></dt>
<dd><%= Timex.from_now(b.inserted_at) %> • <%= tag_string(b.tags) %></dd>
<% end %>
</dl>
</div>
<div>
<h3>Listens</h3>
<div>
<h3>Listens</h3>
<dl>
<%= for l <- @listens do %>
<dt><%= l.track.name %> <small class="brackets"></small></dt>
<dd>by <%= l.artist.name %> • <%= Timex.from_now(l.listened_at) %></dd>
<% end %>
</dl>
</div>
<dl>
<%= for l <- @listens do %>
<dt><%= l.track.name %> <small class="brackets"></small></dt>
<dd>by <%= l.artist.name %> • <%= Timex.from_now(l.listened_at) %></dd>
<% end %>
</dl>
</div>
<h3>Projects</h3>

Loading…
Cancel
Save