Skip to content

Commit 28e4e77

Browse files
committed
Change landing text
1 parent 71a29ec commit 28e4e77

File tree

2 files changed

+18
-4
lines changed

2 files changed

+18
-4
lines changed

apps/components_guide_web/lib/components_guide_web/templates/landing/index.html.eex

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,18 @@
22

33
heading = "Great apps start with great components"
44
heading = "Want to learn more of the why than the how?"
5-
heading = "Want to learn more of the why than the how?"
5+
heading = raw("Improve the user experience <em>and</em> developer experience of your components")
66

7-
subhead = "Learn more of the why than the how."
7+
subhead = "Guides to accessibility, TDD, BDD, naming, performance, and the latest browser features."
88
99
%>
1010

11-
<div class="text-white" style="<%= header_styles(2) %>">
11+
<div class="text-white" style="<%= header_styles(3) %>">
1212
<section class="container px-6 pt-12 pb-8">
1313
<h1 class="mx-auto max-w-4xl px-2 text-3xl sm:text-4xl md:text-6xl text-center leading-tight font-bold text-shadow">
1414
<%= heading %>
1515
</h1>
16-
<p class="mt-6 mb-8 mx-auto max-w-3xl text-2xl sm:text-3xl md:text-4xl text-center leading-snug italic text-red-100 text-shadow">
16+
<p class="mt-6 mb-8 mx-auto max-w-3xl text-2xl sm:text-3xl md:text-4xl text-center leading-snug italic text-gray-100 text-shadow">
1717
<%= subhead %>
1818
</p>
1919
<p hidden class="mx-auto py-2 max-w-4xl text-base md:text-xl text-center">

apps/components_guide_web/lib/components_guide_web/views/landing_view.ex

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,20 @@ defmodule ComponentsGuideWeb.LandingView do
7171
"background-color: #{color |> Styling.to_css()}; background-image: #{gradient};"
7272
end
7373

74+
def header_styles(3) do
75+
color = {:lab, 30, -20, -80} |> Styling.to_css()
76+
77+
l = 20
78+
79+
gradient = Styling.linear_gradient("150grad", [
80+
{:lab, l + 20, -40, -40},
81+
{:lab, l, -20, -80},
82+
{:lab, l - 10, 20, -80},
83+
])
84+
85+
"background-color: #{color}; background-image: #{gradient};"
86+
end
87+
7488
def sections_styles(:cool) do
7589
color = {:lab, 30, -20, -80} |> Styling.to_css()
7690

0 commit comments

Comments
 (0)