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:
parent
677883e72d
commit
30d0750ffc
@ -1,4 +1,4 @@
|
|||||||
header[role='banner'] {
|
[role='banner'] {
|
||||||
background: $black;
|
background: $black;
|
||||||
margin-bottom: 1em;
|
margin-bottom: 1em;
|
||||||
padding: 0.5em 0;
|
padding: 0.5em 0;
|
||||||
@ -11,7 +11,16 @@ header[role='banner'] {
|
|||||||
flex: 0;
|
flex: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
nav.user-nav {
|
a {
|
||||||
|
color: $white;
|
||||||
|
text-decoration: none;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
color: $link-color;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.user-nav {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
text-align: right;
|
text-align: right;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -14,7 +14,7 @@
|
|||||||
<body>
|
<body>
|
||||||
<header role="banner">
|
<header role="banner">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<h1><%= gettext "Chess" %></h1>
|
<h1><%= link gettext("Chess"), to: page_path(@conn, :index) %></h1>
|
||||||
|
|
||||||
<nav class="user-nav" role="user">
|
<nav class="user-nav" role="user">
|
||||||
<%= if current_user(@conn) do %>
|
<%= if current_user(@conn) do %>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user