Skip to content

Commit 3317eaa

Browse files
committed
Text and design improvements
1 parent d37935a commit 3317eaa

File tree

2 files changed

+42
-26
lines changed

2 files changed

+42
-26
lines changed

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

Lines changed: 30 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@
1919
<div class="bg-purple-100 text-purple-700">
2020
<section class="container px-6 pt-12 pb-16">
2121
<h1 class="mx-auto max-w-5xl text-5xl text-center leading-snug font-bold">
22-
<%= "Great apps need great components. Learn how to make them in SwiftUI & React." %>
22+
<%#= "Great apps need great components. Learn how to make them in SwiftUI & React." %>
23+
<%= "Great apps need great components. Learn how in SwiftUI, Combine, React & RxJS." %>
2324
</h1>
2425
<p class="mt-6 mb-8 mx-auto max-w-3xl text-4xl text-center italic leading-snug text-purple-700">
2526
<%#= "Learn the techniques that have worked best across a range of component systems." %>
@@ -35,25 +36,40 @@
3536
</div>
3637
<% end %>
3738

38-
<div class="bg-purple-800">
39-
<section class="pt-12 pb-12 flex items-center justify-center">
40-
<a href="/swiftui" class="inline-block mx-1 mb-3 px-8 py-4 text-3xl font-bold bg-orange-100 text-orange-700 border border-orange-800 hover:bg-orange-600 hover:text-white rounded shadow-xl">
41-
<%= "Learn SwiftUI" %>
39+
<div class="py-4 bg-purple-900">
40+
<section class="m-8 flex items-center justify-center">
41+
<a href="/swiftui" class="block max-w-md w-full mx-1 mb-3 px-8 py-4 font-bold bg-orange-100 text-orange-700 border border-orange-800 hover:bg-white hover:text-orange-600 hover:border-white rounded shadow-xl hover:shadow-lg">
42+
<span class="text-3xl"><%= "Learn SwiftUI" %></span>
43+
<br>
44+
The future of UI from Apple
4245
</a>
4346
</section>
44-
<section class="pt-12 pb-12 flex items-center justify-center">
45-
<a href="#" class="inline-block mx-1 mb-3 px-8 py-4 text-3xl font-bold bg-red-100 text-red-700 border border-red-800 hover:bg-red-600 hover:text-white rounded shadow-xl">
46-
<%= "Learn Combine" %>
47+
<section class="m-8 flex items-center justify-center">
48+
<a href="#" class="block max-w-md w-full mx-1 mb-3 px-8 py-4 font-bold bg-red-100 text-red-700 border border-red-800 hover:bg-white hover:text-red-600 hover:border-white rounded shadow-xl hover:shadow-lg">
49+
<span class="text-3xl"><%= "Learn Combine" %></span>
50+
<br>
51+
Swift async data flow refined
4752
</a>
4853
</section>
49-
<section class="pt-12 pb-12 flex items-center justify-center">
50-
<a href="#" class="inline-block mx-1 mb-3 px-8 py-4 text-3xl font-bold bg-blue-100 text-blue-700 border border-blue-800 hover:bg-blue-600 hover:text-white rounded shadow-xl">
51-
<%= "Learn React" %>
54+
<section class="m-8 flex items-center justify-center">
55+
<a href="#" class="block max-w-md w-full mx-1 mb-3 px-8 py-4 font-bold bg-blue-100 text-blue-700 border border-blue-800 hover:bg-white hover:text-blue-600 hover:border-white rounded shadow-xl hover:shadow-lg">
56+
<span class="text-3xl"><%= "Learn React" %></span>
57+
<br>
58+
The venerable component library
5259
</a>
5360
</section>
54-
<section class="pt-12 pb-12 flex items-center justify-center">
55-
<a href="#" class="inline-block mx-1 mb-3 px-8 py-4 text-3xl font-bold bg-indigo-100 text-indigo-700 border border-indigo-800 hover:bg-indigo-600 hover:text-white rounded shadow-xl">
56-
<%= "Learn TypeScript" %>
61+
<section class="m-8 flex items-center justify-center">
62+
<a href="#" class="block max-w-md w-full mx-1 mb-3 px-8 py-4 font-bold bg-indigo-100 text-indigo-700 border border-indigo-800 hover:bg-white hover:text-indigo-600 hover:border-white rounded shadow-xl hover:shadow-lg">
63+
<span class="text-3xl"><%= "Learn TypeScript" %></span>
64+
<br>
65+
Safer, more expressive code
66+
</a>
67+
</section>
68+
<section class="m-8 flex items-center justify-center">
69+
<a href="#" class="block max-w-md w-full mx-1 mb-3 px-8 py-4 font-bold bg-pink-100 text-pink-700 border border-pink-800 hover:bg-white hover:text-pink-600 hover:border-white rounded shadow-xl hover:shadow-lg">
70+
<span class="text-3xl"><%= "Learn RxJS" %></span>
71+
<br>
72+
Reusable, testable data models
5773
</a>
5874
</section>
5975
</div>

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

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -17,69 +17,69 @@
1717
</div>
1818

1919
<div class="bg-white">
20-
<section class="container pt-8 pb-16">
20+
<section class="container pt-8 pb-16 text-2xl">
2121
<article class="mb-8">
22-
<h2 class="mb-2 text-2xl leading-normal text-purple-800">Atomic design</h2>
22+
<h2 class="mb-2 text-4xl leading-normal text-purple-800">Atomic design</h2>
2323
<p>
2424
Learn how to name components. Apply the single responsibility principle. Find the indivisible component units, and compose them together into larger molecules.
2525
</p>
2626
</article>
2727
<article class="mb-8">
28-
<h2 class="mb-2 text-2xl leading-normal text-purple-800">Styling approaches</h2>
28+
<h2 class="mb-2 text-4xl leading-normal text-purple-800">Styling approaches</h2>
2929
<p>
3030
Extract common styles. Define a style guide. How do you keep styles consistent?
3131
</p>
3232
</article>
3333
<article class="mb-8">
34-
<h2 class="mb-2 text-2xl leading-normal text-purple-800">Reusability trade-offs</h2>
34+
<h2 class="mb-2 text-4xl leading-normal text-purple-800">Reusability trade-offs</h2>
3535
<p>
3636
What sort of components should be resuable? How granular should you go?
3737
</p>
3838
</article>
3939
<article class="mb-8">
40-
<h2 class="mb-2 text-2xl leading-normal text-purple-800">Pattern libraries</h2>
40+
<h2 class="mb-2 text-4xl leading-normal text-purple-800">Pattern libraries</h2>
4141
<p>
4242
When do you need a pattern library? Who are they for? How should you manage them?
4343
</p>
4444
</article>
4545
<article class="mb-8">
46-
<h2 class="mb-2 text-2xl leading-normal text-purple-800">Testing components</h2>
46+
<h2 class="mb-2 text-4xl leading-normal text-purple-800">Testing components</h2>
4747
<p>
4848
Unit test components. Test the behaviours that matter first. Use type-safety to remove impossible states.
4949
</p>
5050
</article>
5151
<article class="mb-8">
52-
<h2 class="mb-2 text-2xl leading-normal text-purple-800">Testing data flow</h2>
52+
<h2 class="mb-2 text-4xl leading-normal text-purple-800">Testing data flow</h2>
5353
<p>
5454
Test your data flow in isolation. Use test-driven design. Mock APIs and other sources.
5555
</p>
5656
</article>
5757
<article class="mb-8">
58-
<h2 class="mb-2 text-2xl leading-normal text-purple-800">Composable component patterns</h2>
58+
<h2 class="mb-2 text-4xl leading-normal text-purple-800">Composable component patterns</h2>
5959
<p>
6060
Components are <em>really</em> composable. Can we reduce boilerplate? What useful component utilities can we make?
6161
</p>
6262
</article>
6363
<article class="mb-8">
64-
<h2 class="mb-2 text-2xl leading-normal text-purple-800">Handling errors</h2>
64+
<h2 class="mb-2 text-4xl leading-normal text-purple-800">Handling errors</h2>
6565
<p>
6666
Handle errors from publishers. What and when should you show users?
6767
</p>
6868
</article>
6969
<article class="mb-8">
70-
<h2 class="mb-2 text-2xl leading-normal text-purple-800">Caching data</h2>
70+
<h2 class="mb-2 text-4xl leading-normal text-purple-800">Caching data</h2>
7171
<p>
7272
Learn how to name components. Apply the single responsibility principle. Find the atomic units, and compose them together.
7373
</p>
7474
</article>
7575
<article class="mb-8">
76-
<h2 class="mb-2 text-2xl leading-normal text-purple-800">Improving performance in the right areas</h2>
76+
<h2 class="mb-2 text-4xl leading-normal text-purple-800">Improving performance in the right areas</h2>
7777
<p>
7878
Learn when you should focus on performance. Measure to be informed. Apply optimization techniques.
7979
</p>
8080
</article>
8181
<article class="mb-8">
82-
<h2 class="mb-2 text-2xl leading-normal text-purple-800">Automating repetitive tasks</h2>
82+
<h2 class="mb-2 text-4xl leading-normal text-purple-800">Automating repetitive tasks</h2>
8383
<p>
8484
Produce screenshots across many devices.
8585
</p>

0 commit comments

Comments
 (0)