Skip to content

Commit 6db9741

Browse files
committed
Improve landing page
1 parent f594544 commit 6db9741

File tree

4 files changed

+37
-34
lines changed

4 files changed

+37
-34
lines changed

apps/components_guide_web/assets/css/app.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010

1111
html {
1212
@apply bg-gray-900;
13+
14+
--links-color: currentColor;
1315
}
1416

1517
[hidden] {

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

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -46,33 +46,6 @@ subhead = "Guides to accessibility, TDD, BDD, naming, performance, and the lates
4646
</div>
4747

4848
<div class="text-white">
49-
<aside class="py-20">
50-
<div class="w-full max-w-4xl mx-auto space-y-6 text-3xl rounded overflow-hidden shadow-lg">
51-
<p>
52-
There’s a lot of learning materials on specific technologies out there. But technologies change — rapidly.
53-
54-
<p>
55-
Frameworks will come and go.
56-
React might be the hotness today, but in a few years another framework might well rule the roost.
57-
58-
<p>
59-
The guides here cover what will remain relevant for decades to come:
60-
61-
<ul class="list-disc pl-8 font-bold">
62-
<li class="text-red-300"><%= "Great UX and performance" %>
63-
<li class="text-teal-300"><%= "Accessibility" %>
64-
<li class="text-blue-300"><%= "Component naming & responsibility" %>
65-
<li class="text-green-300"><%= "TDD & BDD" %>
66-
<li class="text-yellow-100"><%= "Thinking about state" %>
67-
<li class="text-orange-300"><%= "Modular styling with modern CSS" %>
68-
<li class="text-purple-300"><%= "Leveraging what’s built into browsers first" %>
69-
</ul>
70-
71-
<p>
72-
It’s all free to read and share.
73-
</div>
74-
</aside>
75-
7649
<section class="pt-20 pb-20" style="<%= sections_styles(:cool) %>">
7750
<header class="mb-8 mx-auto max-w-4xl px-4 text-center">
7851
<h2 class="text-4xl font-bold leading-snug">
@@ -163,4 +136,31 @@ subhead = "Guides to accessibility, TDD, BDD, naming, performance, and the lates
163136
</a>
164137
</div>
165138
</section>
139+
140+
<aside class="py-20">
141+
<div class="w-full max-w-4xl mx-auto px-4 space-y-6 text-2xl md:text-3xl rounded overflow-hidden shadow-lg">
142+
<p>
143+
There’s a lot of learning materials on specific technologies out there. But technologies change — rapidly.
144+
145+
<p>
146+
Frameworks will come and go.
147+
React might be the hotness today, but in a few years another framework might well rule the roost.
148+
149+
<p>
150+
The guides here cover what will remain relevant for decades to come:
151+
152+
<ul class="list-disc pl-8 font-bold">
153+
<li class="text-red-300"><%= "Great UX and performance" %>
154+
<li class="text-teal-300"><%= "Accessibility" %>
155+
<li class="text-blue-300"><%= "Component naming & responsibility" %>
156+
<li class="text-green-300"><%= "TDD & BDD" %>
157+
<li class="text-yellow-100"><%= "Thinking about state" %>
158+
<li class="text-orange-300"><%= "Modular styling with modern CSS" %>
159+
<li class="text-purple-300"><%= "Leveraging what’s built into browsers first" %>
160+
</ul>
161+
162+
<p>
163+
It’s all free to read and share.
164+
</div>
165+
</aside>
166166
</div>
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<footer role="contentinfo" class="container pt-4 pb-6 text-gray-500 tracking-wide">
2+
<p><small class="text-xs">Copyright © 2020 Patrick Smith</small></p>
3+
<ul class="list-none text-xs mt-4 leading-loose text-purple-500">
4+
<li><a href="https://github.com/ComponentsTV/components_guide">Source on GitHub</a>
5+
<li><a href="https://github.com/ComponentsTV/components_guide/blob/master/LICENSE">License</a>
6+
</ul>
7+
</footer>

apps/components_guide_web/lib/components_guide_web/templates/layout/root.html.leex

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,7 @@
1414

1515
<%= @inner_content %>
1616

17-
<footer role="contentinfo" class="container pt-4 pb-6 text-gray-600 tracking-wide">
18-
<p><small class="text-xs">Copyright © 2020 Patrick Smith</small></p>
19-
<ul class="list-none text-xs mt-4 leading-loose">
20-
<li><a href="https://github.com/ComponentsTV/components_guide">Source on GitHub</a>
21-
<li><a href="https://github.com/ComponentsTV/components_guide/blob/master/LICENSE">License</a>
22-
</ul>
23-
</footer>
17+
<%= render ComponentsGuideWeb.LayoutView, "_contentinfo.html" %>
2418

2519
<!-- Prism syntax highlighting -->
2620
<script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.16.0/prism.min.js" integrity="sha256-NFZVyNmS1YlmiklazBA+TALYJlJtZj/y/i/oADk6CVE=" crossorigin="anonymous"></script>

0 commit comments

Comments
 (0)