mirror of
https://github.com/danbee/chess
synced 2025-03-04 08:39:06 +00:00
Address the Hound
This commit is contained in:
parent
27a4492432
commit
8538aad2f6
@ -3,7 +3,7 @@
|
||||
|
||||
.offline,
|
||||
.viewing {
|
||||
&:before {
|
||||
&::before {
|
||||
border-radius: 50%;
|
||||
content: "";
|
||||
display: inline-block;
|
||||
@ -16,14 +16,14 @@
|
||||
.offline {
|
||||
opacity: 0.4;
|
||||
|
||||
&:before {
|
||||
background-color: #cc3333;
|
||||
&::before {
|
||||
background-color: $offline-opponent-color;
|
||||
}
|
||||
}
|
||||
|
||||
.viewing {
|
||||
&:before {
|
||||
background-color: #66cc33;
|
||||
&::before {
|
||||
background-color: $viewing-opponent-color;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -24,6 +24,9 @@ $your-turn-background-color: rgba($white, 0.1);
|
||||
|
||||
$game-state-background-color: rgba(darken($black-square-color, 10%), 0.9);
|
||||
|
||||
$offline-opponent-color: #cc3333;
|
||||
$viewing-opponent-color: #66cc33;
|
||||
|
||||
$square-outline-color: darken($black-square-color, 20%);
|
||||
$selected-outline-color: lighten($selected-square-color, 20%);
|
||||
$available-outline-color: rgba(lighten($available-square-color, 20%), 0.5);
|
||||
|
||||
@ -6,6 +6,7 @@ defmodule Chess.Emails do
|
||||
|
||||
alias Chess.Repo
|
||||
alias Chess.Store.User
|
||||
alias ChessWeb.Router.Helpers
|
||||
|
||||
def new_game_email(conn, game) do
|
||||
new_email()
|
||||
@ -15,7 +16,7 @@ defmodule Chess.Emails do
|
||||
"[64squares] #{game.user.name} has invited you to play a game of chess."
|
||||
)
|
||||
|> text_body("""
|
||||
Game link: #{ChessWeb.Router.Helpers.game_url(conn, :show, game)}
|
||||
Game link: #{Helpers.game_url(conn, :show, game)}
|
||||
""")
|
||||
end
|
||||
|
||||
@ -30,7 +31,7 @@ defmodule Chess.Emails do
|
||||
"[64squares] #{user.name} has moved."
|
||||
)
|
||||
|> text_body("""
|
||||
Game link: #{ChessWeb.Router.Helpers.game_url(socket, :show, game)}
|
||||
Game link: #{Helpers.game_url(socket, :show, game)}
|
||||
""")
|
||||
end
|
||||
end
|
||||
|
||||
@ -1,3 +1,5 @@
|
||||
defmodule Chess.Mailer do
|
||||
@moduledoc false
|
||||
|
||||
use Bamboo.Mailer, otp_app: :chess
|
||||
end
|
||||
|
||||
Loading…
Reference in New Issue
Block a user