Skip to content

Commit 46ab295

Browse files
committed
Nav and copy improvements
1 parent 2c94326 commit 46ab295

File tree

3 files changed

+11
-9
lines changed

3 files changed

+11
-9
lines changed

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

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,20 @@
11
<header class="bg-gray-900 text-white">
22
<section class="container flex flex-col md:flex-row items-center">
3-
<a href="/" class="block py-4 text-right text-base font-bold italic uppercase text-red-100 leading-tight tracking-wide">
3+
<a href="/" class="block px-3 py-4 text-right text-base font-bold italic uppercase text-red-100 leading-tight tracking-wide hover:bg-gray-800">
44
<span>Components <br>·Guide</span>
55
</a>
6-
<nav role="navigation" class="flex-grow sm:pl-8 lg:px-16 text-base md:text-xl">
6+
<nav role="navigation" class="flex-grow sm:pl-8 lg:px-16 text-base md:text-base">
77
<ul class="flex flex-col md:flex-row justify-around pt-2 pb-2">
8-
<li><a href="/lessons" class="block px-4 py-2 md:py-3 font-bold border-b-4 border-transparent hover:border-red-400"><%= "Lessons" %></a></li>
9-
<li><a href="/links" class="block px-4 py-2 md:py-3 font-bold border-b-4 border-transparent hover:border-red-400"><%= "Links" %></a></li>
10-
<li><a href="/about" class="block px-4 py-2 md:py-3 font-bold border-b-4 border-transparent hover:border-red-400"><%= "About" %></a></li>
8+
<li><a href="/react+typescript" class="block px-4 py-2 md:py-3 font-bold border-b-4 border-transparent hover:bg-gray-800 hover:border-red-400"><%= "React + TypeScript" %></a></li>
9+
<li><a href="/swiftui" class="block px-4 py-2 md:py-3 font-bold border-b-4 border-transparent hover:bg-gray-800 hover:border-red-400"><%= "SwiftUI + Combine" %></a></li>
10+
<li><a href="/links" class="block px-4 py-2 md:py-3 font-bold border-b-4 border-transparent hover:bg-gray-800 hover:border-red-400"><%= "Community Resources" %></a></li>
11+
<% if false do %>
1112
<li class="py-1">
1213
<a href="/signin/github" class="inline-block md:block px-4 py-2 md:py-2 font-bold text-white bg-red-700 rounded" style="background: linear-gradient(0deg, #E0003C 0%, #FF493F 50%, #FF584A 100%);">
1314
<%= "Sign in with GitHub" %>
1415
</a>
1516
</li>
17+
<% end %>
1618
<% if false do %>
1719
<li><a href="/swiftui" class="block py-4 font-bold"><%= "SwiftUI + Combine" %></a></li>
1820
<li><a href="/rxjs" class="block py-4 font-bold"><%= "React + TS + RxJS" %></a></li>

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<div class="text-white bg-purple-600" style2="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">
4-
<%= "Links to Talks, Articles & Courses" %>
4+
<%= "Links to Articles, Talks & Courses" %>
55
</h1>
66
<div class="mt-8 px-4 text-center">
77
<input class="mb-4 md:mr-2 block w-full md:inline-block md:w-2/5 p-2 text-2xl leading-tight text-black rounded-lg md:mb-0 border-4 border-white focus:border-purple-300">
@@ -14,7 +14,7 @@
1414

1515
<div class="bg-white">
1616
<section class="container pt-8 text-2xl italic text-purple-600">
17-
<p>Fave the links you recommend. Create playlists and share with others.</p>
17+
<p>Coming soon: Fave the links you recommend. Create playlists and share with others.</p>
1818
</section>
1919

2020
<section class="container pt-8 pb-16 text-2xl">

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
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%);">
1+
<div class="text-white" style="background: linear-gradient(-60deg, rgba(206,60,0,1) 0%, rgba(255,40,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>
66
<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, RxJS & TypeScript" %>
9+
<%= "Learn React & 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">
1212
<%= "Express clear components and data flow more robustly with the live feedback of TypeScript." %>

0 commit comments

Comments
 (0)