Browse Source

moar

master
Inhji Y. 2 years ago
parent
commit
b9d0ac72af
  1. BIN
      assets/static/images/artist.jpg
  2. 7
      lib/dagon_web/controllers/dashboard_controller.ex
  3. 1
      lib/dagon_web/templates/dashboard/index.html.eex
  4. 33
      lib/dagon_web/templates/layout/navigation.html.eex
  5. 3
      lib/dagon_web/views/dashboard_view.ex

BIN
assets/static/images/artist.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.0 KiB

7
lib/dagon_web/controllers/dashboard_controller.ex

@ -0,0 +1,7 @@
defmodule DagonWeb.DashboardController do
use DagonWeb, :controller
def index(conn, _params) do
render(conn, "index.html")
end
end

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

@ -0,0 +1 @@
dashboard!

33
lib/dagon_web/templates/layout/navigation.html.eex

@ -0,0 +1,33 @@
<nav class="navbar" role="navigation" aria-label="main navigation">
<div class="navbar-brand">
<a class="navbar-item" href="<%= Routes.page_path(@conn, :index) %>">
<img src="https://bulma.io/images/bulma-logo.png" width="112" height="28">
</a>
<a role="button" class="navbar-burger burger" aria-label="menu" aria-expanded="false" data-target="navbarBasicExample">
<span aria-hidden="true"></span>
<span aria-hidden="true"></span>
<span aria-hidden="true"></span>
</a>
</div>
<div id="navbarBasicExample" class="navbar-menu">
<div class="navbar-start">
<a class="navbar-item" href="<%= Routes.dashboard_path(@conn, :index) %>">
Dashboard
</a>
<a class="navbar-item" href="<%= Routes.artist_path(@conn, :index) %>">
Artists
</a>
<a class="navbar-item" href="<%= Routes.album_path(@conn, :index) %>">
Albums
</a>
<a class="navbar-item" href="<%= Routes.worker_path(@conn, :index) %>">
Workers
</a>
</div>
</div>
</nav>

3
lib/dagon_web/views/dashboard_view.ex

@ -0,0 +1,3 @@
defmodule DagonWeb.DashboardView do
use DagonWeb, :view
end
Loading…
Cancel
Save