Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion assets/css/app.scss
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ body {
margin: 0;
font-size: 18px;

background-image: linear-gradient(160deg, $blue, darken($blue, 20));
background-image: linear-gradient(-60deg, $blue, darken($blue, 30));

background-attachment: fixed;

&.error {
Expand Down
40 changes: 40 additions & 0 deletions assets/css/type.scss
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,13 @@ $fontName: "GrotaSansRd";
font-weight: normal;
}

@font-face {
font-family: Neon;
src:
url("/fonts/Neon.ttf") format("truetype");
font-weight: normal;
}

body {
line-height: 1.4;
color: transparentize($white, 0.2);
Expand Down Expand Up @@ -63,6 +70,39 @@ p {
margin-top: 5px;
}
}

@keyframes pulsate {
100% {
/* Larger blur radius */
text-shadow:
0 0 4px #fff,
0 0 11px #fff,
0 0 19px #fff,
0 0 40px $teal,
0 0 80px $teal,
0 0 90px $teal,
0 0 100px $teal,
0 0 150px $teal;
}
0% {
/* A slightly smaller blur radius */
text-shadow:
0 0 3px #fff,
0 0 8px #fff,
0 0 17px #fff,
0 0 35px $teal,
0 0 70px $teal,
0 0 76px $teal,
0 0 90px $teal,
0 0 130px $teal;
}
}

.header--80s {
font-family: Neon;
animation: pulsate 0.11s ease-in-out infinite alternate;
}

.intro {
font-size: 1.5em;
margin-bottom: 1em;
Expand Down
10 changes: 9 additions & 1 deletion lib/pr_web/live/logo_live.ex
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,20 @@ defmodule PRWeb.LogoLive do
<h1 class="logo-heading">
<.link href={~p"/"} class="logo-link">
<.logo play_state={@play_state} />
<%= installation_name() %>
<.logo_title name={installation_name()} />
</.link>
</h1>
"""
end

def logo_title(assigns) do
~H"""
<span class="header--80s">
<%= @name %>
</span>
"""
end

def logo(%{play_state: %PlaybackState{state: :playing}} = assigns) do
~H"""
<.logo_svg playing={true} />
Expand Down
Loading