Skip to content

Commit d8f3840

Browse files
committed
Add icons to landing page
1 parent bdebde5 commit d8f3840

File tree

1 file changed

+18
-4
lines changed
  • apps/components_guide_web/lib/components_guide_web/templates/landing

1 file changed

+18
-4
lines changed

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

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<%= if true do %>
22
<div class="text-white" style="background: linear-gradient(-32deg, #840000 0%, #E0003C 30%, #FF493F 50%, #FF584A 50%, #FF6F86 90%, #FF584A 120%);">
3-
<section class="container px-6 pt-12 pb-16">
3+
<section class="container px-6 pt-12 pb-8">
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." %>
@@ -11,9 +11,23 @@
1111
<p class="mx-auto py-2 max-w-4xl text-xl text-center">
1212
Topics include:
1313
<%= for {text, index} <- Enum.with_index(["SwiftUI", "React", "Combine", "RxJS", "Figma", "Sketch", "Performance", "Clarity", "Documentation", "Responsive", "Design Teams"]) do %>
14-
<a href="#" class="inline-block mx-1 mb-3 px-4 py-2 font-bold bg-white <%= if index <= 5, do: "text-blue-500 hover:bg-blue-600", else: "text-red-500 hover:bg-red-600" %> hover:text-white rounded shadow-xl"><%= text %></a>
14+
<a href="#" class="inline-block mx-1 mb-3 px-4 py-2 font-bold bg-white <%= if index <= 5, do: "text-blue-500 hover:bg-blue-600", else: "text-indigo-500 hover:bg-indigo-600" %> hover:text-white rounded shadow-xl"><%= text %></a>
1515
<% end %>
1616
</p>
17+
<div class="max-w-3xl mx-auto mt-8 flex flex-row justify-around">
18+
<figure class="flex flex-col items-center">
19+
<img src="https://collected.systems/1/github/leungwensen/svg-icon/b84b3f3a3da329b7c1d02346865f8e98beb05413/dist/svg/material/play-circle-outline.svg?defaultFill=white" width=92 height=92>
20+
<figcaption class="text-xl font-bold">Watch video lessons</figcaption>
21+
</figure>
22+
<figure class="flex flex-col items-center">
23+
<img src="https://collected.systems/1/github/leungwensen/svg-icon/b84b3f3a3da329b7c1d02346865f8e98beb05413/dist/svg/dev/swift.svg?defaultFill=white" width=92 height=92>
24+
<figcaption class="text-xl font-bold">Learn SwiftUI & Combine</figcaption>
25+
</figure>
26+
<figure class="flex flex-col items-center">
27+
<img src="https://collected.systems/1/github/leungwensen/svg-icon/b84b3f3a3da329b7c1d02346865f8e98beb05413/dist/svg/dev/react.svg?defaultFill=white" width=92 height=92>
28+
<figcaption class="text-xl font-bold">Learn React</figcaption>
29+
</figure>
30+
</div>
1731
</section>
1832
</div>
1933
<% else %>
@@ -37,8 +51,8 @@
3751
</div>
3852
<% end %>
3953

40-
<div class="py-4 bg-white">
41-
<% if false do %>
54+
<div class="py-4 text-white bg-gray-800">
55+
<% if true do %>
4256
<section class="mt-8 flex flex-col items-center justify-center">
4357
<div class="w-full max-w-md border border-gray-900 rounded overflow-hidden shadow-lg">
4458
<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">

0 commit comments

Comments
 (0)