Skip to content

Commit f41c948

Browse files
committed
80s title
1 parent 1caa2dd commit f41c948

File tree

5 files changed

+105
-129
lines changed

5 files changed

+105
-129
lines changed

assets/css/app.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ body {
3535
margin: 0;
3636
font-size: 18px;
3737

38-
background-image: linear-gradient(160deg, $blue, darken($blue, 20));
38+
background-image: linear-gradient(-60deg, $blue, darken($blue, 30));
39+
3940
background-attachment: fixed;
4041

4142
&.error {

assets/css/type.scss

Lines changed: 31 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
$headingFont: "Grota";
22
$headingFontBlack: "GrotaBlack";
33
$fontName: "GrotaSansRd";
4-
$font80s: "BoogieBoys";
54

65
@font-face {
76
font-family: $headingFontBlack;
@@ -27,21 +26,9 @@ $font80s: "BoogieBoys";
2726
}
2827

2928
@font-face {
30-
font-family: #{$font80s}Regular;
29+
font-family: Neon;
3130
src:
32-
url("/fonts/#{$font80s}Regular.otf") format("opentype");
33-
font-weight: normal;
34-
}
35-
@font-face {
36-
font-family: #{$font80s}Extrude;
37-
src:
38-
url("/fonts/#{$font80s}Extrude.otf") format("opentype");
39-
font-weight: normal;
40-
}
41-
@font-face {
42-
font-family: #{$font80s}Shadow;
43-
src:
44-
url("/fonts/#{$font80s}Shadow.otf") format("opentype");
31+
url("/fonts/Neon.ttf") format("truetype");
4532
font-weight: normal;
4633
}
4734

@@ -84,40 +71,38 @@ p {
8471
}
8572
}
8673

87-
.header--80s {
88-
font-family: #{$font80s}Regular;
89-
position: relative;
90-
font-size: 1.5em;
91-
bottom: -0.25em;
92-
93-
.size {
94-
position: relative;
95-
visibility: hidden;
74+
@keyframes pulsate {
75+
100% {
76+
/* Larger blur radius */
77+
text-shadow:
78+
0 0 4px #fff,
79+
0 0 11px #fff,
80+
0 0 19px #fff,
81+
0 0 40px $teal,
82+
0 0 80px $teal,
83+
0 0 90px $teal,
84+
0 0 100px $teal,
85+
0 0 150px $teal;
9686
}
97-
98-
span {
99-
position: absolute;
100-
top: 0;
101-
left: 0;
102-
right: 0;
103-
bottom: 0;
104-
color: green;
105-
106-
&.regular {
107-
font-family: #{$font80s}Regular;
108-
color: $white;
109-
}
110-
111-
&.extrude {
112-
font-family: #{$font80s}Extrude;
113-
color: $blue;
114-
}
115-
&.shadow {
116-
font-family: #{$font80s}Shadow;
117-
color: $teal;
118-
}
87+
0% {
88+
/* A slightly smaller blur radius */
89+
text-shadow:
90+
0 0 3px #fff,
91+
0 0 8px #fff,
92+
0 0 17px #fff,
93+
0 0 35px $teal,
94+
0 0 70px $teal,
95+
0 0 76px $teal,
96+
0 0 90px $teal,
97+
0 0 130px $teal;
11998
}
12099
}
100+
101+
.header--80s {
102+
font-family: Neon;
103+
animation: pulsate 0.11s ease-in-out infinite alternate;
104+
}
105+
121106
.intro {
122107
font-size: 1.5em;
123108
margin-bottom: 1em;

lib/pr_web/live/logo_live.ex

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -27,18 +27,7 @@ defmodule PRWeb.LogoLive do
2727
def logo_title(assigns) do
2828
~H"""
2929
<span class="header--80s">
30-
<span class="size">
31-
<%= @name %>
32-
</span>
33-
<span class="shadow">
34-
<%= @name %>
35-
</span>
36-
<span class="extrude">
37-
<%= @name %>
38-
</span>
39-
<span class="regular">
40-
<%= @name %>
41-
</span>
30+
<%= @name %>
4231
</span>
4332
"""
4433
end

0 commit comments

Comments
 (0)