1
0
mirror of https://github.com/danbee/chess synced 2025-03-04 08:39:06 +00:00

Make Chess a link

This commit is contained in:
Daniel Barber 2018-04-13 16:50:37 -04:00
parent 677883e72d
commit 30d0750ffc
Signed by: danbarber
GPG Key ID: 931D8112E0103DD8
2 changed files with 12 additions and 3 deletions

View File

@ -1,4 +1,4 @@
header[role='banner'] {
[role='banner'] {
background: $black;
margin-bottom: 1em;
padding: 0.5em 0;
@ -11,7 +11,16 @@ header[role='banner'] {
flex: 0;
}
nav.user-nav {
a {
color: $white;
text-decoration: none;
&:hover {
color: $link-color;
}
}
.user-nav {
flex: 1;
text-align: right;
}

View File

@ -14,7 +14,7 @@
<body>
<header role="banner">
<div class="container">
<h1><%= gettext "Chess" %></h1>
<h1><%= link gettext("Chess"), to: page_path(@conn, :index) %></h1>
<nav class="user-nav" role="user">
<%= if current_user(@conn) do %>