Skip to content

Commit 67c8c48

Browse files
committed
Improve home page
1 parent 7110c58 commit 67c8c48

File tree

1 file changed

+59
-37
lines changed
  • apps/components_guide_web/lib/components_guide_web/templates/page

1 file changed

+59
-37
lines changed
Lines changed: 59 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<%= if true do %>
2-
<div class="bg-purple-700 text-white" style="background: linear-gradient(-32deg, #840000 0%, #E0003C 30%, #FF493F 50%, #FF584A 50%, #FF6F86 90%, #FF584A 120%);">
2+
<div class="text-white" style="background: linear-gradient(-32deg, #840000 0%, #E0003C 30%, #FF493F 50%, #FF584A 50%, #FF6F86 90%, #FF584A 120%);">
33
<section class="container px-6 pt-12 pb-16">
44
<h1 class="mx-auto max-w-4xl text-5xl text-center leading-snug font-bold text-shadow">
55
<%#= "Great apps need great components. Learn how to make them in SwiftUI and React." %>
66
<%= "Great apps need great components. Learn by making in SwiftUI or React." %>
77
</h1>
8-
<p class="mt-6 mb-8 mx-auto max-w-3xl text-4xl text-center leading-snug italic text-purple-100 text-shadow">
8+
<p class="mt-6 mb-8 mx-auto max-w-3xl text-4xl text-center leading-snug italic text-red-100 text-shadow">
99
<%= "Learn the techniques that work best across a range of component systems." %>
1010
</p>
1111
<p class="mx-auto py-2 max-w-4xl text-xl text-center">
@@ -17,13 +17,13 @@
1717
</section>
1818
</div>
1919
<% else %>
20-
<div class="bg-purple-100 text-purple-700" style="background: linear-gradient(-60deg, #006DB1 -20%, #AB29CF 50%, #00C6FF 120%);">
20+
<div class="text-white" style="background: linear-gradient(-32deg, #840000 0%, #E0003C 30%, #FF493F 50%, #FF584A 50%, #FF6F86 90%, #FF584A 120%);">
2121
<section class="container px-6 pt-12 pb-16">
2222
<h1 class="mx-auto max-w-5xl text-5xl text-center leading-snug font-bold">
2323
<%#= "Great apps need great components. Learn how to make them in SwiftUI & React." %>
2424
<%= "Great apps need great components. Learn how in SwiftUI, Combine, React & RxJS." %>
2525
</h1>
26-
<p class="mt-6 mb-8 mx-auto max-w-3xl text-4xl text-center italic leading-snug text-purple-700">
26+
<p class="mt-6 mb-8 mx-auto max-w-3xl text-4xl text-center italic leading-snug text-orange-100">
2727
<%#= "Learn the techniques that have worked best across a range of component systems." %>
2828
<%= "Learn the techniques that have worked best for modern component systems." %>
2929
</p>
@@ -37,40 +37,62 @@
3737
</div>
3838
<% end %>
3939

40-
<div class="py-4 bg-purple-900">
41-
<section class="m-8 flex items-center justify-center">
42-
<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">
43-
<span class="text-3xl"><%= "Learn SwiftUI" %></span>
44-
<br>
45-
The future of UI from Apple
46-
</a>
40+
<div class="py-4 bg-white">
41+
<% if false do %>
42+
<section class="mt-8 flex flex-col items-center justify-center">
43+
<div class="w-full max-w-md border border-gray-900 rounded overflow-hidden shadow-lg">
44+
<a href="/swiftui" class="block w-full px-8 py-4 font-bold bg-orange-800 text-white hover:bg-white hover:text-orange-600 hover:border-white shadow-xl hover:shadow-lg">
45+
<span class="text-3xl"><%= "Learn SwiftUI" %></span>
46+
<br>
47+
The future of UI from Apple
48+
</a>
49+
<a href="#" class="block max-w-md w-full px-8 py-4 font-bold bg-red-800 text-white border-t border-red-900 hover:bg-white hover:text-red-600 shadow-xl hover:shadow-lg">
50+
<span class="text-3xl"><%= "Learn Combine" %></span>
51+
<br>
52+
Swift async data flow refined
53+
</a>
54+
</div>
4755
</section>
48-
<section class="m-8 flex items-center justify-center">
49-
<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">
50-
<span class="text-3xl"><%= "Learn Combine" %></span>
51-
<br>
52-
Swift async data flow refined
53-
</a>
54-
</section>
55-
<section class="m-8 flex items-center justify-center">
56-
<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">
57-
<span class="text-3xl"><%= "Learn React" %></span>
58-
<br>
59-
The venerable component library
60-
</a>
61-
</section>
62-
<section class="m-8 flex items-center justify-center">
63-
<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">
64-
<span class="text-3xl"><%= "Learn TypeScript" %></span>
65-
<br>
66-
Safer, more expressive code
67-
</a>
56+
<% end %>
57+
58+
<section class="mt-8">
59+
<header class="mb-8 mx-auto max-w-4xl text-center">
60+
<h2 class="text-4xl font-bold">Learn to make modern iOS and macOS apps using components, async data flow.</h2>
61+
</header>
62+
<div class="w-full max-w-md mx-auto border border-gray-300 rounded overflow-hidden shadow-lg">
63+
<a href="/swiftui" class="block w-full px-8 py-4 font-bold bg-orange-100 text-orange-700 hover:bg-white hover:text-orange-600 hover:border-white shadow-xl hover:shadow-lg">
64+
<span class="text-3xl"><%= "Learn SwiftUI" %></span>
65+
<br>
66+
The future of UI from Apple
67+
</a>
68+
<a href="#" class="block max-w-md w-full px-8 py-4 font-bold bg-red-100 text-red-700 border-t border-red-200 hover:bg-white hover:text-red-600 shadow-xl hover:shadow-lg">
69+
<span class="text-3xl"><%= "Learn Combine" %></span>
70+
<br>
71+
Swift async data flow refined
72+
</a>
73+
</div>
6874
</section>
69-
<section class="m-8 flex items-center justify-center">
70-
<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">
71-
<span class="text-3xl"><%= "Learn RxJS" %></span>
72-
<br>
73-
Reusable, testable data models
74-
</a>
75+
76+
<section class="m-16">
77+
<header class="mb-8 mx-auto max-w-4xl text-center">
78+
<h2 class="text-4xl font-bold">Learn to make modern web apps using components, hooks, async data flow.</h2>
79+
</header>
80+
<div class="w-full max-w-md mx-auto border border-gray-300 rounded overflow-hidden shadow-lg">
81+
<a href="#" class="block max-w-md w-full px-8 py-4 font-bold bg-blue-100 text-blue-700 hover:bg-white hover:text-blue-600 shadow-xl hover:shadow-lg">
82+
<span class="text-3xl"><%= "Learn React" %></span>
83+
<br>
84+
The venerable component-first library
85+
</a>
86+
<a href="#" class="block max-w-md w-full px-8 py-4 font-bold bg-indigo-100 text-indigo-700 border-t border-indigo-200 hover:bg-white hover:text-indigo-600 shadow-xl hover:shadow-lg">
87+
<span class="text-3xl"><%= "Learn TypeScript" %></span>
88+
<br>
89+
Safer, more expressive code
90+
</a>
91+
<a href="#" class="block max-w-md w-full px-8 py-4 font-bold bg-pink-100 text-pink-700 border-t border-pink-200 hover:bg-white hover:text-pink-600 shadow-xl hover:shadow-lg">
92+
<span class="text-3xl"><%= "Learn RxJS" %></span>
93+
<br>
94+
Reusable, testable data models
95+
</a>
96+
</div>
7597
</section>
7698
</div>

0 commit comments

Comments
 (0)