Skip to content

Commit 7110c58

Browse files
committed
Add sweet gradients
1 parent f07b899 commit 7110c58

File tree

4 files changed

+14
-12
lines changed

4 files changed

+14
-12
lines changed

apps/components_guide_web/lib/components_guide_web/templates/layout/app.html.eex

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,9 @@
1616
<nav role="navigation" class="flex-grow px-16 text-lg">
1717
<ul class="flex flex-row justify-around">
1818
<li><a href="/swiftui" class="block py-4 font-bold"><%= "SwiftUI + Combine" %></a></li>
19-
<li><a href="/react+typescript" class="block py-4 font-bold"><%= "React + TypeScript" %></a></li>
20-
<li><a href="/rxjs" class="block py-4 font-bold">RxJS</a></li>
19+
<li><a href="/rxjs" class="block py-4 font-bold"><%= "React + TS + RxJS" %></a></li>
20+
<% if false do %><li><a href="/react+typescript" class="block py-4 font-bold"><%= "React + TypeScript" %></a></li><% end %>
21+
<li><a href="/css+typescript" class="block py-4 font-bold"><%= "CSS + TypeScript" %></a></li>
2122
</ul>
2223
</nav>
2324
</section>

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

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1-
<%= if false do %>
2-
<div class="bg-purple-700 text-white">
1+
<%= 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%);">
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">
5-
<%= "Great apps need great components. Learn how to make them in SwiftUI and React." %>
5+
<%#= "Great apps need great components. Learn how to make them in SwiftUI and React." %>
6+
<%= "Great apps need great components. Learn by making in SwiftUI or React." %>
67
</h1>
78
<p class="mt-6 mb-8 mx-auto max-w-3xl text-4xl text-center leading-snug italic text-purple-100 text-shadow">
8-
<%= "Learn the techniques that have worked best across a range of component systems." %>
9+
<%= "Learn the techniques that work best across a range of component systems." %>
910
</p>
1011
<p class="mx-auto py-2 max-w-4xl text-xl text-center">
1112
Topics include:
@@ -16,7 +17,7 @@
1617
</section>
1718
</div>
1819
<% else %>
19-
<div class="bg-purple-100 text-purple-700">
20+
<div class="bg-purple-100 text-purple-700" style="background: linear-gradient(-60deg, #006DB1 -20%, #AB29CF 50%, #00C6FF 120%);">
2021
<section class="container px-6 pt-12 pb-16">
2122
<h1 class="mx-auto max-w-5xl text-5xl text-center leading-snug font-bold">
2223
<%#= "Great apps need great components. Learn how to make them in SwiftUI & React." %>

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
<div class="bg-yellow-500 text-white">
1+
<div class="text-white" style="background: linear-gradient(-60deg, rgba(206,60,0,1) 0%, rgba(255,0,147,1) 50%, rgba(255,187,50,1) 100%);">
22
<section class="container px-6 pt-12 pb-12">
33
<h1 class="mx-auto max-w-4xl text-5xl text-center font-bold leading-tight text-shadow">
44
<div class="pb-4 flex items-center justify-center">
55
<img class="inline-block mr-2" src="<%= "https://cdn.jsdelivr.net/gh/gilbarbara/logos@618de63f309bbf56b67364fd6a441cbbf79403cc/logos/react.svg" %>" alt="React logo" width=96 height=96>
6-
<span class="mr-2 text-3xl"></span>
6+
<span class="mr-2 text-3xl"></span>
77
<img class="inline-block mr-2" src="<%= "https://cdn.jsdelivr.net/gh/gilbarbara/logos@02e637e09b55966e802dfe0bc93595594e0214bb/logos/typescript-icon.svg" %>" alt="TypeScript logo" width=96 height=96>
88
</div>
9-
<%= "Learn React & TypeScript" %>
9+
<%= "Learn React, RxJS & TypeScript" %>
1010
</h1>
1111
<p class="my-8 mx-auto max-w-3xl text-4xl text-center leading-snug italic text-yellow-100 text-shadow">
12-
<%= "Express clear components more robustly with the live feedback of TypeScript." %>
12+
<%= "Express clear components and data flow more robustly with the live feedback of TypeScript." %>
1313
</p>
1414
<p class="py-2 text-xl text-center">
1515
Topics include:

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<div class="bg-purple-900 text-white">
1+
<div class="bg-purple-600 text-white" style="background: linear-gradient(-60deg, #006DB1 -20%, #AB29CF 50%, #00C6FF 120%);">
22
<section class="container px-6 pt-12 pb-12">
33
<h1 class="mx-auto max-w-4xl text-5xl text-center font-bold leading-tight text-shadow">
44
<img class="inline-block mr-2" src="<%= Routes.static_path(@conn, "/images/swiftui-96x96_2x.png") %>" alt="SwiftUI logo" width=96 height=96>

0 commit comments

Comments
 (0)