Skip to content

Commit bb47c25

Browse files
committed
Better header
1 parent 5f6c00f commit bb47c25

File tree

3 files changed

+5
-43
lines changed

3 files changed

+5
-43
lines changed

apps/components_guide_web/lib/components_guide_web/templates/accessibility_first/index-old.html.eex

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,7 @@
1818
</header>
1919
</div>
2020

21-
<header class="text-white" style="background: <%= header_background() %>;">
22-
<div class="container px-6 pt-12 pb-12">
23-
<h1 class="mx-auto max-w-4xl text-5xl text-center font-bold leading-tight text-shadow">
24-
<%= "🥇 Accessibility-First Development" %>
25-
</h1>
26-
<p class="my-8 mx-auto max-w-3xl text-4xl text-center leading-snug italic text-shadow">
27-
<%#= "Write simpler, more robust tests using accessibility affordances." %>
28-
<%= "Write simpler, more robust tests via user-friendly accessibility affordances." %>
29-
</p>
30-
<%= render @view_module, "_nav.html" %>
31-
</div>
32-
</header>
21+
<%= render @view_module, "_header.html" %>
3322

3423
<div class="bg-white">
3524
<%= section "Topics", class: "container pt-8 pb-16 text-2xl" do %>

apps/components_guide_web/lib/components_guide_web/templates/accessibility_first/landmarks.html.eex

Lines changed: 0 additions & 17 deletions
This file was deleted.

apps/components_guide_web/lib/components_guide_web/views/accessibility_first_view.ex

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -16,24 +16,14 @@ defmodule ComponentsGuideWeb.AccessibilityFirstView do
1616
content_tag(:td, content |> line(), class: "px-3 py-1")
1717
end
1818

19-
def header_background do
20-
Styling.linear_gradient("150grad", [
21-
{:lab, 70, 40, -50},
22-
{:lab, 60, -30, -50},
23-
{:lab, 50, 0, -80}
24-
])
25-
end
26-
2719
def header_styles() do
28-
l = 50
29-
a = -60
30-
b = -90
31-
color = {:lab, l, a, b}
20+
color = {:lab, 47, 10, -44}
3221

3322
gradient = Styling.linear_gradient("150grad", [
34-
{:lab, l * 1.1, a * 1.1, b * 1.4},
23+
{:lab, 47, 5, -44},
24+
{:lab, 47, -24, -44},
3525
color,
36-
{:lab, l * 1.3, a * 0.5, b * 0.5},
26+
{:lab, 47, 53, -44}
3727
])
3828

3929
"background-color: #{color |> Styling.to_css()}; background-image: #{gradient};"

0 commit comments

Comments
 (0)